Skip to content

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.

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>
*
* 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

@BurdetteLamar BurdetteLamar Jul 7, 2022

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!

* 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants