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

Enhanced RDoc #58

Merged
merged 6 commits into from Jul 7, 2022
Merged

Enhanced RDoc #58

merged 6 commits into from Jul 7, 2022

Conversation

BurdetteLamar
Copy link
Member

@BurdetteLamar BurdetteLamar commented Jul 6, 2022

  • Brings a dozen call-seq schemas into compliance with the doc guide.
  • Adds links to section "Argument start" where needed.
  • Revises (minorly) ::today.
  • Otherwise, does not disturb existing text.

ext/date/date_core.c Show resolved Hide resolved
ext/date/date_core.c Outdated Show resolved Hide resolved
BurdetteLamar and others added 2 commits July 7, 2022 09:20
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
@@ -2473,6 +2473,8 @@ date_s__valid_jd_p(int argc, VALUE *argv, VALUE klass)
*
* Date.valid_jd?(2451944) # => true
*
* See {Argument start}[rdoc-ref:Date@Argument+start].
Copy link
Member

Choose a reason for hiding this comment

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

I think we should use something like

Suggested change
* See {Argument start}[rdoc-ref:Date@Argument+start].
* See {Argument +start+}[rdoc-ref:Date@Argument+start].

to match the title it links to.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed (17 places).

Copy link
Member

Choose a reason for hiding this comment

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

I just checked this, it looks like RDoc doesn't handle formatting inside links, so it ends up being broken. Sorry about that. Maybe we can revert back to what it was like originally or something like {Argument "start"}[rdoc-ref:Date@Argument+start] instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Original, or maybe See argument {start} [rdoc-ref:Date@Argument+start]?

Copy link
Member

Choose a reason for hiding this comment

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

👍 I like See argument {start}[rdoc-ref:Date@Argument+start]

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@BurdetteLamar
Copy link
Member Author

@peterzhu2118, ready.

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 minor typo, otherwise looks good!

@@ -4508,6 +4515,8 @@ date_s__parse(int argc, VALUE *argv, VALUE klass)
* Raise an ArgumentError when the string length is longer than _limit_.
* You can stop this check by passing `limit: nil`, but note that
* it may take a long time to parse.
^
Copy link
Member

Choose a reason for hiding this comment

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

Typo:

Suggested change
^
*

@BurdetteLamar BurdetteLamar merged commit 9aec11d into ruby:master Jul 7, 2022
matzbot pushed a commit to ruby/ruby that referenced this pull request Jul 7, 2022
    Brings a dozen call-seq schemas into compliance with the doc guide.
    Adds links to section "Argument start" where needed.
    Revises (minorly) ::today.
    Otherwise, does not disturb existing text.

ruby/date@9aec11df50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants