-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakedocs.jl
33 lines (25 loc) · 937 Bytes
/
makedocs.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Pkg
cd(@__DIR__)
Pkg.activate(".")
Pkg.instantiate()
Pkg.precompile()
using NodeJS
run(`$(npm_cmd()) install highlight.js`)
run(`$(npm_cmd()) install lunr`)
run(`$(npm_cmd()) install cheerio`)
using Franklin
using Documenter: deploydocs, deploy_folder, GitHubActions
#using Gumbo
using AbstractTrees
cfg = GitHubActions() # this should pick up all details via GHA environment variables
repo = "github.com/GenericMappingTools/GMT.jl.git"
push_preview = true
deploydecision = deploy_folder(cfg; repo, push_preview, devbranch="master", devurl="dev")
@info "Setting PREVIEW_FRANKLIN_WEBSITE_URL to $repo"
ENV["PREVIEW_FRANKLIN_WEBSITE_URL"] = repo
serve(; single=true, cleanup=false)
# serve(; single=true, cleanup=false, fail_on_warning=true)
# for interactive development of the docs, use:
# cd(@__DIR__); serve(single=false, cleanup=true, clear=true, fail_on_warning = false)
lunr()
optimize(; minify=false, prerender=false)