-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Julia API reference to Quarto. Add doctests. (#470)
- Loading branch information
Showing
10 changed files
with
70 additions
and
4 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 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,6 @@ | ||
using Test, Documenter, Ribasim | ||
DocMeta.setdocmeta!(Ribasim, :DocTestSetup, :(using Ribasim); recursive = true) | ||
|
||
@testset "Doctests" begin | ||
doctest(Ribasim; manual = false) | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
push!(LOAD_PATH, "../core/") | ||
using Documenter, Ribasim | ||
using DocumenterMarkdown | ||
|
||
DocMeta.setdocmeta!(Ribasim, :DocTestSetup, :(using Ribasim); recursive = true) | ||
|
||
makedocs(; | ||
modules = [Ribasim], | ||
format = Markdown(), | ||
repo = "https://github.com/Deltares/Ribasim.jl/blob/{commit}{path}#L{line}", | ||
sitename = "Ribasim.jl", | ||
authors = "Deltares", | ||
doctest = false, # we doctest as part of normal CI | ||
) | ||
|
||
# TODO Make fully compatible with Quarto, like LaTeX and references |
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,24 @@ | ||
# API Reference | ||
*This is the private internal documentation of the Ribasim API.* | ||
|
||
```@contents | ||
``` | ||
|
||
## Functions | ||
|
||
```@autodocs | ||
Modules = [Ribasim, Ribasim.config] | ||
Order = [:function] | ||
``` | ||
|
||
## Types | ||
|
||
```@autodocs | ||
Modules = [Ribasim, Ribasim.config] | ||
Order = [:type] | ||
``` | ||
|
||
## Index | ||
|
||
```@index | ||
``` |