Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions array.c
Original file line number Diff line number Diff line change
Expand Up @@ -3521,7 +3521,7 @@ static VALUE rb_ary_bsearch_index(VALUE ary);
* Returns the element from +self+ found by a binary search,
* or +nil+ if the search found no suitable element.
*
* See {Binary Searching}[rdoc-ref:bsearch.rdoc].
* See {Binary Searching}[rdoc-ref:language/bsearch.rdoc].
*
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
*/
Expand All @@ -3545,7 +3545,7 @@ rb_ary_bsearch(VALUE ary)
* Returns the integer index of the element from +self+ found by a binary search,
* or +nil+ if the search found no suitable element.
*
* See {Binary Searching}[rdoc-ref:bsearch.rdoc].
* See {Binary Searching}[rdoc-ref:language/bsearch.rdoc].
*
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
*/
Expand Down
4 changes: 2 additions & 2 deletions box.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ rb_initialize_main_box(void)
if (!box_experimental_warned) {
rb_category_warn(RB_WARN_CATEGORY_EXPERIMENTAL,
"Ruby::Box is experimental, and the behavior may change in the future!\n"
"See doc/box.md for known issues, etc.");
"See doc/language/box.md for known issues, etc.");
box_experimental_warned = 1;
}

Expand Down Expand Up @@ -1048,7 +1048,7 @@ rb_f_dump_classext(VALUE recv, VALUE klass)
* Document-class: Ruby::Box
*
* :markup: markdown
* :include: doc/_box.md
* :include: doc/language/box.md
*/
void
Init_Box(void)
Expand Down
6 changes: 3 additions & 3 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1822,11 +1822,11 @@ $(UNICODE_HDR_DIR)/name2ctype.h:
$(UNICODE_SRC_DATA_DIR) $(UNICODE_SRC_EMOJI_DATA_DIR) > $@.new
$(MV) $@.new $@

srcs-doc: $(srcdir)/doc/regexp/unicode_properties.rdoc
$(srcdir)/doc/regexp/$(ALWAYS_UPDATE_UNICODE:yes=unicode_properties.rdoc): \
srcs-doc: $(srcdir)/doc/language/regexp/unicode_properties.rdoc
$(srcdir)/doc/language/regexp/$(ALWAYS_UPDATE_UNICODE:yes=unicode_properties.rdoc): \
$(UNICODE_HDR_DIR)/name2ctype.h $(UNICODE_PROPERTY_FILES)

$(srcdir)/doc/regexp/unicode_properties.rdoc:
$(srcdir)/doc/language/regexp/unicode_properties.rdoc:
$(Q) $(BOOTSTRAPRUBY) $(tooldir)/generic_erb.rb -c -o $@ \
$(srcdir)/template/unicode_properties.rdoc.tmpl \
$(UNICODE_SRC_DATA_DIR) $(UNICODE_HDR_DIR)/name2ctype.h || \
Expand Down
7 changes: 4 additions & 3 deletions doc/.document
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
[^_]*.rb
[^_]*.rdoc
contributing
distribution
NEWS
syntax
optparse
date
rdoc
regexp
yjit
ruby
jit
security
language
4 changes: 2 additions & 2 deletions doc/_regexp.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ A regexp may be used:
most such methods accept an argument that may be either a string
or the (much more powerful) regexp.

See {Regexp Methods}[rdoc-ref:regexp/methods.rdoc].
See {Regexp Methods}[rdoc-ref:language/regexp/methods.rdoc].

== \Regexp Objects

Expand Down Expand Up @@ -821,7 +821,7 @@ Or by using <tt>\P</tt> (uppercase +P+):
/\P{Alpha}/.match('1') # => #<MatchData "1">
/\P{Alpha}/.match('a') # => nil

See {Unicode Properties}[rdoc-ref:regexp/unicode_properties.rdoc]
See {Unicode Properties}[rdoc-ref:language/regexp/unicode_properties.rdoc]
for regexps based on the numerous properties.

Some commonly-used properties correspond to POSIX bracket expressions:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/contributing/building_ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ cause build failures.
## Building on Windows

The documentation for building on Windows can be found in [the separated
file](../windows.md).
file](../distribution/windows.md).

## More details

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/ruby/options.md → doc/language/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ CESU-8
### `--jit`

Option `--jit` is an alias for option `--yjit`, which enables YJIT;
see additional YJIT options in the [YJIT documentation](rdoc-ref:yjit/yjit.md).
see additional YJIT options in the [YJIT documentation](rdoc-ref:jit/yjit.md).

### `--verbose`: Set `$VERBOSE`

Expand Down
2 changes: 1 addition & 1 deletion doc/packed_data.rdoc → doc/language/packed_data.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Any directive may be followed by either of these modifiers:
'AB'.unpack('C3') # => [65, 66, nil]

Note: Directives in <tt>%w[A a Z m]</tt> use +count+ differently;
see {String Directives}[rdoc-ref:@String+Directives].
see {String Directives}[rdoc-ref:language/packed_data.rdoc@String+Directives].

If elements don't fit the provided directive, only least significant bits are encoded:

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -522,5 +522,4 @@ An ISO 8601 combined date and time representation may be any
ISO 8601 date and any ISO 8601 time,
separated by the letter +T+.

For the relevant +strftime+ formats, see {Dates}[rdoc-ref:@Dates] and
{Times}[rdoc-ref:@Times] above.
For the relevant +strftime+ formats, see {Dates}[rdoc-ref:@Dates] and {Times}[rdoc-ref:@Times] above.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions doc/string/partition.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Note that in the examples below, a returned string <tt>'hello'</tt>
is a copy of +self+, not +self+.

If +pattern+ is a Regexp, performs the equivalent of <tt>self.match(pattern)</tt>
(also setting {pattern-matching global variables}[rdoc-ref:globals.md@Pattern+Matching]):
(also setting {pattern-matching global variables}[rdoc-ref:language/globals.md@Pattern+Matching]):

'hello'.partition(/h/) # => ["", "h", "ello"]
'hello'.partition(/l/) # => ["he", "l", "lo"]
Expand All @@ -30,7 +30,7 @@ If +pattern+ is a Regexp, performs the equivalent of <tt>self.match(pattern)</tt

If +pattern+ is not a Regexp, converts it to a string (if it is not already one),
then performs the equivalent of <tt>self.index(pattern)</tt>
(and does _not_ set {pattern-matching global variables}[rdoc-ref:globals.md@Pattern+Matching]):
(and does _not_ set {pattern-matching global variables}[rdoc-ref:language/globals.md@Pattern+Matching]):

'hello'.partition('h') # => ["", "h", "ello"]
'hello'.partition('l') # => ["he", "l", "lo"]
Expand Down
4 changes: 2 additions & 2 deletions doc/string/rpartition.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The pattern used is:
Note that in the examples below, a returned string <tt>'hello'</tt> is a copy of +self+, not +self+.

If +pattern+ is a Regexp, searches for the last matching substring
(also setting {pattern-matching global variables}[rdoc-ref:globals.md@Pattern+Matching]):
(also setting {pattern-matching global variables}[rdoc-ref:language/globals.md@Pattern+Matching]):

'hello'.rpartition(/l/) # => ["hel", "l", "o"]
'hello'.rpartition(/ll/) # => ["he", "ll", "o"]
Expand All @@ -36,7 +36,7 @@ If +pattern+ is a Regexp, searches for the last matching substring

If +pattern+ is not a Regexp, converts it to a string (if it is not already one),
then searches for the last matching substring
(and does _not_ set {pattern-matching global variables}[rdoc-ref:globals.md@Pattern+Matching]):
(and does _not_ set {pattern-matching global variables}[rdoc-ref:language/globals.md@Pattern+Matching]):

'hello'.rpartition('l') # => ["hel", "l", "o"]
'hello'.rpartition('ll') # => ["he", "ll", "o"]
Expand Down
2 changes: 1 addition & 1 deletion doc/syntax/assignment.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ An uninitialized global variable has a value of +nil+.

Ruby has some special globals that behave differently depending on context
such as the regular expression match variables or that have a side-effect when
assigned to. See the {global variables documentation}[rdoc-ref:globals.md]
assigned to. See the {global variables documentation}[rdoc-ref:language/globals.md]
for details.

== Assignment Methods
Expand Down
Loading