Skip to content

Commit 881be64

Browse files
authored
fix hierarchy level of "API reference" in Dates documentation (#55483)
Currently, "API reference" is at the same level as "Dates" although it is a subsection of it. This looks particularly weird in the PDF version of the manual: Section 67 is "Dates" and Section 68 is "API reference". Note that I didn't change the nesting level of the subsection "Constants" at the end of the file. As a result, it is now at the same level as "Dates and Time Types" and "Dates Functions". Before it was a subsection of the latter, which appears wrong to me.
1 parent 5eda597 commit 881be64

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stdlib/Dates/docs/src/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,9 @@ value in the days field is uncertain.
684684
See the [API reference](@ref stdlib-dates-api) for additional information
685685
on methods exported from the `Dates` module.
686686

687-
# [API reference](@id stdlib-dates-api)
687+
## [API reference](@id stdlib-dates-api)
688688

689-
## Dates and Time Types
689+
### Dates and Time Types
690690

691691
```@docs
692692
Dates.Period
@@ -701,7 +701,7 @@ Dates.TimeZone
701701
Dates.UTC
702702
```
703703

704-
## Dates Functions
704+
### Dates Functions
705705

706706
```@docs
707707
Dates.DateTime(::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64)
@@ -730,7 +730,7 @@ Dates.now(::Type{Dates.UTC})
730730
Base.eps(::Union{Type{DateTime}, Type{Date}, Type{Time}, TimeType})
731731
```
732732

733-
### Accessor Functions
733+
#### Accessor Functions
734734

735735
```@docs
736736
Dates.year
@@ -758,7 +758,7 @@ Dates.monthday
758758
Dates.yearmonthday
759759
```
760760

761-
### Query Functions
761+
#### Query Functions
762762

763763
```@docs
764764
Dates.dayname
@@ -777,7 +777,7 @@ Dates.quarterofyear
777777
Dates.dayofquarter
778778
```
779779

780-
### Adjuster Functions
780+
#### Adjuster Functions
781781

782782
```@docs
783783
Base.trunc(::Dates.TimeType, ::Type{Dates.Period})
@@ -797,7 +797,7 @@ Dates.tonext(::Function, ::Dates.TimeType)
797797
Dates.toprev(::Function, ::Dates.TimeType)
798798
```
799799

800-
### Periods
800+
#### Periods
801801

802802
```@docs
803803
Dates.Period(::Any)
@@ -808,7 +808,7 @@ Dates.default
808808
Dates.periods
809809
```
810810

811-
### Rounding Functions
811+
#### Rounding Functions
812812

813813
`Date` and `DateTime` values can be rounded to a specified resolution (e.g., 1 month or 15 minutes)
814814
with `floor`, `ceil`, or `round`.
@@ -837,7 +837,7 @@ Dates.date2epochdays
837837
Dates.datetime2epochms
838838
```
839839

840-
### Conversion Functions
840+
#### Conversion Functions
841841

842842
```@docs
843843
Dates.today

0 commit comments

Comments
 (0)