Skip to content

Commit 8979735

Browse files
move around docs
1 parent bd6fc93 commit 8979735

File tree

15 files changed

+738
-30
lines changed

15 files changed

+738
-30
lines changed

GNNGraphs/docs/make.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ makedocs(;
1616
format = Documenter.HTML(; mathengine, prettyurls, assets = assets, size_threshold=nothing),
1717
sitename = "GNNGraphs.jl",
1818
pages = ["Home" => "index.md",
19-
"Graphs" => ["gnngraph.md", "heterograph.md", "temporalgraph.md"],
20-
"Datasets" => "datasets.md",
19+
"Guides" => [
20+
"Graphs" => ["guides/gnngraph.md", "guides/heterograph.md", "guides/temporalgraph.md"],
21+
"Datasets" => "guides/datasets.md",
22+
],
2123
"API Reference" => [
2224
"GNNGraph" => "api/gnngraph.md",
2325
"GNNHeteroGraph" => "api/heterograph.md",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

GNNlib/docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ makedocs(;
2121
format = Documenter.HTML(; mathengine, prettyurls, assets = assets, size_threshold=nothing),
2222
sitename = "GNNlib.jl",
2323
pages = ["Home" => "index.md",
24-
"Message Passing" => "messagepassing.md",
24+
"Message Passing" => "guides/messagepassing.md",
2525

2626
"API Reference" => [
2727

File renamed without changes.

GraphNeuralNetworks/docs/make.jl

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,44 @@ interlinks = InterLinks(
1414

1515
)
1616

17+
# Copy the guides from GNNGraphs and GNNlib
18+
dest_guides_dir = joinpath(@__DIR__, "src/guides")
19+
gnngraphs_guides_dir = joinpath(@__DIR__, "../../GNNGraphs/docs/src/guides")
20+
gnnlib_guides_dir = joinpath(@__DIR__, "../../GNNlib/docs/src/guides")
21+
for file in readdir(gnngraphs_guides_dir)
22+
cp(joinpath(gnngraphs_guides_dir, file), joinpath(dest_guides_dir, file))
23+
end
24+
for file in readdir(gnnlib_guides_dir)
25+
cp(joinpath(gnnlib_guides_dir, file), joinpath(dest_guides_dir, file))
26+
end
27+
1728
makedocs(;
18-
modules = [GraphNeuralNetworks],
19-
doctest = false,
20-
clean = true,
21-
plugins = [interlinks],
22-
format = Documenter.HTML(; mathengine, prettyurls, assets = assets, size_threshold=nothing),
23-
sitename = "GraphNeuralNetworks.jl",
24-
pages = [
25-
"Home" => "index.md",
26-
"Guides" => [
27-
"Models" => "models.md",
28-
],
29-
"API Reference" => [
30-
"Basic" => "api/basic.md",
31-
"Convolutional layers" => "api/conv.md",
32-
"Pooling layers" => "api/pool.md",
33-
"Temporal Convolutional layers" => "api/temporalconv.md",
34-
"Hetero Convolutional layers" => "api/heteroconv.md",
35-
],
36-
"Developer guide" => "dev.md",
37-
38-
],
39-
)
29+
modules = [GraphNeuralNetworks],
30+
doctest = false,
31+
clean = true,
32+
plugins = [interlinks],
33+
format = Documenter.HTML(; mathengine, prettyurls, assets = assets, size_threshold=nothing),
34+
sitename = "GraphNeuralNetworks.jl",
35+
pages = [
36+
37+
"Home" => "index.md",
38+
39+
"Guides" => [
40+
"Graphs" => ["guides/gnngraph.md", "guides/heterograph.md", "guides/temporalgraph.md"],
41+
"Message Passing" => "guides/messagepassing.md",
42+
"Models" => "guides/models.md",
43+
"Datasets" => "guides/datasets.md",
44+
],
45+
46+
"API Reference" => [
47+
"Basic" => "api/basic.md",
48+
"Convolutional layers" => "api/conv.md",
49+
"Pooling layers" => "api/pool.md",
50+
"Temporal Convolutional layers" => "api/temporalconv.md",
51+
"Hetero Convolutional layers" => "api/heteroconv.md",
52+
],
53+
"Developer guide" => "dev.md",
54+
],
55+
)
4056

4157
deploydocs(;repo = "github.com/JuliaGraphs/GraphNeuralNetworks.jl.git", devbranch = "master", dirname= "GraphNeuralNetworks")

GraphNeuralNetworks/docs/src/datasets.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Datasets
2+
3+
GNNGraphs.jl doesn't come with its own datasets, but leverages those available in the Julia (and non-Julia) ecosystem. In particular, the [examples in the GraphNeuralNetworks.jl repository](https://github.com/JuliaGraphs/GraphNeuralNetworks.jl/tree/master/examples) make use of the [MLDatasets.jl](https://github.com/JuliaML/MLDatasets.jl) package. There you will find common graph datasets such as Cora, PubMed, Citeseer, TUDataset and [many others](https://juliaml.github.io/MLDatasets.jl/dev/datasets/graphs/).
4+
For graphs with static structures and temporal features, datasets such as METRLA, PEMSBAY, ChickenPox, and WindMillEnergy are available. For graphs featuring both temporal structures and temporal features, the TemporalBrains dataset is suitable.
5+
6+
GraphNeuralNetworks.jl provides the [`mldataset2gnngraph`](@ref) method for interfacing with MLDatasets.jl.
7+
8+
```@docs
9+
mldataset2gnngraph
10+
```

0 commit comments

Comments
 (0)