Skip to content

Commit 5b1ed1e

Browse files
authored
[DOC] Remove unneeded filename from rdoc-ref links (ruby#15339)
1 parent 4cd6661 commit 5b1ed1e

File tree

4 files changed

+51
-53
lines changed

4 files changed

+51
-53
lines changed

doc/language/calendars.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ See also {a concrete example here}[rdoc-ref:DateTime@When+should+you+use+DateTim
3131
=== Argument +start+
3232

3333
Certain methods in class \Date handle differences in the
34-
{Julian and Gregorian calendars}[rdoc-ref:language/calendars.rdoc@Julian+and+Gregorian+Calendars]
34+
{Julian and Gregorian calendars}[rdoc-ref:@Julian+and+Gregorian+Calendars]
3535
by accepting an optional argument +start+, whose value may be:
3636

3737
- Date::ITALY (the default): the created date is Julian

doc/language/format_specifications.rdoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,42 +46,42 @@ The links lead to the details and examples.
4646
=== \Integer Type Specifiers
4747

4848
- +b+ or +B+: Format +argument+ as a binary integer.
49-
See {Specifiers b and B}[rdoc-ref:language/format_specifications.rdoc@Specifiers+b+and+B].
49+
See {Specifiers b and B}[rdoc-ref:@Specifiers+b+and+B].
5050
- +d+, +i+, or +u+ (all are identical):
5151
Format +argument+ as a decimal integer.
52-
See {Specifier d}[rdoc-ref:language/format_specifications.rdoc@Specifier+d].
52+
See {Specifier d}[rdoc-ref:@Specifier+d].
5353
- +o+: Format +argument+ as an octal integer.
54-
See {Specifier o}[rdoc-ref:language/format_specifications.rdoc@Specifier+o].
54+
See {Specifier o}[rdoc-ref:@Specifier+o].
5555
- +x+ or +X+: Format +argument+ as a hexadecimal integer.
56-
See {Specifiers x and X}[rdoc-ref:language/format_specifications.rdoc@Specifiers+x+and+X].
56+
See {Specifiers x and X}[rdoc-ref:@Specifiers+x+and+X].
5757

5858
=== Floating-Point Type Specifiers
5959

6060
- +a+ or +A+: Format +argument+ as hexadecimal floating-point number.
61-
See {Specifiers a and A}[rdoc-ref:language/format_specifications.rdoc@Specifiers+a+and+A].
61+
See {Specifiers a and A}[rdoc-ref:@Specifiers+a+and+A].
6262
- +e+ or +E+: Format +argument+ in scientific notation.
63-
See {Specifiers e and E}[rdoc-ref:language/format_specifications.rdoc@Specifiers+e+and+E].
63+
See {Specifiers e and E}[rdoc-ref:@Specifiers+e+and+E].
6464
- +f+: Format +argument+ as a decimal floating-point number.
65-
See {Specifier f}[rdoc-ref:language/format_specifications.rdoc@Specifier+f].
65+
See {Specifier f}[rdoc-ref:@Specifier+f].
6666
- +g+ or +G+: Format +argument+ in a "general" format.
67-
See {Specifiers g and G}[rdoc-ref:language/format_specifications.rdoc@Specifiers+g+and+G].
67+
See {Specifiers g and G}[rdoc-ref:@Specifiers+g+and+G].
6868

6969
=== Other Type Specifiers
7070

7171
- +c+: Format +argument+ as a character.
72-
See {Specifier c}[rdoc-ref:language/format_specifications.rdoc@Specifier+c].
72+
See {Specifier c}[rdoc-ref:@Specifier+c].
7373
- +p+: Format +argument+ as a string via <tt>argument.inspect</tt>.
74-
See {Specifier p}[rdoc-ref:language/format_specifications.rdoc@Specifier+p].
74+
See {Specifier p}[rdoc-ref:@Specifier+p].
7575
- +s+: Format +argument+ as a string via <tt>argument.to_s</tt>.
76-
See {Specifier s}[rdoc-ref:language/format_specifications.rdoc@Specifier+s].
76+
See {Specifier s}[rdoc-ref:@Specifier+s].
7777
- <tt>%</tt>: Format +argument+ (<tt>'%'</tt>) as a single percent character.
78-
See {Specifier %}[rdoc-ref:language/format_specifications.rdoc@Specifier+-25].
78+
See {Specifier %}[rdoc-ref:@Specifier+-25].
7979

8080
== Flags
8181

8282
The effect of a flag may vary greatly among type specifiers.
8383
These remarks are general in nature.
84-
See {type-specific details}[rdoc-ref:language/format_specifications.rdoc@Type+Specifier+Details+and+Examples].
84+
See {type-specific details}[rdoc-ref:@Type+Specifier+Details+and+Examples].
8585

8686
Multiple flags may be given with single type specifier;
8787
order does not matter.

doc/language/options.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ nil
6868

6969
See also:
7070

71-
- {Option -a}[rdoc-ref:language/options.md@a-3A+Split+Input+Lines+into+Fields]:
71+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
7272
Split input lines into fields.
73-
- {Option -F}[rdoc-ref:language/options.md@F-3A+Set+Input+Field+Separator]:
73+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
7474
Set input field separator.
75-
- {Option -l}[rdoc-ref:language/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
75+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
7676
Set output record separator; chop lines.
77-
- {Option -n}[rdoc-ref:language/options.md@n-3A+Run+Program+in+gets+Loop]:
77+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
7878
Run program in `gets` loop.
79-
- {Option -p}[rdoc-ref:language/options.md@p-3A+-n-2C+with+Printing]:
79+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
8080
`-n`, with printing.
8181

8282
### `-a`: Split Input Lines into Fields
@@ -98,15 +98,15 @@ and the default field separator is `$;`.
9898

9999
See also:
100100

101-
- {Option -0}[rdoc-ref:language/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
101+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
102102
Set `$/` (input record separator).
103-
- {Option -F}[rdoc-ref:language/options.md@F-3A+Set+Input+Field+Separator]:
103+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
104104
Set input field separator.
105-
- {Option -l}[rdoc-ref:language/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
105+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
106106
Set output record separator; chop lines.
107-
- {Option -n}[rdoc-ref:language/options.md@n-3A+Run+Program+in+gets+Loop]:
107+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
108108
Run program in `gets` loop.
109-
- {Option -p}[rdoc-ref:language/options.md@p-3A+-n-2C+with+Printing]:
109+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
110110
`-n`, with printing.
111111

112112
### `-c`: Check Syntax
@@ -228,15 +228,15 @@ The argument must immediately follow the option
228228

229229
See also:
230230

231-
- {Option -0}[rdoc-ref:language/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
231+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
232232
Set `$/` (input record separator).
233-
- {Option -a}[rdoc-ref:language/options.md@a-3A+Split+Input+Lines+into+Fields]:
233+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
234234
Split input lines into fields.
235-
- {Option -l}[rdoc-ref:language/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
235+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
236236
Set output record separator; chop lines.
237-
- {Option -n}[rdoc-ref:language/options.md@n-3A+Run+Program+in+gets+Loop]:
237+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
238238
Run program in `gets` loop.
239-
- {Option -p}[rdoc-ref:language/options.md@p-3A+-n-2C+with+Printing]:
239+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
240240
`-n`, with printing.
241241

242242
### `-h`: Print Short Help Message
@@ -314,15 +314,15 @@ $ ruby -ln -e 'p $_' desiderata.txt
314314

315315
See also:
316316

317-
- {Option -0}[rdoc-ref:language/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
317+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
318318
Set `$/` (input record separator).
319-
- {Option -a}[rdoc-ref:language/options.md@a-3A+Split+Input+Lines+into+Fields]:
319+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
320320
Split input lines into fields.
321-
- {Option -F}[rdoc-ref:language/options.md@F-3A+Set+Input+Field+Separator]:
321+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
322322
Set input field separator.
323-
- {Option -n}[rdoc-ref:language/options.md@n-3A+Run+Program+in+gets+Loop]:
323+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
324324
Run program in `gets` loop.
325-
- {Option -p}[rdoc-ref:language/options.md@p-3A+-n-2C+with+Printing]:
325+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
326326
`-n`, with printing.
327327

328328
### `-n`: Run Program in `gets` Loop
@@ -348,15 +348,15 @@ be on good terms with all persons.
348348

349349
See also:
350350

351-
- {Option -0}[rdoc-ref:language/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
351+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
352352
Set `$/` (input record separator).
353-
- {Option -a}[rdoc-ref:language/options.md@a-3A+Split+Input+Lines+into+Fields]:
353+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
354354
Split input lines into fields.
355-
- {Option -F}[rdoc-ref:language/options.md@F-3A+Set+Input+Field+Separator]:
355+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
356356
Set input field separator.
357-
- {Option -l}[rdoc-ref:language/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
357+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
358358
Set output record separator; chop lines.
359-
- {Option -p}[rdoc-ref:language/options.md@p-3A+-n-2C+with+Printing]:
359+
- {Option -p}[rdoc-ref:@p-3A+-n-2C+with+Printing]:
360360
`-n`, with printing.
361361

362362
### `-p`: `-n`, with Printing
@@ -377,15 +377,15 @@ be on good terms with all persons.
377377

378378
See also:
379379

380-
- {Option -0}[rdoc-ref:language/options.md@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
380+
- {Option -0}[rdoc-ref:@0-3A+Set+-24-2F+-28Input+Record+Separator-29]:
381381
Set `$/` (input record separator).
382-
- {Option -a}[rdoc-ref:language/options.md@a-3A+Split+Input+Lines+into+Fields]:
382+
- {Option -a}[rdoc-ref:@a-3A+Split+Input+Lines+into+Fields]:
383383
Split input lines into fields.
384-
- {Option -F}[rdoc-ref:language/options.md@F-3A+Set+Input+Field+Separator]:
384+
- {Option -F}[rdoc-ref:@F-3A+Set+Input+Field+Separator]:
385385
Set input field separator.
386-
- {Option -l}[rdoc-ref:language/options.md@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
386+
- {Option -l}[rdoc-ref:@l-3A+Set+Output+Record+Separator-3B+Chop+Lines]:
387387
Set output record separator; chop lines.
388-
- {Option -n}[rdoc-ref:language/options.md@n-3A+Run+Program+in+gets+Loop]:
388+
- {Option -n}[rdoc-ref:@n-3A+Run+Program+in+gets+Loop]:
389389
Run program in `gets` loop.
390390

391391
### `-r`: Require Library
@@ -434,7 +434,7 @@ $ ruby -s t.rb -foo=baz -bar=bat
434434
```
435435

436436
The option may not be used with
437-
{option -e}[rdoc-ref:language/options.md@e-3A+Execute+Given+Ruby+Code]
437+
{option -e}[rdoc-ref:@e-3A+Execute+Given+Ruby+Code]
438438

439439
### `-S`: Search Directories in `ENV['PATH']`
440440

@@ -583,7 +583,7 @@ ruby - Copyright (C) 1993-2024 Yukihiro Matsumoto
583583
### `--debug`: Alias for `-d`
584584

585585
Option `--debug` is an alias for
586-
{option -d}[rdoc-ref:language/options.md@d-3A+Set+-24DEBUG+to+true].
586+
{option -d}[rdoc-ref:@d-3A+Set+-24DEBUG+to+true].
587587

588588
### `--disable`: Disable Features
589589

@@ -617,9 +617,9 @@ option was given:
617617
- `--dump=help`:
618618
Same as {option \-\-help}[options_md.html#label--help-3A+Print+Help+Message].
619619
- `--dump=syntax`:
620-
Same as {option -c}[rdoc-ref:language/options.md@c-3A+Check+Syntax].
620+
Same as {option -c}[rdoc-ref:@c-3A+Check+Syntax].
621621
- `--dump=usage`:
622-
Same as {option -h}[rdoc-ref:language/options.md@h-3A+Print+Short+Help+Message].
622+
Same as {option -h}[rdoc-ref:@h-3A+Print+Short+Help+Message].
623623
- `--dump=version`:
624624
Same as {option \-\-version}[options_md.html#label--version-3A+Print+Ruby+Version].
625625

@@ -641,7 +641,7 @@ see {option --disable}[options_md.html#label--disable-3A+Disable+Features].
641641
### `--encoding`: Alias for `-E`.
642642

643643
Option `--encoding` is an alias for
644-
{option -E}[rdoc-ref:language/options.md@E-3A+Set+Default+Encodings].
644+
{option -E}[rdoc-ref:@E-3A+Set+Default+Encodings].
645645

646646
### `--external-encoding`: Set Default External \Encoding
647647

doc/language/strftime_formatting.rdoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ the only required part is the conversion specifier, so we begin with that.
136136
t = Time.now # => 2022-06-29 07:10:20.3230914 -0500
137137
t.strftime('%N') # => "323091400" # Default.
138138

139-
Use {width specifiers}[rdoc-ref:language/strftime_formatting.rdoc@Width+Specifiers]
139+
Use {width specifiers}[rdoc-ref:@Width+Specifiers]
140140
to adjust units:
141141

142142
t.strftime('%3N') # => "323" # Milliseconds.
@@ -522,6 +522,4 @@ An ISO 8601 combined date and time representation may be any
522522
ISO 8601 date and any ISO 8601 time,
523523
separated by the letter +T+.
524524

525-
For the relevant +strftime+ formats, see
526-
{Dates}[rdoc-ref:language/strftime_formatting.rdoc@Dates]
527-
and {Times}[rdoc-ref:language/strftime_formatting.rdoc@Times] above.
525+
For the relevant +strftime+ formats, see {Dates}[rdoc-ref:@Dates] and {Times}[rdoc-ref:@Times] above.

0 commit comments

Comments
 (0)