Skip to content

Commit a5d8ba0

Browse files
committed
Better docs versioning.
1 parent 20f5f44 commit a5d8ba0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OptimalTransportNetworks"
22
uuid = "e2b46e68-897f-4e4e-ba36-a93c9789fd96"
33
authors = ["Sebastian Krantz <sebastian.krantz@graduateinstitute.ch>"]
4-
version = "0.1.7"
4+
version = "0.1.6"
55

66
[deps]
77
Dierckx = "39dd38d3-220a-591b-8e3c-4c3a8c710a94"

docs/make.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ makedocs(
55
sitename = "OptimalTransportNetworks.jl",
66
modules = [OptimalTransportNetworks],
77
checkdocs = :none,
8-
format = Documenter.HTML(),
8+
format = Documenter.HTML(
9+
# Add these options for version switching
10+
prettyurls = get(ENV, "CI", nothing) == "true",
11+
canonical = "https://SebKrantz.github.io/OptimalTransportNetworks.jl/stable"
12+
),
913
pages = [
1014
"Home" => "index.md",
1115
"API" => "api.md"
@@ -14,7 +18,7 @@ makedocs(
1418

1519
deploydocs(
1620
repo = "github.com/SebKrantz/OptimalTransportNetworks.jl.git",
17-
branch = "gh-pages",
18-
# deploy_config = Dict("DOCUMENTER_KEY" => ENV["DOCUMENTER_KEY"]),
19-
# push_preview = true, ..
21+
devbranch = "development",
22+
push_preview = true,
23+
versions = ["stable" => "v^", "dev" => "development"]
2024
)

0 commit comments

Comments
 (0)