Skip to content

Commit

Permalink
Merge pull request #65 from abhro/patch-1
Browse files Browse the repository at this point in the history
Documentation segmenting/sectioning
  • Loading branch information
abhro authored May 16, 2024
2 parents 1cf0049 + 04ac73b commit 8f48f51
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 7 deletions.
4 changes: 2 additions & 2 deletions contrib/generate_exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ sources = first.(splitext.(filter(x->!startswith(x, "t_") && !startswith(x, "erf
exports = "export " * join(sources, ", ")

open(OUTPUT, "w") do f
println(f, "# Auto-generated by $(joinpath(basename(@__DIR__()), basename(@__FILE__))). Do not edit!\n")
println(f, exports)
println(f, "# Auto-generated by $(joinpath(basename(@__DIR__()), basename(@__FILE__))). Do not edit!\n")
println(f, exports)
end

format(OUTPUT, BlueStyle())
9 changes: 6 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ using Documenter, ERFA

include("pages.jl")

makedocs(format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true",
makedocs(
format = Documenter.HTML(
prettyurls = get(ENV, "CI", nothing) == "true",
),
sitename = "ERFA.jl",
authors = "The JuliaAstro Contributors",
pages = pages,
doctest = false,
doctest = true,
)

deploydocs(repo = "github.com/JuliaAstro/ERFA.jl.git",
deploydocs(
repo = "github.com/JuliaAstro/ERFA.jl.git",
target = "build",
)
37 changes: 37 additions & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,44 @@ DocTestSetup = quote
end
```

## Constants

```@autodocs
Modules = [ERFA]
Private = true
Order = [:constant]
```

## Types

```@autodocs
Modules = [ERFA]
Private = true
Order = [:type]
```

## Functions

```@autodocs
Modules = [ERFA]
Private = true
Order = [:function, :macro]
```

## Index

### Constants

```@index
Modules = [ERFA]
Private = true
Order = [:constant]
```

### Functions

```@index
Modules = [ERFA]
Private = true
Order = [:function, :macro]
```
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Julia wrapper for [liberfa](https://github.com/liberfa/erfa).
Installation
------------

```julia
```julia-repl
julia> import Pkg; Pkg.add("ERFA")
```

Example
-------

```julia
```jldoctest
julia> using ERFA
julia> u1, u2 = dtf2d("UTC", 2010, 7, 24, 11, 18, 7.318)
Expand Down

0 comments on commit 8f48f51

Please sign in to comment.