@@ -9,24 +9,23 @@ using MultiDocumenter
9
9
clonedir = mktempdir ()
10
10
11
11
docs = [
12
- (" JuliaDocs/Documenter.jl.git" , " gh-pages" ) => MultiDocumenter. MultiDocRef (
12
+ (" JuliaDocs/Documenter.jl.git" , " gh-pages" , false ) => MultiDocumenter. MultiDocRef (
13
13
upstream = joinpath (clonedir, " Documenter" ),
14
14
path = " doc" ,
15
15
name = " Documenter"
16
16
),
17
- (" JuliaDebug/Infiltrator.jl.git" , " gh-pages" ) => MultiDocumenter. MultiDocRef (
17
+ # using SSH for cloning is suggested when you're dealing with private repos, because
18
+ # an ssh-agent will handle your keys for you
19
+ # ("JuliaDebug/Infiltrator.jl.git", "gh-pages", true) => MultiDocumenter.MultiDocRef(
20
+ (" JuliaDebug/Infiltrator.jl.git" , " gh-pages" , false ) => MultiDocumenter. MultiDocRef (
18
21
upstream = joinpath (clonedir, " Infiltrator" ),
19
22
path = " inf" ,
20
23
name = " Infiltrator"
21
24
),
22
25
]
23
26
24
- # using SSH for cloning is suggested when you're dealing with private repos, because
25
- # an ssh-agent will handle your keys for you
26
-
27
- prefix = " https://github.com/"
28
-
29
- for ((remote, branch), docref) in docs
27
+ for ((remote, branch, use_ssh), docref) in docs
28
+ prefix
= use_ssh
? " [email protected] :" : " https://github.com/"
30
29
run (` git clone --depth 1 $prefix$remote --branch $branch --single-branch $(docref. upstream) ` )
31
30
end
32
31
0 commit comments