[前][次][番号順一覧][スレッド一覧]

ruby-changes:67997

From: Nobuyoshi <ko1@a...>
Date: Wed, 15 Sep 2021 14:23:37 +0900 (JST)
Subject: [ruby-changes:67997] a27c274f04 (master): [DOC] Fix broken links [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=a27c274f04

From a27c274f0476fa270b9e2f5d4f4ec36bd8c0b61a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 15 Sep 2021 09:39:43 +0900
Subject: [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.
---
 CONTRIBUTING.md   | 2 +-
 array.c           | 4 ++--
 doc/NEWS-3.0.0.md | 2 +-
 hash.c            | 2 +-
 lib/ostruct.rb    | 2 +-
 ractor.rb         | 4 ++--
 range.c           | 2 +-
 struct.c          | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index c112806..7363c10 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/CONTRIBUTING.md#L1
 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
diff --git a/array.c b/array.c
index d3eb7ce..63d63aa 100644
--- a/array.c
+++ b/array.c
@@ -3423,7 +3423,7 @@ static VALUE rb_ary_bsearch_index(VALUE ary); https://github.com/ruby/ruby/blob/trunk/array.c#L3423
  *
  *  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) https://github.com/ruby/ruby/blob/trunk/array.c#L7628
  *  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]]]
diff --git a/doc/NEWS-3.0.0.md b/doc/NEWS-3.0.0.md
index 6ec5a09..00c26fe 100644
--- a/doc/NEWS-3.0.0.md
+++ b/doc/NEWS-3.0.0.md
@@ -86,7 +86,7 @@ Note that each entry is kept to a minimum, see links for details. https://github.com/ruby/ruby/blob/trunk/doc/NEWS-3.0.0.md#L86
   `# 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
diff --git a/hash.c b/hash.c
index fd21a99..3fd13ff 100644
--- a/hash.c
+++ b/hash.c
@@ -4534,7 +4534,7 @@ rb_hash_any_p(int argc, VALUE *argv, VALUE hash) https://github.com/ruby/ruby/blob/trunk/hash.c#L4534
  *  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}}}
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 1203d10..c03d912 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -308,7 +308,7 @@ class OpenStruct https://github.com/ruby/ruby/blob/trunk/lib/ostruct.rb#L308
   # 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"
diff --git a/ractor.rb b/ractor.rb
index 1b8cd11..ef36b29 100644
--- a/ractor.rb
+++ b/ractor.rb
@@ -195,7 +195,7 @@ https://github.com/ruby/ruby/blob/trunk/ractor.rb#L195
 #     # 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 @@ https://github.com/ruby/ruby/blob/trunk/ractor.rb#L223
 #
 # == 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
   #
diff --git a/range.c b/range.c
index 2d49cc1..3dcced4 100644
--- a/range.c
+++ b/range.c
@@ -664,7 +664,7 @@ bsearch_integer_range(VALUE beg, VALUE end, int excl) https://github.com/ruby/ruby/blob/trunk/range.c#L664
  *
  *  Returns an element from +self+ selected by a binary search.
  *
- *  See {Binary Searching}[doc/bsearch_rdoc.html].
+ *  See {Binary Searching}[rdoc-ref:bsearch.rdoc].
  *
  */
 
diff --git a/struct.c b/struct.c
index e1c0145..c7c95f9 100644
--- a/struct.c
+++ b/struct.c
@@ -1366,7 +1366,7 @@ rb_struct_size(VALUE s) https://github.com/ruby/ruby/blob/trunk/struct.c#L1366
  * 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)
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]