Skip to content

Commit 99b3a7e

Browse files
authored
Add --temp option to docs/make.jl, use docs/clones by default (#63)
1 parent 239bdce commit 99b3a7e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/Manifest.toml
22
/docs/out/
3+
/docs/clones/

docs/make.jl

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1+
# Script to build the MultiDocumenter demo docs
2+
#
3+
# julia --project docs/make.jl [--temp] [deploy]
4+
#
5+
# When `deploy` is passed as an argument, it goes into deployment mode
6+
# and attempts to push the generated site to gh-pages. You can also pass
7+
# `--temp`, in which case the source repositories are cloned into a temporary
8+
# directory (as opposed to `docs/clones`).
19
using MultiDocumenter
210

3-
clonedir = mktempdir()
11+
clonedir = ("--temp" in ARGS) ? mktempdir() : joinpath(@__DIR__, "clones")
12+
outpath = mktempdir()
13+
@info """
14+
Cloning packages into: $(clonedir)
15+
Building aggregate site into: $(outpath)
16+
"""
417

518
docs = [
619
MultiDocumenter.DropdownNav(
@@ -69,8 +82,6 @@ docs = [
6982
),
7083
]
7184

72-
outpath = mktempdir()
73-
7485
MultiDocumenter.make(
7586
outpath,
7687
docs;

0 commit comments

Comments
 (0)