Skip to content
Snippets Groups Projects
Verified Commit 34efb0cd authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Build docs to separate pages branch

parent a0466ef7
No related branches found
No related tags found
No related merge requests found
variables:
CI: "true"
default:
image: julia:latest
tags:
......
......@@ -6,13 +6,24 @@ DocMeta.setdocmeta!(MRIBuilder, :DocTestSetup, :(using MRIBuilder); recursive=tr
makedocs(;
modules=[MRIBuilder],
authors="Michiel Cottaar <Michiel.Cottaar@ndcn.ox.ac.uk>",
repo=Remotes.GitLab("git.fmrib.ox.ac.uk", "ndcn0236", "MRIBuilder.jl"),
sitename="MRIBuilder.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://MichielCottaar.gitlab.io/MRIBuilder.jl",
edit_link="main",
assets=String[],
description="Documentation for MRIBuilder.jl: an MRI sequence builder in Julia",
footer=nothing,
canonical="https://open.win.ox.ac.uk/pages/ndcn0236/mribuilder.jl/stable/",
),
pages=[
"Home" => "index.md",
],
warnonly=Documenter.except(:example_block),
)
if get(ENV, "CI_COMMIT_REF_NAME", "") == "main" || length(get(ENV, "CI_COMMIT_TAG", "")) > 0
deploydocs(repo="git.fmrib.ox.ac.uk:ndcn0236/mribuilder.jl.git", branch="pages", devbranch="main")
else
println("Skipping deployment, because we are local or on a secondary branch.")
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment