Skip to content

Commit ecdbb39

Browse files
matthias314KristofferC
authored andcommitted
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. (cherry picked from commit 881be64)
1 parent 84139ed commit ecdbb39

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
@@ -688,9 +688,9 @@ value in the days field is uncertain.
688688
See the [API reference](@ref stdlib-dates-api) for additional information
689689
on methods exported from the `Dates` module.
690690

691-
# [API reference](@id stdlib-dates-api)
691+
## [API reference](@id stdlib-dates-api)
692692

693-
## Dates and Time Types
693+
### Dates and Time Types
694694

695695
```@docs
696696
Dates.Period
@@ -705,7 +705,7 @@ Dates.TimeZone
705705
Dates.UTC
706706
```
707707

708-
## Dates Functions
708+
### Dates Functions
709709

710710
```@docs
711711
Dates.DateTime(::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64)
@@ -734,7 +734,7 @@ Dates.now(::Type{Dates.UTC})
734734
Base.eps(::Union{Type{DateTime}, Type{Date}, Type{Time}, TimeType})
735735
```
736736

737-
### Accessor Functions
737+
#### Accessor Functions
738738

739739
```@docs
740740
Dates.year
@@ -762,7 +762,7 @@ Dates.monthday
762762
Dates.yearmonthday
763763
```
764764

765-
### Query Functions
765+
#### Query Functions
766766

767767
```@docs
768768
Dates.dayname
@@ -781,7 +781,7 @@ Dates.quarterofyear
781781
Dates.dayofquarter
782782
```
783783

784-
### Adjuster Functions
784+
#### Adjuster Functions
785785

786786
```@docs
787787
Base.trunc(::Dates.TimeType, ::Type{Dates.Period})
@@ -801,7 +801,7 @@ Dates.tonext(::Function, ::Dates.TimeType)
801801
Dates.toprev(::Function, ::Dates.TimeType)
802802
```
803803

804-
### Periods
804+
#### Periods
805805

806806
```@docs
807807
Dates.Period(::Any)
@@ -812,7 +812,7 @@ Dates.default
812812
Dates.periods
813813
```
814814

815-
### Rounding Functions
815+
#### Rounding Functions
816816

817817
`Date` and `DateTime` values can be rounded to a specified resolution (e.g., 1 month or 15 minutes)
818818
with `floor`, `ceil`, or `round`.
@@ -841,7 +841,7 @@ Dates.date2epochdays
841841
Dates.datetime2epochms
842842
```
843843

844-
### Conversion Functions
844+
#### Conversion Functions
845845

846846
```@docs
847847
Dates.today

0 commit comments

Comments
 (0)