Skip to content

Commit 4cd6661

Browse files
authored
Reorganize page documentations (ruby#15154)
Re-organize page docs
1 parent 2f192c7 commit 4cd6661

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+145
-143
lines changed

array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3521,7 +3521,7 @@ static VALUE rb_ary_bsearch_index(VALUE ary);
35213521
* Returns the element from +self+ found by a binary search,
35223522
* or +nil+ if the search found no suitable element.
35233523
*
3524-
* See {Binary Searching}[rdoc-ref:bsearch.rdoc].
3524+
* See {Binary Searching}[rdoc-ref:language/bsearch.rdoc].
35253525
*
35263526
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
35273527
*/
@@ -3545,7 +3545,7 @@ rb_ary_bsearch(VALUE ary)
35453545
* Returns the integer index of the element from +self+ found by a binary search,
35463546
* or +nil+ if the search found no suitable element.
35473547
*
3548-
* See {Binary Searching}[rdoc-ref:bsearch.rdoc].
3548+
* See {Binary Searching}[rdoc-ref:language/bsearch.rdoc].
35493549
*
35503550
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
35513551
*/

box.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ rb_initialize_main_box(void)
796796
if (!box_experimental_warned) {
797797
rb_category_warn(RB_WARN_CATEGORY_EXPERIMENTAL,
798798
"Ruby::Box is experimental, and the behavior may change in the future!\n"
799-
"See doc/box.md for known issues, etc.");
799+
"See doc/language/box.md for known issues, etc.");
800800
box_experimental_warned = 1;
801801
}
802802

@@ -1048,7 +1048,7 @@ rb_f_dump_classext(VALUE recv, VALUE klass)
10481048
* Document-class: Ruby::Box
10491049
*
10501050
* :markup: markdown
1051-
* :include: doc/_box.md
1051+
* :include: doc/language/box.md
10521052
*/
10531053
void
10541054
Init_Box(void)

common.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,11 +1822,11 @@ $(UNICODE_HDR_DIR)/name2ctype.h:
18221822
$(UNICODE_SRC_DATA_DIR) $(UNICODE_SRC_EMOJI_DATA_DIR) > $@.new
18231823
$(MV) $@.new $@
18241824

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

1829-
$(srcdir)/doc/regexp/unicode_properties.rdoc:
1829+
$(srcdir)/doc/language/regexp/unicode_properties.rdoc:
18301830
$(Q) $(BOOTSTRAPRUBY) $(tooldir)/generic_erb.rb -c -o $@ \
18311831
$(srcdir)/template/unicode_properties.rdoc.tmpl \
18321832
$(UNICODE_SRC_DATA_DIR) $(UNICODE_HDR_DIR)/name2ctype.h || \

doc/.document

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
[^_]*.rb
33
[^_]*.rdoc
44
contributing
5+
distribution
56
NEWS
67
syntax
78
optparse
89
date
910
rdoc
10-
regexp
11-
yjit
12-
ruby
11+
jit
12+
security
13+
language

doc/_regexp.rdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ A regexp may be used:
3939
most such methods accept an argument that may be either a string
4040
or the (much more powerful) regexp.
4141

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

4444
== \Regexp Objects
4545

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

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

827827
Some commonly-used properties correspond to POSIX bracket expressions:
File renamed without changes.

doc/contributing/building_ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ cause build failures.
184184
## Building on Windows
185185
186186
The documentation for building on Windows can be found in [the separated
187-
file](../windows.md).
187+
file](../distribution/windows.md).
188188
189189
## More details
190190
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)