Skip to content

Commit

Permalink
Fix stable docs with shortened version number in DocumenterVitepress (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel authored May 24, 2024
1 parent ba304bf commit e73ea0e
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions docs/makedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ include("figure_block.jl")
include("attrdocs_block.jl")
include("shortdocs_block.jl")

docs_url = "docs.makie.org"
repo = "github.com/MakieOrg/Makie.jl.git"
push_preview = true
devbranch = "master"
devurl = "dev"

params = deployparameters(; repo, devbranch, devurl, push_preview)
deploy_decision = Documenter.DeployDecision(;
params.all_ok,
params.branch,
params.is_preview,
params.repo,
params.subfolder,
)

Documenter.makedocs(;
# modules=[Makie],
sitename="Makie",
Expand All @@ -40,6 +55,7 @@ Documenter.makedocs(;
devbranch = "master",
deploy_url = "https://docs.makie.org", # for local testing not setting this has broken links with Makie.jl in them
description = "Create impressive data visualizations with Makie, the plotting ecosystem for the Julia language. Build aesthetic plots with beautiful customizable themes, control every last detail of publication quality vector graphics, assemble complex layouts and quickly prototype interactive applications to explore your data live.",
deploy_decision,
),
pages=[
"Home" => "index.md",
Expand Down Expand Up @@ -187,12 +203,4 @@ generate_redirects([
"/explanations/observables.html" => "/explanations/nodes/index.html",
], dry_run = false)

docs_url = "docs.makie.org"
repo = "github.com/MakieOrg/Makie.jl.git"
push_preview = true
devbranch = "master"
devurl = "dev"

params = deployparameters(; repo, devbranch, devurl, push_preview)

deploy(params; target = "build")

0 comments on commit e73ea0e

Please sign in to comment.