Permalink
Browse files

yet more rdoc changes

  • Loading branch information...
1 parent 572cc43 commit 3869d8ea49c7edbcc37685f362838d66966727d9 @defunkt committed Aug 21, 2007
Showing with 18 additions and 5 deletions.
  1. +4 −5 README
  2. +14 −0 Rakefile
View
9 README
@@ -48,7 +48,7 @@ You need RedCloth, of course. And Rails.
>> story.description
=> "<p>I <em>know</em>!</p>"
-=== Different Modes
+== Different Modes
RedCloth supports different modes, such as :lite_mode. To use a mode on
a specific attribute simply pass it in as an options hash after any
@@ -75,7 +75,7 @@ in the text boxes / fields as plaintext. Do you have to change all your views?
Hell no.
-=== form_for
+== form_for
Are you using form_for? If you are, you don't have to change any code at all.
@@ -85,7 +85,7 @@ Are you using form_for? If you are, you don't have to change any code at all.
You'll see the Textile plaintext in the text field. It Just Works.
-=== form tags
+== form tags
If you're being a bit unconvential, no worries. You can still get at your
raw Textile like so:
@@ -117,5 +117,4 @@ won't need to do this.
Enjoy.
->> Chris Wanstrath
-=> chris[at]ozmm[dot]org
+* By Chris Wanstrath [ chris[at]ozmm[dot]org ]
View
@@ -0,0 +1,14 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Generate RDoc documentation for the acts_as_textiled plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ files = ['README', 'LICENSE', 'lib/**/*.rb']
+ rdoc.rdoc_files.add(files)
+ rdoc.main = "README" # page to start on
+ rdoc.title = "acts_as_textiled"
+ rdoc.template = File.exists?(t="/Users/chris/ruby/projects/err/rock/template.rb") ? t : "/var/www/rock/template.rb"
+ rdoc.rdoc_dir = 'doc' # rdoc output folder
+ rdoc.options << '--inline-source'
+end

0 comments on commit 3869d8e

Please sign in to comment.