Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Use RDoc inclusions in string.c #5683

Merged
merged 4 commits into from
Mar 21, 2022
Merged

[DOC] Use RDoc inclusions in string.c #5683

merged 4 commits into from
Mar 21, 2022

Conversation

BurdetteLamar
Copy link
Member

@BurdetteLamar BurdetteLamar commented Mar 19, 2022

As @peterzhu2118 and @duerst have pointed out, putting string method's RDoc into doc/ (which allows non-ASCII in examples) makes the "click to toggle source" feature not work for that method.

This PR moves the primary method doc back into string.c, then includes RDoc from doc/string/*.rdoc, and also removes doc/string.rdoc.

The affected methods are:

  • ::new
  • #bytes
  • #each_byte
  • #each_line
  • #split

The call-seq is in string.c because it works there; it did not work when the call-seq is in doc/string/*.rdoc.

This PR also updates the relevant guidance in doc/documentation_guide.rdoc.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Mar 19, 2022
Copy link
Member

@peterzhu2118 peterzhu2118 left a comment

Choose a reason for hiding this comment

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

One comment about whitespace at the end of files, otherwise looks good!

doc/string/bytes.rdoc Outdated Show resolved Hide resolved
@BurdetteLamar
Copy link
Member Author

This involves a structural change, so I'm going for two approvals.

@BurdetteLamar
Copy link
Member Author

@jeremyevans, will you have time to look at this. Since it changes structure, I'd like a second review/approval.

Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

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

I didn't do a detailed review, but I'm fine with the general approach.

@BurdetteLamar BurdetteLamar merged commit c129b61 into ruby:master Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements to documentation.
3 participants