KEMBAR78
Add back summary table for pack/unpack directives by eregon · Pull Request #12349 · ruby/ruby · GitHub
Skip to content

Conversation

@eregon
Copy link
Member

@eregon eregon commented Dec 14, 2024

  • This concise summary is very helpful e.g. to find the right Integer directive, and is much better at getting an overview than very long text.
  • From [DOC] Link to packed data doc #6567
  • I merged the tables for Array#pack and String#unpack, there were almost the same except for String and Misc. directives.

@st0012 Is there special syntax for tables in RDoc?
I used the same markup as before (without leading #), so I suppose it should just work?

Note: I don't have much time to work on this, so if some small edits are wanted please just push them to this PR or merge & commit them after.

cc @st0012 @BurdetteLamar @zenspider

* This concise summary is very helpful e.g. to find the right Integer
  directive, and is much better at getting an overview than very long text.
* From ruby#6567
* I merged the tables for Array#pack and String#unpack,
  there were almost the same except for String and Misc. directives.
Copy link
Member

@zenspider zenspider left a comment

Choose a reason for hiding this comment

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

YAY

@st0012
Copy link
Member

st0012 commented Dec 15, 2024

This doesn't render correctly:

Screenshot 2024-12-15 at 12 55 11

@BurdetteLamar
Copy link
Member

BurdetteLamar commented Dec 15, 2024

May I take charge of making this work? Earlier, I removed this tabular material in favor of case-wise treatment with examples; should have added the latter w/o removing the former.

Irony: Lately I've proposed (and have been adding) certain "In Brief" sections. What I did here is very counter to that. Duh.

@st0012
Copy link
Member

st0012 commented Dec 15, 2024

@BurdetteLamar when you get a chance, can you also add a few table examples to https://github.com/ruby/rdoc/blob/master/ExampleRDoc.rdoc? That'll be super helpful too 🙏

@BurdetteLamar
Copy link
Member

Okay, silence gives consent; I'm taking over this PR. When this page was new, @peterzhu2118 was my reviewer; @eregon and @zenspider, can I count on you to review here?

Marking as draft while I work on this.

@BurdetteLamar BurdetteLamar marked this pull request as draft December 16, 2024 16:32
Tunes up the tabular data and moves it to the top.
@BurdetteLamar BurdetteLamar marked this pull request as ready for review December 16, 2024 19:57
@BurdetteLamar
Copy link
Member

@eregon, could not add you as a reviewer, but please review anyway.

@BurdetteLamar
Copy link
Member

@BurdetteLamar when you get a chance, can you also add a few table examples to https://github.com/ruby/rdoc/blob/master/ExampleRDoc.rdoc? That'll be super helpful too 🙏

@st0012, the page you site is hideously underpopulated (and, I think, probably should be removed).

Something might be said about ascii tables in https://github.com/ruby/rdoc/blob/master/doc/rdoc/markup_reference.rb, perhaps under "Verbatim Text"?

May also be helpful to have a section "Tables" that mentions GFM tables and ascii tables?

Co-authored-by: Stan Lo <stan001212@gmail.com>
@launchable-app

This comment has been minimized.

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️65126 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️65145 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️65231 tests passed(3 flakes)

Copy link
Member Author

@eregon eregon left a comment

Choose a reason for hiding this comment

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

@BurdetteLamar LGTM, thanks!

@eregon eregon merged commit b72e8ab into ruby:master Dec 16, 2024
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants