Noob here trying to figure out the simple task of adding a page to my RDoc documentation. If I do rake doc:app and view a page, then there is a sidebar that says “Pages” with README_FOR_APP listed. All I want to do is create a page named “Cheatsheet” that will appear under “Pages.” How do I create a documentation page and tell RDoc to include the new page?
Noob here trying to figure out the simple task of adding a page to
Share
IMO it’s a bit convoluted. Here’s the references I used:
Nutshell version:
Take the “app” task from your rails library directory, for example I tested using:
The part you need looks (approximately) like this:
Put this in your app’s
lib/tasksdirectory in a.rakefile, e.g.,doc2.rake.Update the task name if you want to keep the original, e.g.,
"app2".Update the
"doc/README_FOR_APP"string to a wider pattern, or add new file(s) to process.Create
doc/Cheatsheet_FOR_APPand the newrake doc:app2task will pick it up.