1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix broken links [ci skip]

* As the "doc/" prefix is specified by the `--page-dir` option,
  remove from the rdoc references.
* Refer to the original .rdoc instead of the converted .html.
This commit is contained in:
Nobuyoshi Nakada 2021-09-15 09:39:43 +09:00
parent 63ab2fedc8
commit a27c274f04
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
8 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
Please see the [official issue tracker], [doc/contributing.rdoc] and wiki [HowToContribute].
[official issue tracker]: https://bugs.ruby-lang.org
[doc/contributing.rdoc]: doc/contributing.rdoc
[doc/contributing.rdoc]: contributing.rdoc
[HowToContribute]: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToContribute

View file

@ -3423,7 +3423,7 @@ static VALUE rb_ary_bsearch_index(VALUE ary);
*
* Returns an element from +self+ selected by a binary search.
*
* See {Binary Searching}[doc/bsearch_rdoc.html].
* See {Binary Searching}[rdoc-ref:bsearch.rdoc].
*/
static VALUE
@ -7628,7 +7628,7 @@ rb_ary_one_p(int argc, VALUE *argv, VALUE ary)
* Finds and returns the object in nested objects
* that is specified by +index+ and +identifiers+.
* The nested objects may be instances of various classes.
* See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc].
* See {Dig Methods}[rdoc-ref:dig_methods.rdoc].
*
* Examples:
* a = [:foo, [:bar, :baz, [:bat, :bam]]]

View file

@ -86,7 +86,7 @@ Note that each entry is kept to a minimum, see links for details.
`# frozen-string-literal: true` is used. [[Feature #17104]]
* Magic comment `shareable_constant_value` added to freeze constants.
See {Magic Comments}[rdoc-ref:doc/syntax/comments.rdoc@Magic+Comments] for more details.
See {Magic Comments}[rdoc-ref:syntax/comments.rdoc@Magic+Comments] for more details.
[[Feature #17273]]
* A {static analysis}[rdoc-label:label-Static+analysis] foundation is

2
hash.c
View file

@ -4534,7 +4534,7 @@ rb_hash_any_p(int argc, VALUE *argv, VALUE hash)
* Finds and returns the object in nested objects
* that is specified by +key+ and +identifiers+.
* The nested objects may be instances of various classes.
* See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc].
* See {Dig Methods}[rdoc-ref:dig_methods.rdoc].
*
* Nested Hashes:
* h = {foo: {bar: {baz: 2}}}

View file

@ -308,7 +308,7 @@ class OpenStruct
# Finds and returns the object in nested objects
# that is specified by +name+ and +identifiers+.
# The nested objects may be instances of various classes.
# See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc].
# See {Dig Methods}[rdoc-ref:dig_methods.rdoc].
#
# Examples:
# require "ostruct"

View file

@ -195,7 +195,7 @@
# # can not access instance variables of classes/modules from non-main Ractors (RuntimeError)
#
# See also the description of <tt># shareable_constant_value</tt> pragma in
# {Comments syntax}[rdoc-ref:doc/syntax/comments.rdoc] explanation.
# {Comments syntax}[rdoc-ref:syntax/comments.rdoc] explanation.
#
# == Ractors vs threads
#
@ -223,7 +223,7 @@
#
# == Reference
#
# See {Ractor design doc}[rdoc-ref:doc/ractor.md] for more details.
# See {Ractor design doc}[rdoc-ref:ractor.md] for more details.
#
class Ractor
#

View file

@ -664,7 +664,7 @@ bsearch_integer_range(VALUE beg, VALUE end, int excl)
*
* Returns an element from +self+ selected by a binary search.
*
* See {Binary Searching}[doc/bsearch_rdoc.html].
* See {Binary Searching}[rdoc-ref:bsearch.rdoc].
*
*/

View file

@ -1366,7 +1366,7 @@ rb_struct_size(VALUE s)
* Finds and returns the object in nested objects
* that is specified by +key+ and +identifiers+.
* The nested objects may be instances of various classes.
* See {Dig Methods}[rdoc-ref:doc/dig_methods.rdoc].
* See {Dig Methods}[rdoc-ref:dig_methods.rdoc].
*
* Examples:
* Foo = Struct.new(:a)