@@ -8,6 +8,7 @@ Pkg.develop([
88Pkg. instantiate ()
99
1010using Documenter
11+ using DemoCards: DemoCards
1112using GraphNeuralNetworks
1213using Flux, GNNGraphs, GNNlib, Graphs
1314using DocumenterInterLinks
@@ -39,14 +40,25 @@ cp(joinpath(@__DIR__, "../../GNNGraphs/docs/src"),
3940cp (joinpath (@__DIR__ , " ../../GNNlib/docs/src" ),
4041 joinpath (@__DIR__ , " src/GNNlib" ), force= true )
4142
43+
44+
45+ tutorials, tutorials_postprocess_cb, tutorials_assets = DemoCards. makedemos (joinpath (@__DIR__ , " tutorials" ))
46+
47+ # # UNCOMMENT TO DISABLE TUTORIALS AND SPEED UP DOCS BUILDING
48+ # tutorials, tutorials_postprocess_cb, tutorials_assets = [], _ -> nothing, nothing
49+
50+ assets = []
51+ isnothing (tutorials_assets) || push! (assets, tutorials_assets)
52+
4253makedocs (;
4354 modules = [GraphNeuralNetworks, GNNGraphs, GNNlib],
4455 plugins = [interlinks],
4556 format = Documenter. HTML (; mathengine,
4657 prettyurls = get (ENV , " CI" , nothing ) == " true" ,
47- assets = [] ,
58+ assets,
4859 size_threshold= nothing ,
49- size_threshold_warn= 2000000 ),
60+ size_threshold_warn= 2000000 ,
61+ example_size_threshold= 2000000 ),
5062 sitename = " GraphNeuralNetworks.jl" ,
5163 pages = [
5264
@@ -58,26 +70,26 @@ makedocs(;
5870 " Models" => " guides/models.md" ,
5971 " Datasets" => " GNNGraphs/guides/datasets.md" ,
6072 " Heterogeneous Graphs" => " GNNGraphs/guides/heterograph.md" ,
61- " Temporal Graphs" => " GNNGraphs/guides/temporalgraph.md" ,
62- ],
63-
64- " Tutorials" => [
65- " Introductory tutorials" => [
66- " Hands on" => " tutorials/gnn_intro.md" ,
67- " Node classification" => " tutorials/node_classification.md" ,
68- " Graph classification" => " tutorials/graph_classification.md"
69- ],
70- " Temporal graph neural networks" => [
71- " Node autoregression" => " tutorials/traffic_prediction.md" ,
72- " Temporal graph classification" => " tutorials/temporal_graph_classification.md"
73- ],
73+ # "Temporal Graphs" => "GNNGraphs/guides/temporalgraph.md",
7474 ],
75+ tutorials,
76+ # "Tutorials" => [
77+ # "Introductory tutorials" => [
78+ # "Hands on" => "tutorials/beginner_tutorials/gnn_intro.md",
79+ # "Node classification" => "tutorials/beginner_tutorials/node_classification.md",
80+ # "Graph classification" => "tutorials/beginner_tutorials/graph_classification.md"
81+ # ],
82+ # "Temporal graph neural networks" =>[
83+ # "Node autoregression" => "tutorials/traffic_prediction.md",
84+ # "Temporal graph classification" => "tutorials/temporal_graph_classification.md"
85+ # ],
86+ # ],
7587
7688 " API Reference" => [
7789 " Graphs (GNNGraphs.jl)" => [
7890 " GNNGraph" => " GNNGraphs/api/gnngraph.md" ,
7991 " GNNHeteroGraph" => " GNNGraphs/api/heterograph.md" ,
80- " TemporalSnapshotsGNNGraph" => " GNNGraphs/api/temporalgraph.md" ,
92+ # "TemporalSnapshotsGNNGraph" => "GNNGraphs/api/temporalgraph.md",
8193 " Datasets" => " GNNGraphs/api/datasets.md" ,
8294 ]
8395
@@ -90,7 +102,7 @@ makedocs(;
90102 " Basic layers" => " api/basic.md" ,
91103 " Convolutional layers" => " api/conv.md" ,
92104 " Pooling layers" => " api/pool.md" ,
93- " Temporal Convolutional layers" => " api/temporalconv.md" ,
105+ # "Temporal Convolutional layers" => "api/temporalconv.md",
94106 " Hetero Convolutional layers" => " api/heteroconv.md" ,
95107 ]
96108 ],
@@ -99,6 +111,7 @@ makedocs(;
99111 ],
100112)
101113
114+ tutorials_postprocess_cb ()
102115rm (joinpath (@__DIR__ , " src/GNNGraphs" ), force= true , recursive= true )
103116rm (joinpath (@__DIR__ , " src/GNNlib" ), force= true , recursive= true )
104117
0 commit comments