-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a variable to improve readibility of docs/make.jl
Closes #351
- Loading branch information
1 parent
5477d86
commit cd4d423
Showing
2 changed files
with
10 additions
and
14 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 |
---|---|---|
|
@@ -4,20 +4,18 @@ using Documenter | |
DocMeta.setdocmeta!(BestieTemplate, :DocTestSetup, :(using BestieTemplate); recursive = true) | ||
|
||
const page_rename = Dict("developer.md" => "Developer docs") # Without the numbers | ||
const numbered_pages = [ | ||
file for | ||
file in readdir(joinpath(@__DIR__, "src")) if file != "index.md" && splitext(file)[2] == ".md" | ||
] | ||
|
||
makedocs(; | ||
modules = [BestieTemplate], | ||
authors = "Abel Soares Siqueira <[email protected]> and contributors", | ||
repo = "https://github.com/abelsiqueira/BestieTemplate.jl/blob/{commit}{path}#{line}", | ||
sitename = "BestieTemplate.jl", | ||
format = Documenter.HTML(; canonical = "https://abelsiqueira.github.io/BestieTemplate.jl"), | ||
pages = [ | ||
"index.md" | ||
[ | ||
file for | ||
file in readdir(joinpath(@__DIR__, "src")) if file != "index.md" && splitext(file)[2] == ".md" | ||
] | ||
], | ||
pages = ["index.md"; numbered_pages], | ||
) | ||
|
||
deploydocs(; repo = "github.com/abelsiqueira/BestieTemplate.jl") |
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