@@ -7,6 +7,7 @@ Pkg.instantiate()
77using  Documenter
88using  GNNlib
99using  GNNGraphs
10+ import  Graphs
1011using  DocumenterInterLinks
1112
1213assets= []
@@ -17,24 +18,35 @@ interlinks = InterLinks(
1718    " NNlib" =>  " https://fluxml.ai/NNlib.jl/stable/" 
1819)
1920
21+ #  Copy the docs from GNNGraphs. Will be removed at the end of the script
22+ cp (joinpath (@__DIR__ , " ../../GNNGraphs/docs/src/" 
23+    joinpath (@__DIR__ , " src/GNNGraphs/" = true )
2024
2125makedocs (;
22-     modules =  [GNNlib],
23-     doctest =  false ,
24-     clean =  true ,
26+     modules =  [GNNlib, GNNGraphs],
27+     doctest =  false , #  TODO  enable doctest
2528    plugins =  [interlinks],
2629    format =  Documenter. HTML (; mathengine, prettyurls, assets =  assets, size_threshold= nothing ),
2730    sitename =  " GNNlib.jl" 
2831    pages =  [
2932        " Home" =>  " index.md" 
3033        " Message Passing" =>  " guides/messagepassing.md" 
3134        " API Reference" =>  [
35+             " Graphs (GNNGraphs.jl)" =>  [
36+                 " GNNGraph" =>  " GNNGraphs/api/gnngraph.md" 
37+                 " GNNHeteroGraph" =>  " GNNGraphs/api/heterograph.md" 
38+                 " TemporalSnapshotsGNNGraph" =>  " GNNGraphs/api/temporalgraph.md" 
39+                 " Samplers" =>  " GNNGraphs/api/samplers.md" 
40+                 " Datasets" =>  " GNNGraphs/api/datasets.md" 
41+             ],
3242            " Message Passing" =>  " api/messagepassing.md" 
3343            " Utils" =>  " api/utils.md" 
3444        ]
3545    ]
3646)
3747
48+ rm (joinpath (@__DIR__ , " src/GNNGraphs" = true , recursive= true )
49+ 
3850deploydocs (
3951    repo =  " github.com/JuliaGraphs/GraphNeuralNetworks.jl" 
4052    target =  " build" 
0 commit comments