Skip to content

[DOC] Re-format section Directives#1418

Merged
peterzhu2118 merged 5 commits intoruby:masterfrom
BurdetteLamar:markup_reference_directives
Aug 29, 2025
Merged

[DOC] Re-format section Directives#1418
peterzhu2118 merged 5 commits intoruby:masterfrom
BurdetteLamar:markup_reference_directives

Conversation

@BurdetteLamar
Copy link
Copy Markdown
Member

The goal here is to force the directive names into the left-frame TOC. I've tried to limit other changes to those needed for consistency.

This largish section needs other work, and will get it, but not in this PR.

Comment on lines +488 to +490
# With argument +all+:
# specifies that the class or module should not be documented.
# By default, however, a nested class or module _will_ be documented.
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.

Can you provide an example of how to use this? In the new documentation, it's not clear to me how this should be used.

# parameter +type+ is one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
# See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
# - Appears on a line by itself.
# - Takes argument +format+.
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.

IMO we should show where the argument goes. It's not immediate clear to me how to pass arguments to RDoc directives.

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
@BurdetteLamar BurdetteLamar had a problem deploying to fork-preview-protection August 28, 2025 15:13 — with GitHub Actions Failure
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
@BurdetteLamar BurdetteLamar had a problem deploying to fork-preview-protection August 28, 2025 15:14 — with GitHub Actions Failure
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
@BurdetteLamar BurdetteLamar had a problem deploying to fork-preview-protection August 28, 2025 15:14 — with GitHub Actions Failure
@BurdetteLamar BurdetteLamar temporarily deployed to fork-preview-protection August 28, 2025 16:14 — with GitHub Actions Inactive
@matzbot
Copy link
Copy Markdown
Collaborator

matzbot commented Aug 28, 2025

🚀 Preview deployment available at: https://74fc9862.rdoc-6cd.pages.dev (commit: db78913)

@peterzhu2118 peterzhu2118 merged commit e2dec09 into ruby:master Aug 29, 2025
33 checks passed
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.

3 participants