Skip to content

Commit

Permalink
Merge pull request #17 from jaakkor2/docdeploy
Browse files Browse the repository at this point in the history
Docs IS_CI
  • Loading branch information
jaakkor2 authored Oct 11, 2024
2 parents ef622fc + 604aeb6 commit 8865f91
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ using Documenter
using JMPReader

DocMeta.setdocmeta!(JMPReader, :DocTestSetup, :(using JMPReader); recursive = true)
const IS_CI = get(ENV, "CI", "false") == "true"

makedocs(
modules = [JMPReader],
authors = "Jaakko Ruohio",
sitename = "JMPReader Documentation",
format = Documenter.HTML(
prettyurls = false,
disable_git = false,
prettyurls = IS_CI,
canonical = "https://jaakkor2.github.io/JMPReader.jl",
edit_link = "master",
repolink = "https://github.com/jaakkor2/JMPReader.jl"
),
warnonly = [:docs_block, :missing_docs, :cross_references],
# remotes = nothing,
Expand All @@ -23,9 +21,8 @@ makedocs(
],
)

deploydocs(;
IS_CI && deploydocs(;
repo = "github.com/jaakkor2/JMPReader.jl",
devbranch = "master",
)

nothing

0 comments on commit 8865f91

Please sign in to comment.