Commit graph

1581 commits

Author SHA1 Message Date
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
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)

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.

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

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%
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.

843e931d13/doc/strscan/strscan.md

Fixed in the PR, see:

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

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
Kevin Menard
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 Kokubun
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
BurdetteLamar
07a0aa9be6 [DOC] Fix link 2024-09-10 14:07:04 -04:00
Burdette Lamar
b539b43b2b [ruby/rdoc] [DOC] Fix links (https://github.com/ruby/rdoc/pull/1169)
a576ff890f
2024-09-02 15:36:53 +00:00
BurdetteLamar
b9902c94a3 Adds remarks about returned Enumerator 2024-08-23 16:21:40 -04:00
Burdette Lamar
f5579c9278
[DOC] Include keywords.rdoc in doc/syntax/ (#11414) 2024-08-21 12:06:48 -04:00
Neil Carvalho
4dbf386ca2
[DOC] Add $; to the list of deprecated global variables 2024-08-17 19:36:22 +09:00
Takashi Kokubun
77ffdfe79f
YJIT: Allow tracing fallback counters (#11347)
* YJIT: Allow tracing fallback counters

* Update yjit.md about --yjit-trace-exits=counter
2024-08-08 16:13:16 -07:00
BurdetteLamar
e008f0553d [DOC] Add remark about in-brief for method doc 2024-08-08 16:08:47 -04:00
Burdette Lamar
f5d193d525
[DOC] Adds "Further Considerations" to documentation_guide.md (#11281) 2024-07-31 16:09:15 -04:00
Burdette Lamar
63bdf2d725 [ruby/rdoc] [DOC] Mods about markup formats
(https://github.com/ruby/rdoc/pull/1143)

011de3f2fd
2024-07-29 13:16:18 +00:00
BurdetteLamar
df1cc04301 Add remark about call-seq 2024-07-29 09:15:19 -04:00
Shugo Maeda
e048a073a3 Add MatchData#bytebegin and MatchData#byteend
These methods return the byte-based offset of the beginning or end of the specified match.

[Feature #20576]
2024-07-16 14:48:06 +09:00
Maxime Chevalier-Boisvert
a58e3305ce
YJIT: remove doc/yjit/yjit_hacking.md (#11153)
Document is 3 years old and out of date
2024-07-11 19:17:40 +00:00
Maxime Chevalier-Boisvert
c0ad0c3e43
Update yjit.md, explain how to run a single test with test-all (#11151) 2024-07-11 17:02:01 +00:00