Skip to content

The main page should not also be listed in its filesystem location #137

Closed

Description

@mm-stefan

I have tried making the contents of README_FOR_APP the entry point for my RDoc as follows:

       rdoc.main     = 'doc/README_FOR_APP'                   # define README_FOR_APP as index
       rdoc.rdoc_files.include('doc/README_FOR_APP')

This seems to:

  • Generate the contents of README_FOR_APP into index.html in the RDoc output
  • Create an RDoc for README_FOR_APP in #{rdoc.rdoc_dir}/doc

The entry point for the RDoc when viewed in the browser is index.html, and the page displayed
contains a link in the 'Pages' block on the left, which points to #{rdoc.rdoc_dir}/doc.

The problem arises when README_FOR_APP itself contains links to other RDoc files generated.
I can get these to work with the appropriate leading relative path in either of the two cases, but not both,
since the index.html and doc/README_FOR_APP are in different dirs.

I have found a workaround in placing README_FOR_APP in Rails.root and removing the leading
'doc' entries from the config:

       rdoc.main     = 'README_FOR_APP'                   # define README_FOR_APP as index
       rdoc.rdoc_files.include('README_FOR_APP')

... but it should not be necessary to pollute Rails.root with docs ...

Activity

  1. drbrain commented on Aug 3, 2012

    @drbrain
    Member

    Yes, I have had a difficult time getting around to fixing this.

    I've updated the title to make the issue more clear.

  2. federicoaldunate commented on Apr 13, 2021

    @federicoaldunate

    @drbrain I can try to fix this. Do you know a guideline on how to do it? I'm not quite familiar with this repository

  3. st0012 commented on Oct 3, 2026

    @st0012
    Member

    This should have been fixed by #1624

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions