-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update doctests * Flags for building documentation * Run doctests against Julia 1.9 * Use Julia shell in CI * Rename docs job
- Loading branch information
Showing
8 changed files
with
67 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,40 @@ | ||
using Dates, Documenter, TimeZones | ||
|
||
makedocs( | ||
modules=[TimeZones], | ||
format=Documenter.HTML(prettyurls=get(ENV, "CI", nothing) == "true"), | ||
pages=[ | ||
"Introduction" => "index.md", | ||
"Types" => "types.md", | ||
"Converting" => "conversions.md", | ||
"Arithmetic" => "arithmetic.md", | ||
"Rounding" => "rounding.md", | ||
"Current Time" => "current.md", | ||
"Frequently Asked Questions" => "faq.md", | ||
"API – Public" => "api-public.md", | ||
"API – Private" => "api-private.md", | ||
], | ||
sitename="TimeZones.jl", | ||
checkdocs=:exports, | ||
linkcheck=true, | ||
strict=true, | ||
# RUN_DOCTESTS=true is set by the doctest CI jobs | ||
doctest=get(ENV, "RUN_DOCTESTS", nothing) == "true", | ||
) | ||
DocMeta.setdocmeta!(TimeZones, :DocTestSetup, :(using TimeZones)) | ||
|
||
if haskey(ENV, "DOCTESTS") || haskey(ENV, "MAKE_DOCS") || haskey(ENV, "DEPLOY_DOCS") | ||
const DOCTESTS = get(ENV, "DOCTESTS", "false") == "true" | ||
const MAKE_DOCS = get(ENV, "MAKE_DOCS", "false") == "true" | ||
const DEPLOY_DOCS = get(ENV, "DEPLOY_DOCS", "false") == "true" | ||
else | ||
const DOCTESTS = true | ||
const MAKE_DOCS = true | ||
const DEPLOY_DOCS = false | ||
end | ||
|
||
if MAKE_DOCS || DEPLOY_DOCS | ||
makedocs( | ||
modules=[TimeZones], | ||
format=Documenter.HTML(prettyurls=get(ENV, "CI", nothing) == "true"), | ||
pages=[ | ||
"Introduction" => "index.md", | ||
"Types" => "types.md", | ||
"Converting" => "conversions.md", | ||
"Arithmetic" => "arithmetic.md", | ||
"Rounding" => "rounding.md", | ||
"Current Time" => "current.md", | ||
"Frequently Asked Questions" => "faq.md", | ||
"API – Public" => "api-public.md", | ||
"API – Private" => "api-private.md", | ||
], | ||
sitename="TimeZones.jl", | ||
checkdocs=:exports, | ||
linkcheck=true, | ||
strict=true, | ||
doctest=DOCTESTS, | ||
) | ||
|
||
DEPLOY_DOCS && deploydocs(repo="github.com/JuliaTime/TimeZones.jl.git") | ||
elseif DOCTESTS | ||
doctest(TimeZones) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
# TimeZones Internal API | ||
|
||
```@meta | ||
DocTestSetup = quote | ||
using TimeZones | ||
end | ||
``` | ||
|
||
## TZData | ||
|
||
```@docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
# TimeZones Public API | ||
|
||
```@meta | ||
DocTestSetup = quote | ||
using TimeZones | ||
end | ||
``` | ||
|
||
## TimeZone | ||
|
||
```@docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters