Skip to content

Commit 86d46b4

Browse files
authored
Merge pull request #113 from st0012/fix-broken-links
[DOC] Fix broken rdoc-ref to the calendar page
2 parents ff1c6e2 + cb52e64 commit 86d46b4

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

doc/date/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:calendars.rdoc@Julian+and+Gregorian+Calendars]
34+
{Julian and Gregorian calendars}[rdoc-ref:date/calendars.rdoc@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

ext/date/date_core.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,7 +2498,7 @@ date_s__valid_jd_p(int argc, VALUE *argv, VALUE klass)
24982498
*
24992499
* Date.valid_jd?(2451944) # => true
25002500
*
2501-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
2501+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
25022502
*
25032503
* Related: Date.jd.
25042504
*/
@@ -2592,7 +2592,7 @@ date_s__valid_civil_p(int argc, VALUE *argv, VALUE klass)
25922592
* Date.valid_date?(2001, 2, 29) # => false
25932593
* Date.valid_date?(2001, 2, -1) # => true
25942594
*
2595-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
2595+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
25962596
*
25972597
* Related: Date.jd, Date.new.
25982598
*/
@@ -2680,7 +2680,7 @@ date_s__valid_ordinal_p(int argc, VALUE *argv, VALUE klass)
26802680
* Date.valid_ordinal?(2001, 34) # => true
26812681
* Date.valid_ordinal?(2001, 366) # => false
26822682
*
2683-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
2683+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
26842684
*
26852685
* Related: Date.jd, Date.ordinal.
26862686
*/
@@ -2770,7 +2770,7 @@ date_s__valid_commercial_p(int argc, VALUE *argv, VALUE klass)
27702770
*
27712771
* See Date.commercial.
27722772
*
2773-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
2773+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
27742774
*
27752775
* Related: Date.jd, Date.commercial.
27762776
*/
@@ -3350,7 +3350,7 @@ static VALUE d_lite_plus(VALUE, VALUE);
33503350
*
33513351
* Date.jd(Date::ITALY - 1).julian? # => true
33523352
*
3353-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
3353+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
33543354
*
33553355
* Related: Date.new.
33563356
*/
@@ -3415,7 +3415,7 @@ date_s_jd(int argc, VALUE *argv, VALUE klass)
34153415
*
34163416
* Raises an exception if +yday+ is zero or out of range.
34173417
*
3418-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
3418+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
34193419
*
34203420
* Related: Date.jd, Date.new.
34213421
*/
@@ -3492,7 +3492,7 @@ date_s_civil(int argc, VALUE *argv, VALUE klass)
34923492
* where +n+ is the number of days in the month;
34933493
* when the argument is negative, counts backward from the end of the month.
34943494
*
3495-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
3495+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
34963496
*
34973497
* Related: Date.jd.
34983498
*/
@@ -3598,7 +3598,7 @@ date_initialize(int argc, VALUE *argv, VALUE self)
35983598
* Date.commercial(2020, 1, 1).to_s # => "2019-12-30"
35993599
Date.commercial(2020, 1, 7).to_s # => "2020-01-05"
36003600
*
3601-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
3601+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
36023602
*
36033603
* Related: Date.jd, Date.new, Date.ordinal.
36043604
*/
@@ -3783,7 +3783,7 @@ static void set_sg(union DateData *, double);
37833783
*
37843784
* Date.today.to_s # => "2022-07-06"
37853785
*
3786-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
3786+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
37873787
*
37883788
*/
37893789
static VALUE
@@ -4415,7 +4415,7 @@ date_s__strptime(int argc, VALUE *argv, VALUE klass)
44154415
* {Formats for Dates and Times}[https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html].
44164416
* (Unlike Date.strftime, does not support flags and width.)
44174417
*
4418-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4418+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
44194419
*
44204420
* See also {strptime(3)}[https://man7.org/linux/man-pages/man3/strptime.3.html].
44214421
*
@@ -4560,7 +4560,7 @@ date_s__parse(int argc, VALUE *argv, VALUE klass)
45604560
*
45614561
* See:
45624562
*
4563-
* - Argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4563+
* - Argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
45644564
* - Argument {limit}[rdoc-ref:Date@Argument+limit].
45654565
*
45664566
* Related: Date._parse (returns a hash).
@@ -4639,7 +4639,7 @@ date_s__iso8601(int argc, VALUE *argv, VALUE klass)
46394639
*
46404640
* See:
46414641
*
4642-
* - Argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4642+
* - Argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
46434643
* - Argument {limit}[rdoc-ref:Date@Argument+limit].
46444644
*
46454645
* Related: Date._iso8601 (returns a hash).
@@ -4709,7 +4709,7 @@ date_s__rfc3339(int argc, VALUE *argv, VALUE klass)
47094709
*
47104710
* See:
47114711
*
4712-
* - Argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4712+
* - Argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
47134713
* - Argument {limit}[rdoc-ref:Date@Argument+limit].
47144714
*
47154715
* Related: Date._rfc3339 (returns a hash).
@@ -4777,7 +4777,7 @@ date_s__xmlschema(int argc, VALUE *argv, VALUE klass)
47774777
*
47784778
* See:
47794779
*
4780-
* - Argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4780+
* - Argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
47814781
* - Argument {limit}[rdoc-ref:Date@Argument+limit].
47824782
*
47834783
* Related: Date._xmlschema (returns a hash).
@@ -4847,7 +4847,7 @@ date_s__rfc2822(int argc, VALUE *argv, VALUE klass)
48474847
*
48484848
* See:
48494849
*
4850-
* - Argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4850+
* - Argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
48514851
* - Argument {limit}[rdoc-ref:Date@Argument+limit].
48524852
*
48534853
* Related: Date._rfc2822 (returns a hash).
@@ -4915,7 +4915,7 @@ date_s__httpdate(int argc, VALUE *argv, VALUE klass)
49154915
*
49164916
* See:
49174917
*
4918-
* - Argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4918+
* - Argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
49194919
* - Argument {limit}[rdoc-ref:Date@Argument+limit].
49204920
*
49214921
* Related: Date._httpdate (returns a hash).
@@ -4987,7 +4987,7 @@ date_s__jisx0301(int argc, VALUE *argv, VALUE klass)
49874987
*
49884988
* See:
49894989
*
4990-
* - Argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
4990+
* - Argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
49914991
* - Argument {limit}[rdoc-ref:Date@Argument+limit].
49924992
*
49934993
* Related: Date._jisx0301 (returns a hash).
@@ -5745,7 +5745,7 @@ d_lite_leap_p(VALUE self)
57455745
* Date.new(2001, 2, 3, Date::GREGORIAN).start # => -Infinity
57465746
* Date.new(2001, 2, 3, Date::JULIAN).start # => Infinity
57475747
*
5748-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
5748+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
57495749
*
57505750
*/
57515751
static VALUE
@@ -5820,7 +5820,7 @@ dup_obj_with_new_start(VALUE obj, double sg)
58205820
* d1 = d0.new_start(Date::JULIAN)
58215821
* d1.julian? # => true
58225822
*
5823-
* See argument {start}[rdoc-ref:calendars.rdoc@Argument+start].
5823+
* See argument {start}[rdoc-ref:date/calendars.rdoc@Argument+start].
58245824
*
58255825
*/
58265826
static VALUE
@@ -9522,7 +9522,7 @@ Init_date_core(void)
95229522
*
95239523
* - You need both dates and times; \Date handles only dates.
95249524
* - You need only Gregorian dates (and not Julian dates);
9525-
* see {Julian and Gregorian Calendars}[rdoc-ref:calendars.rdoc].
9525+
* see {Julian and Gregorian Calendars}[rdoc-ref:date/calendars.rdoc].
95269526
*
95279527
* A \Date object, once created, is immutable, and cannot be modified.
95289528
*

0 commit comments

Comments
 (0)