Skip to content

Avoid generating documentation pages for internal components - #1047

Merged
st0012 merged 1 commit into
masterfrom
cleanup-documentation-files
Dec 13, 2024
Merged

st0012 merged 1 commit into
masterfrom
cleanup-documentation-files

Conversation

@st0012

@st0012 st0012 commented Dec 12, 2024

Copy link
Copy Markdown
Member

Currently, the documentation website lists most of IRB's internal classes/modules...etc.

Screenshot 2024-12-12 at 23 00 38

They're not helpful to end users and are mostly undocumented anyway. Therefore, we should avoid generating documentation for them.

Result:
Screenshot 2024-12-12 at 23 02 18

Comment thread Rakefile
RDoc::Task.new do |rdoc|
rdoc.title = "IRB"
rdoc.rdoc_files.include("*.md", "lib/**/*.rb")
rdoc.rdoc_files.exclude("lib/irb/xmp.rb")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use these options, .document will be ignored. Since .document will be applied to ruby/ruby's documentation generation too, we should prioritize using it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this is not correct. I think it'd be better if that's the case though. Will see how I can make it happen.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tompng I opened ruby/ruby#12325 for this. Can you review it there too?

Comment thread lib/irb.rb Outdated
@st0012
st0012 force-pushed the cleanup-documentation-files branch from 5bb2088 to da518ee Compare December 13, 2024 16:55

@tompng tompng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@st0012
st0012 merged commit f57025a into master Dec 13, 2024
@st0012
st0012 deleted the cleanup-documentation-files branch December 13, 2024 17:08
matzbot pushed a commit to ruby/ruby that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants