-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This works on the documentation pages to speed up their execution, prevent the hanging issue in `halmo.md` and in general clean up the pages.
- Loading branch information
1 parent
38877f0
commit 3e90b45
Showing
37 changed files
with
1,246 additions
and
643 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
.vscode | ||
.buildkite/toolbox/config.json | ||
.buildkite/toolbox/username | ||
docs/Manifest.toml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module DocInfo | ||
|
||
using Dates | ||
|
||
mutable struct Info | ||
start_time::DateTime | ||
finish_time::DateTime | ||
end | ||
|
||
function Info() | ||
Info(now(), now()) | ||
end | ||
|
||
function get_elapsed(info::Info) | ||
info.finish_time - info.start_time | ||
end | ||
|
||
function get_report(info::Info) | ||
info.finish_time = now() | ||
elapsed = get_elapsed(info) | ||
elapsed_sec = round(elapsed, Dates.Second(1)) | ||
@info "Page built in $(elapsed_sec)." | ||
@info "This page was last built at $(info.finish_time)." | ||
end | ||
|
||
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
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,7 +1,17 @@ | ||
# Library Reference | ||
|
||
```@setup INFO | ||
include(joinpath(Base.@__DIR__, "..", "docinfo.jl")) | ||
info = DocInfo.Info() | ||
``` | ||
|
||
## Decapodes | ||
|
||
```@autodocs | ||
Modules = [ Decapodes ] | ||
Private = false | ||
``` | ||
|
||
```@example INFO | ||
DocInfo.get_report(info) # hide | ||
``` |
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
File renamed without changes.
Oops, something went wrong.