Is there any Rails way to browse the documentation generated in local doc/ folder with the command rake doc:app?
I know I could configure Apache to serve the files in the doc folder but I would be surprised if Rails didn't provide a way to do that too.
The reason Rails doesn't provide a way to serve it is because it's just static HTML - you can open it in your browser directly (eg.
firefox doc/app/index.html), without the need for a server.If you wanted, you could add your own Rake task for this in
lib/tasks/browserdoc.rake:Some systems have browser-agnostic shortcuts you could use instead of hard-coding the browser name;
openon Mac OSX will open an HTML file in your current browser, as willsensible-browseron most modern Linux systems.