1
1
using Documenter
2
2
using DocumenterCitations
3
+ using MultiDocumenter
3
4
using DemoCards
4
5
using GeometricFlux
5
6
6
7
const ASSETS = [" assets/flux.css" , " assets/favicon.ico" ]
7
8
8
9
bib = CitationBibliography (joinpath (@__DIR__ , " bibliography.bib" ), sorting= :nyt )
9
10
10
- DocMeta. setdocmeta! (GeometricFlux, :DocTestSetup , :(using GeometricFlux, Flux); recursive= true )
11
+ DocMeta. setdocmeta! (GeometricFlux, :DocTestSetup , :(using GeometricFlux, GraphSignals, Flux); recursive= true )
11
12
12
13
# DemoCards
13
14
demopage, postprocess_cb, demo_assets = makedemos (" tutorials" )
14
15
isnothing (demo_assets) || (push! (ASSETS, demo_assets))
15
16
17
+ # build GeometricFlux documentation
16
18
makedocs (
17
19
bib,
18
20
sitename = " GeometricFlux.jl" ,
@@ -23,7 +25,7 @@ makedocs(
23
25
edit_link = " master" ,
24
26
),
25
27
clean = false ,
26
- modules = [GeometricFlux,GraphSignals],
28
+ modules = [GeometricFlux, GraphSignals],
27
29
pages = [" Home" => " index.md" ,
28
30
demopage,
29
31
" Introduction" => " introduction.md" ,
@@ -59,7 +61,39 @@ makedocs(
59
61
# callbacks of DemoCards
60
62
postprocess_cb ()
61
63
64
+ # build MultiDocumenter
65
+ clonedir = mktempdir ()
66
+
67
+ docs = [
68
+ (" FluxML/GeometricFlux.jl.git" , " gh-pages" , false ) => MultiDocumenter. MultiDocRef (
69
+ upstream = joinpath (clonedir, " GeometricFlux" ),
70
+ path = " geometricflux" ,
71
+ name = " GeometricFlux"
72
+ ),
73
+ (" yuehhua/GraphSignals.jl.git" , " gh-pages" , false ) => MultiDocumenter. MultiDocRef (
74
+ upstream = joinpath (clonedir, " GraphSignals" ),
75
+ path = " graphsignals" ,
76
+ name = " GraphSignals"
77
+ ),
78
+ ]
79
+
80
+ for ((remote, branch, use_ssh), docref) in docs
81
+ prefix = use_ssh ? " git@github.com:" : " https://github.com/"
82
+ run (` git clone --depth 1 $prefix$remote --branch $branch --single-branch $(docref. upstream) ` )
83
+ end
84
+
85
+ outpath = joinpath (@__DIR__ , " out" )
86
+
87
+ MultiDocumenter. make (
88
+ outpath,
89
+ collect (last .(docs));
90
+ search_engine = MultiDocumenter. SearchConfig (
91
+ index_versions = [" stable" ],
92
+ engine = MultiDocumenter. FlexSearch
93
+ )
94
+ )
95
+
62
96
deploydocs (
63
97
repo = " github.com/FluxML/GeometricFlux.jl.git" ,
64
- target = " build " ,
98
+ target = " out " ,
65
99
)
0 commit comments