1444 Commits
Author SHA1 Message Date
Stan Lo 03eb777c69 Sync RDoc 6.14.0 2025-05-22 15:04:47 -07:00
Alan Wu 468b7af67e [DOC] RegExp: The Graph property includes some control characters
The behavior of this is a carry-over from Oniguruma:
  https://github.com/kkos/oniguruma/blob/5eaee9f5f8f674aff4875c2b35db00758fa349d6/doc/RE#L246

The previous phrasing was inaccurate since it's fair to construe e.g.
Zero Width Joiner as a control character.

Reported-by: https://github.com/ruby/ruby/pull/12294
2024-12-24 15:40:57 -05:00
Victor Shepelev 58460b4dbd [DOC] Adjust documentation related to backtraces (#12420) 2024-12-24 20:49:55 +02:00
Nobuyoshi Nakada 0ea0b1a15d [DOC] Update about optional dump flags 2024-12-22 23:42:40 +09:00
ydah cd8ad9634d s/Punctation/Punctuation/ 2024-12-22 18:09:02 +09:00
ydah b8fe5550e7 s/backslashs/backslashes/ 2024-12-22 18:09:02 +09:00
Stan LoandJeremy Evans 5d1fde06d4 [DOC] Refresh standard libraries page (#12404)
* Migrate standard library doc page to markdown

* Improve libraries listing and link to source code

* Fix grammar and improve phrasing

Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2024-12-20 10:57:02 -08:00
tomoya ishida 477c505ac0 [DOC] Fix output examples containing old Hash#inspect format
The inspect format was intentionally changed as an outcome of
[Bug #20433] [ruby-core:118668], but some documentation update
was missing, as [Bug #20962] pointed out. Update some output
examples that clearly use Hash#inspect.
2024-12-18 12:08:15 -05:00
Nobuyoshi Nakada b6973e4ffc [Bug #20951] [DOC] UTC offset in utc_to_local 2024-12-17 10:10:26 +09:00
b72e8ab816 Add back summary table for pack/unpack directives (#12349)
* Add back summary table for pack/unpack directives
* 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 https://github.com/ruby/ruby/pull/6567
* I merged the tables for Array#pack and String#unpack,
  there were almost the same except for String and Misc. directives.
* Tune up the tabular data and moves it to the top.

Co-authored-by: Burdette Lamar <BurdetteLamar@Yahoo.com>
Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-12-16 22:44:34 +01:00
Alexander Momchilov 41e24c2f3e [ruby/strscan] [DOC] Add syntax highlighting to MarkDown code blocks
(https://github.com/ruby/strscan/pull/126)

Split off from https://github.com/ruby/ruby/pull/12322

https://github.com/ruby/strscan/commit/9bee37e0f5
2024-12-16 10:10:34 +09:00
Victor Shepelev 1ac28224e0 [DOC] Adjust argument unpacking docs and document **nil (#12228)
[DOC] Rewrite argument unpacking docs and document **nil
2024-12-15 21:53:39 +02:00
Nobuyoshi Nakada 966458199d [Bug #20951] [DOC] About UTC offset calculation after utc_to_local 2024-12-15 16:57:24 +09:00
Stan Lo e08e168a57 Add date to doc/.document
Otherwise, dozens of links to date/calendars.rdoc will still be broken
after https://github.com/ruby/date/pull/113
2024-12-15 15:30:45 +09:00
Stan Lo 6d00dee30a [ruby/date] Fix broken rdoc-ref to the calendar page
https://github.com/ruby/date/commit/cb52e64be1
2024-12-15 06:20:10 +00:00
Stan Lo 792275e5f0 [ruby/rdoc] Fix dead links in the markup reference page
(https://github.com/ruby/rdoc/pull/1242)

https://github.com/ruby/rdoc/commit/d1cb9dc3c4
2024-12-14 12:12:45 +00:00
Nobuyoshi Nakada 1fd2437b63 [DOC] Move the comma outside the <tt> tag 2024-12-13 11:59:58 +09:00
Alexander Momchilov 8cc47c9050 Improve "Building Ruby" docs (#12320)
* Clarify “Building Ruby” docs

* Fix test examples to work from `build` dir

* Clarify “Testing Ruby” examples with real examples

All the commands should run correctly by default, without the user needing to modify them. This builds confidence that the relative paths are working correct from within the `build` directory.

Also, let’s use a consistent example throughout, for greater clarity.

* Improve examples to use `-v` flag in-context

This shows the correct way to combine `-v` with another parameter, e.g. a specific file to test.

* Other readability improvements

* Clarify `make` implementation support
2024-12-12 17:55:23 -08:00
Alexander Momchilov 0ea5c13bc6 [DOC] Improve formatting in Markdown files (#12322)
* Fix WASM bullet/code indentation

* Use `console` code highlighting where appropriate

… which handles the prefix `$` correctly.

* Migrate feature proposal template to MarkDown

* Set language on code blocks
2024-12-12 17:49:45 -08:00
Maxime Chevalier-Boisvert c71f7faaa9 YJIT: add MPLR talk link. Encourage users to use --yjit-mem-size (#12305)
* Add MPLR talk. Encourage users to use --yjit-mem-size.

* Improve text
2024-12-10 18:16:24 -05:00
NAITOH Jun cb8f186205 [ruby/strscan] [DOC] doc/strscan/strscan.md - update Matcher Methods
(https://github.com/ruby/strscan/pull/123)

Added support for string pattern type in
https://github.com/ruby/strscan/pull/106.
And fix Success Return content.

https://github.com/ruby/strscan/commit/6a5acde674
2024-12-10 11:30:19 +09:00
Stan Lo 8ad6860ff7 [DOC] New homepage for docs.ruby-lang.org/en (#12227) 2024-12-06 13:51:08 -05:00
Stan Lo 2ecd2fe0ed [ruby/rdoc] Deprecate main and title directives
(https://github.com/ruby/rdoc/pull/1218)

* Deprecate :main: directive

* Deprecate :title: direcive

* Update documentation

* Remove :main: directive's usage

* Update test cases

* Add '.rdoc_options' to suggested alternatives

https://github.com/ruby/rdoc/commit/e2d4ac9dad
2024-12-05 11:36:34 +00:00
Hiroshi SHIBATA b4481a6b8b Fixed wrong instruction with mswin build 2024-12-03 17:43:56 +09:00
Nobuyoshi Nakada a1500eefdb Remove document file needless for ruby core
This reverts commit 743a31d639,
"[ruby/date] [DOC] Make document coverage 100%".  This file is only
for rdoc coverage in the date gem, and useless when the built-in Time
is documented.
2024-11-29 09:13:51 +09:00
Nobuyoshi Nakada 87fc9f4a70 [DOC] Add more links to maintainers 2024-11-27 17:31:56 +09:00
Stan Lo 544d684412 Use footnote links instead 2024-11-25 15:38:20 -05:00
Stan Lo 96766517b0 Update maintainer GH handles and add links when possible 2024-11-25 15:38:20 -05:00
Stan Lo c3144e4f6d Escape Module in the header 2024-11-25 15:38:20 -05:00
Stan Lo 7c200a46ad Add new lines after headers 2024-11-25 15:38:20 -05:00
Stan Lo 9362753d07 Update RDoc's maintainers list 2024-11-25 15:38:20 -05:00
Nobuyoshi Nakada 743a31d639 [ruby/date] [DOC] Make document coverage 100%
https://github.com/ruby/date/commit/269392b775
2024-11-20 14:03:40 +00:00
Kouhei Yanagita eb2b0c2a0d [DOC] Fix the default limit of String#split
We can't pass `nil` as the second parameter of `String#split`.
Therefore, descriptions like "if limit is nil, ..." are not appropriate.
2024-11-19 12:15:48 +09:00
Nobuyoshi Nakada a7d510808d [DOC] --with-opt-dir options and CONFIGURE_ARGS 2024-11-12 11:37:16 +09:00
MSP-Greg cd4b45ab17 [ruby/strscan] [DOC] doc/strscan/strscan.md - fix triple backtick
(https://github.com/ruby/strscan/pull/112)

See current doc, search for '## Target Substring', notice the backtick
that isn't visible to the GitHub md parser.

https://github.com/ruby/strscan/blob/843e931d134b0a8f0284296250454374e3f8a6aa/doc/strscan/strscan.md

Fixed in the PR, see:

https://github.com/MSP-Greg/strscan/blob/00-strscan.md/doc/strscan/strscan.md

https://github.com/ruby/strscan/commit/041b15df4c
2024-10-29 13:52:22 +09:00
Nobuyoshi Nakada 90ef28f59b [DOC] Tweaks for windows.md 2024-10-28 21:38:57 +09:00
Nobuyoshi Nakada 4f467c3fbf Win32: [DOC] Update about program name configurations 2024-10-28 17:27:40 +09:00
Nobuyoshi Nakada a687b2eced Win32: [DOC] Mention vcvarall*.bat 2024-10-28 17:27:40 +09:00
Nobuyoshi Nakada f6bd8f2d39 Win32: [DOC] No extlibs file, no patch is needed 2024-10-28 17:27:40 +09:00
158b8cb52e YJIT: Add compilation log (#11818)
* YJIT: Add `--yjit-compilation-log` flag to print out the compilation log at exit.

* YJIT: Add an option to enable the compilation log at runtime.

* YJIT: Fix a typo in the `IseqPayload` docs.

* YJIT: Add stubs for getting the YJIT compilation log in memory.

* YJIT: Add a compilation log based on a circular buffer to cap the log size.

* YJIT: Allow specifying either a file or directory name for the YJIT compilation log.

The compilation log will be populated as compilation events occur. If a directory is supplied, then a filename based on the PID will be used as the write target. If a file name is supplied instead, the log will be written to that file.

* YJIT: Add JIT compilation of C function substitutions to the compilation log.

* YJIT: Add compilation events to the circular buffer even if output is sent to a file.

Previously, the two modes were treated as being exclusive of one another. However, it could be beneficial to log all events to a file while also allowing for direct access of the last N events via `RubyVM::YJIT.compilation_log`.

* YJIT: Make timestamps the first element in the YJIT compilation log tuple.

* YJIT: Stream log to stderr if `--yjit-compilation-log` is supplied without an argument.

* YJIT: Eagerly compute compilation log messages to avoid hanging on to references that may GC.

* YJIT: Log all compiled blocks, not just the method entry points.

* YJIT: Remove all compilation events other than block compilation to slim down the log.

* YJIT: Replace circular buffer iterator with a consuming loop.

* YJIT: Support `--yjit-compilation-log=quiet` as a way to activate the in-memory log without printing it.

Co-authored-by: Randy Stauner <randy.stauner@shopify.com>

* YJIT: Promote the compilation log to being the one YJIT log.

Co-authored-by: Randy Stauner <randy.stauner@shopify.com>

* Update doc/yjit/yjit.md

* Update doc/yjit/yjit.md

---------

Co-authored-by: Randy Stauner <randy.stauner@shopify.com>
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2024-10-17 21:36:43 +00:00
Kevin Newton c6828a10ff Update maintainers of Prism 2024-10-17 11:37:45 -04:00
John Bampton 5e799cc182 Fix spelling 2024-10-11 15:16:05 +00:00
Alan Wu a9fb0a2083 YJIT: Improve build instructions for non-hackers (#11878) 2024-10-11 10:24:47 -04:00
Nobuyoshi Nakada ae6bd3b49b [DOC] Tweak "Timezone Objects"
- Make method descriptions plain pragraphs in each method.
- Make "Argument" and "Returns" note-lists.
2024-10-11 01:24:27 +09:00
Hiroshi SHIBATA 67d6e89b0b Added byroot to JSON maintainer
[Misc #20746]
2024-10-09 19:09:17 +09:00
Jean Boussier 8c7e291dd8 Update references to flori/json
Now that the repository was transfered, these links will become
dead in a few months.
2024-10-07 20:12:57 -04:00
Takashi KokubunandMaxime Chevalier-Boisvert 35711903f2 YJIT: Add --yjit-mem-size option (#11810)
* YJIT: Add --yjit-mem-size option

* Improve --help

* s/the region/this virtual memory region/

Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>

---------

Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
2024-10-07 13:07:23 -04:00
Nithin Bekal 30775d0b08 [DOC] Fix typo in Forwardable docs 2024-10-02 14:13:00 +09:00
Nobuyoshi Nakada e7144af750 [DOC] Refine about offset directives 2024-09-29 19:07:16 +09:00
masatoshi_moritsuka 6b46060fc2 doc: Remove description of experimental warnings related pattern matching from documentation
Ruby 3.2.0 has been released and all experimental warnings about pattern matching have been removed.
Experimental warnings about pattern matching are no longer output, so I remove description about it from documentation as well.

cf. https://bugs.ruby-lang.org/issues/18585
cf. db6b23c76c
cf. https://twitter.com/k_tsj/status/1606956336037900289?s=20&t=-_PSYLhYPtYsB9FZhtXl5A
2024-09-25 07:06:42 +09:00