Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7933055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:12:41+00:00 2026-06-03T21:12:41+00:00

Noob here trying to figure out the simple task of adding a page to

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:12:42+00:00Added an answer on June 3, 2026 at 9:12 pm

    IMO it’s a bit convoluted. Here’s the references I used:

    • http://rake.rubyforge.org/classes/Rake/RDocTask.html
    • How to Rename or Move Rails's README_FOR_APP

    Nutshell version:

    Take the “app” task from your rails library directory, for example I tested using:

    ~/.rvm/gems/ruby-1.9.2-p0@foo/gems/railties-3.0.9/lib/rails/tasks/documentation.rake
    

    The part you need looks (approximately) like this:

    namespace :doc do
      def gem_path(gem_name)
        path = $LOAD_PATH.grep(/#{gem_name}[\w.-]*\/lib$/).first
        yield File.dirname(path) if path
      end
    
      RDocTaskWithoutDescriptions.new("app2") { |rdoc|
        rdoc.rdoc_dir = 'doc/app'
        rdoc.template = ENV['template'] if ENV['template']
        rdoc.title    = ENV['title'] || "Rails Application Documentation"
        rdoc.options << '--line-numbers' << '--inline-source'
        rdoc.options << '--charset' << 'utf-8'
        rdoc.rdoc_files.include('doc/*_FOR_APP') # Modified this line
        rdoc.rdoc_files.include('app/**/*.rb')
        rdoc.rdoc_files.include('lib/**/*.rb')
      }
    end
    

    Put this in your app’s lib/tasks directory in a .rake file, 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_APP and the new rake doc:app2 task will pick it up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Doctrine NOOB here, trying to figure out how to prevent a duplicate record in
javascript noob trying to figure something out. I saw a script located here: Using
Noob question here, but I am teaching myself C and trying to figure out
css noob here, struggling to figure out how to make the float:left work. The
noob here still experimenting with templates. Trying to write a message processing class template
complete noob to Haskell here with probably an even noobier question. I'm trying to
Noob dumb question, no doubt -- but here it is: Trying to tutorialize myself
Complete sql noob here. Trying to think about a way to store some data
a noob question here. I am trying to make an automatic search and replace
noob here, I'm trying to transfer a file using rsync from windows to linux.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.