[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
Родитель 63ab2fedc8
Коммит a27c274f04
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
8 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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]]]

Просмотреть файл

@ -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
Просмотреть файл

@ -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}}}

Просмотреть файл

@ -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"

Просмотреть файл

@ -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
#

Просмотреть файл

@ -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].
*
*/

Просмотреть файл

@ -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)