Skip to content

Commit

Permalink
Better docs versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebKrantz committed Sep 14, 2024
1 parent 20f5f44 commit a5d8ba0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OptimalTransportNetworks"
uuid = "e2b46e68-897f-4e4e-ba36-a93c9789fd96"
authors = ["Sebastian Krantz <sebastian.krantz@graduateinstitute.ch>"]
version = "0.1.7"
version = "0.1.6"

[deps]
Dierckx = "39dd38d3-220a-591b-8e3c-4c3a8c710a94"
Expand Down
12 changes: 8 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ makedocs(
sitename = "OptimalTransportNetworks.jl",
modules = [OptimalTransportNetworks],
checkdocs = :none,
format = Documenter.HTML(),
format = Documenter.HTML(
# Add these options for version switching
prettyurls = get(ENV, "CI", nothing) == "true",
canonical = "https://SebKrantz.github.io/OptimalTransportNetworks.jl/stable"
),
pages = [
"Home" => "index.md",
"API" => "api.md"
Expand All @@ -14,7 +18,7 @@ makedocs(

deploydocs(
repo = "github.com/SebKrantz/OptimalTransportNetworks.jl.git",
branch = "gh-pages",
# deploy_config = Dict("DOCUMENTER_KEY" => ENV["DOCUMENTER_KEY"]),
# push_preview = true, ..
devbranch = "development",
push_preview = true,
versions = ["stable" => "v^", "dev" => "development"]
)

0 comments on commit a5d8ba0

Please sign in to comment.