File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,30 @@ Base.@kwdef mutable struct SearchConfig
25
25
lowfi = false
26
26
end
27
27
28
+ """
29
+ struct MultiDocRef
30
+
31
+ Represents one set of docs that will get an entry in the MultiDocumenter navigation.
32
+
33
+ **Required arguments:**
34
+
35
+ * `upstream`: the local directory where the documentation is located. If `giturl` is passed,
36
+ MultiDocumenter will clone into this directory.
37
+ * `name`: string used in the MultiDocumenter navigation for this item
38
+ * `path`: the URL path under which the contents of upstream is placed
39
+
40
+ **Optional arguments:**
41
+
42
+ * `giturl`: URL of the remote Git repository that will be cloned. If this is unset, then `upstream` must be an existing directory.
43
+ * `branch`: Git branch of `giturl` where the docs will be pulled from (defaults to `gh-pages`)
44
+ * `fix_canonical_url`: this can be set to `false` to disable the canonical URL fixing
45
+ for this `MultiDocRef` (see also `canonical_domain` for [`make`](@ref)).
46
+ """
28
47
struct MultiDocRef
29
48
upstream:: String
30
-
31
49
path:: String
32
50
name:: String
33
-
34
51
fix_canonical_url:: Bool
35
-
36
- # these are not actually used internally
37
52
giturl:: String
38
53
branch:: String
39
54
end
263
278
function maybe_clone (docs:: Vector{MultiDocRef} )
264
279
for doc in docs
265
280
if ! isdir (doc. upstream)
281
+ if isempty (doc. giturl)
282
+ error (
283
+ " MultiDocRef for $(doc. name) : if giturl= is not passed, then upstream= must be an existing directory" ,
284
+ )
285
+ end
266
286
@info " Upstream at $(doc. upstream) does not exist. `git clone`ing `$(doc. giturl) #$(doc. branch) `"
267
287
run (
268
288
` $(git ()) clone --depth 1 $(doc. giturl) --branch $(doc. branch) --single-branch --no-tags $(doc. upstream) ` ,
You can’t perform that action at this time.
0 commit comments