Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix hierarchy level of "API reference" in Dates documentation #55483

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions stdlib/Dates/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,9 @@ value in the days field is uncertain.
See the [API reference](@ref stdlib-dates-api) for additional information
on methods exported from the `Dates` module.

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

## Dates and Time Types
### Dates and Time Types

```@docs
Dates.Period
Expand All @@ -701,7 +701,7 @@ Dates.TimeZone
Dates.UTC
```

## Dates Functions
### Dates Functions

```@docs
Dates.DateTime(::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64)
Expand Down Expand Up @@ -730,7 +730,7 @@ Dates.now(::Type{Dates.UTC})
Base.eps(::Union{Type{DateTime}, Type{Date}, Type{Time}, TimeType})
```

### Accessor Functions
#### Accessor Functions

```@docs
Dates.year
Expand Down Expand Up @@ -758,7 +758,7 @@ Dates.monthday
Dates.yearmonthday
```

### Query Functions
#### Query Functions

```@docs
Dates.dayname
Expand All @@ -777,7 +777,7 @@ Dates.quarterofyear
Dates.dayofquarter
```

### Adjuster Functions
#### Adjuster Functions

```@docs
Base.trunc(::Dates.TimeType, ::Type{Dates.Period})
Expand All @@ -797,7 +797,7 @@ Dates.tonext(::Function, ::Dates.TimeType)
Dates.toprev(::Function, ::Dates.TimeType)
```

### Periods
#### Periods

```@docs
Dates.Period(::Any)
Expand All @@ -808,7 +808,7 @@ Dates.default
Dates.periods
```

### Rounding Functions
#### Rounding Functions

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

### Conversion Functions
#### Conversion Functions

```@docs
Dates.today
Expand Down