-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca90e88
commit f1bcf5b
Showing
7 changed files
with
84 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656" | ||
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c" | ||
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c" | ||
GNNlib = "a6a84749-d869-43f8-aacc-be26a1996e48" | ||
GraphNeuralNetworks = "cffab07f-9bc2-4db1-8861-388f63bf7694" | ||
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,75 @@ | ||
using Documenter | ||
using GraphNeuralNetworks | ||
using Flux, GNNGraphs, GNNlib, Graphs, NNlib | ||
# using GNNGraphs, GNNlib # no need to load since they are re-exported by GraphNeuralNetworks | ||
using DocumenterInterLinks | ||
|
||
DocMeta.setdocmeta!(GraphNeuralNetworks, :DocTestSetup, :(using GraphNeuralNetworks); recursive = true) | ||
|
||
mathengine = MathJax3(Dict(:loader => Dict("load" => ["[tex]/require", "[tex]/mathtools"]), | ||
:tex => Dict("inlineMath" => [["\$", "\$"], ["\\(", "\\)"]], | ||
"packages" => [ | ||
"base", | ||
"ams", | ||
"autoload", | ||
"mathtools", | ||
"require" | ||
]))) | ||
|
||
assets=[] | ||
prettyurls = get(ENV, "CI", nothing) == "true" | ||
mathengine = MathJax3() | ||
|
||
interlinks = InterLinks( | ||
"NNlib" => "https://fluxml.ai/NNlib.jl/stable/", | ||
"GNNGraphs" => ("https://carlolucibello.github.io/GraphNeuralNetworks.jl/GNNGraphs/", joinpath(dirname(dirname(@__DIR__)), "GNNGraphs", "docs", "build", "objects.inv")), | ||
"GNNlib" => ("https://carlolucibello.github.io/GraphNeuralNetworks.jl/GNNlib/", joinpath(dirname(dirname(@__DIR__)), "GNNlib", "docs", "build", "objects.inv")) | ||
|
||
# "GNNGraphs" => ("https://carlolucibello.github.io/GraphNeuralNetworks.jl/GNNGraphs/", joinpath(dirname(dirname(@__DIR__)), "GNNGraphs", "docs", "build", "objects.inv")), | ||
# "GNNlib" => ("https://carlolucibello.github.io/GraphNeuralNetworks.jl/GNNlib/", joinpath(dirname(dirname(@__DIR__)), "GNNlib", "docs", "build", "objects.inv")) | ||
) | ||
|
||
# Copy the guides from GNNGraphs and GNNlib | ||
dest_guides_dir = joinpath(@__DIR__, "src/other") | ||
gnngraphs_guides_dir = joinpath(@__DIR__, "../../GNNGraphs/docs/src/guides") | ||
gnnlib_guides_dir = joinpath(@__DIR__, "../../GNNlib/docs/src/guides") | ||
for file in readdir(gnngraphs_guides_dir) | ||
cp(joinpath(gnngraphs_guides_dir, file), joinpath(dest_guides_dir, file), force=true) | ||
end | ||
for file in readdir(gnnlib_guides_dir) | ||
cp(joinpath(gnnlib_guides_dir, file), joinpath(dest_guides_dir, file), force=true) | ||
end | ||
# Copy the docs from GNNGraphs and GNNlib. Will be removed at the end of the script | ||
cp(joinpath(@__DIR__, "../../GNNGraphs/docs/src"), | ||
joinpath(@__DIR__, "src/GNNGraphs"), force=true) | ||
cp(joinpath(@__DIR__, "../../GNNlib/docs/src"), | ||
joinpath(@__DIR__, "src/GNNlib"), force=true) | ||
|
||
makedocs(; | ||
modules = [GraphNeuralNetworks], | ||
modules = [GraphNeuralNetworks, GNNGraphs, GNNlib], | ||
doctest = false, # TODO: enable doctest | ||
clean = true, | ||
plugins = [interlinks], | ||
format = Documenter.HTML(; mathengine, prettyurls, assets = assets, size_threshold=nothing), | ||
format = Documenter.HTML(; mathengine, | ||
prettyurls = get(ENV, "CI", nothing) == "true", | ||
assets = [], | ||
size_threshold=nothing, | ||
size_threshold_warn=200000), | ||
sitename = "GraphNeuralNetworks.jl", | ||
pages = [ | ||
|
||
"Home" => "index.md", | ||
|
||
"Guides" => [ | ||
"Graphs" => ["other/gnngraph.md", "other/heterograph.md", "other/temporalgraph.md"], | ||
"Message Passing" => "other/messagepassing.md", | ||
"Graphs" => ["GNNGraphs/guides/gnngraph.md", | ||
"GNNGraphs/guides/heterograph.md", | ||
"GNNGraphs/guides/temporalgraph.md"], | ||
"Message Passing" => "GNNlib/guides/messagepassing.md", | ||
"Models" => "guides/models.md", | ||
"Datasets" => "other/datasets.md", | ||
"Datasets" => "GNNGraphs/guides/datasets.md", | ||
], | ||
|
||
"API Reference" => [ | ||
"Message Passing" => "GNNlib/api/messagepassing.md", | ||
"Utils" => "GNNlib/api/utils.md", | ||
"Basic" => "api/basic.md", | ||
"Convolutional layers" => "api/conv.md", | ||
"Pooling layers" => "api/pool.md", | ||
"Temporal Convolutional layers" => "api/temporalconv.md", | ||
"Hetero Convolutional layers" => "api/heteroconv.md", | ||
|
||
], | ||
"Developer guide" => "dev.md", | ||
|
||
"Developer guide" => "dev.md", | ||
], | ||
) | ||
|
||
deploydocs(;repo = "github.com/JuliaGraphs/GraphNeuralNetworks.jl.git", devbranch = "master", dirname= "GraphNeuralNetworks") | ||
|
||
rm(joinpath(@__DIR__, "src/GNNGraphs"), force=true, recursive=true) | ||
rm(joinpath(@__DIR__, "src/GNNlib"), force=true, recursive=true) | ||
|
||
deploydocs(repo = "github.com/JuliaGraphs/GraphNeuralNetworks.jl.git", | ||
devbranch = "master", | ||
dirname= "GraphNeuralNetworks") |
Empty file.