Mercurial > repos > public > sbplib_julia
comparison docs/make.jl @ 841:23bce17a59cb feature/setup_documenter
Implement flag to controll pretty urls
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 14 Jan 2022 09:59:41 +0100 |
parents | 126e169bb0b7 |
children | b4f542b4f2e4 |
comparison
equal
deleted
inserted
replaced
840:221ce98d2612 | 841:23bce17a59cb |
---|---|
6 using Sbplib.LazyTensors | 6 using Sbplib.LazyTensors |
7 using Sbplib.RegionIndices | 7 using Sbplib.RegionIndices |
8 using Sbplib.SbpOperators | 8 using Sbplib.SbpOperators |
9 using Sbplib.StaticDicts | 9 using Sbplib.StaticDicts |
10 | 10 |
11 sitename = "Sbplib.jl" | |
11 | 12 |
12 sitename = "Sbplib.jl" | 13 if "--prettyurls" ∈ ARGS |
13 prettyurls = false | 14 prettyurls = true |
15 else | |
16 prettyurls = false | |
17 end | |
18 | |
14 pages = [ | 19 pages = [ |
15 "index.md", | 20 "index.md", |
16 "Submodules" => [ | 21 "Submodules" => [ |
17 "submodules/grids.md", | 22 "submodules/grids.md", |
18 "submodules/diff_ops.md", | 23 "submodules/diff_ops.md", |
25 ] | 30 ] |
26 # This ordering is not respected by @contents. See https://github.com/JuliaDocs/Documenter.jl/issues/936 | 31 # This ordering is not respected by @contents. See https://github.com/JuliaDocs/Documenter.jl/issues/936 |
27 | 32 |
28 format=Documenter.HTML(;prettyurls) | 33 format=Documenter.HTML(;prettyurls) |
29 makedocs(;sitename, pages, format) | 34 makedocs(;sitename, pages, format) |
30 # TBD: Should `prettyurls` be true or false when this is deployed to a webserver? |