-
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.
try new approach for building and deploying docs
- Loading branch information
1 parent
7bd58c6
commit 4d711e8
Showing
8 changed files
with
195 additions
and
228 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,39 +1,44 @@ | ||
using Pkg | ||
Pkg.activate(@__DIR__) | ||
Pkg.develop(path=joinpath(@__DIR__, "..", "..", "GNNGraphs")) | ||
Pkg.develop(path=joinpath(@__DIR__, "..")) | ||
Pkg.instantiate() | ||
|
||
using Documenter | ||
using GNNlib | ||
using GNNGraphs | ||
using DocumenterInterLinks | ||
|
||
|
||
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"))) | ||
) | ||
|
||
|
||
makedocs(; | ||
modules = [GNNlib], | ||
doctest = false, | ||
clean = true, | ||
plugins = [interlinks], | ||
format = Documenter.HTML(; mathengine, prettyurls, assets = assets, size_threshold=nothing), | ||
sitename = "GNNlib.jl", | ||
pages = ["Home" => "index.md", | ||
"Message Passing" => "guides/messagepassing.md", | ||
modules = [GNNlib], | ||
doctest = false, | ||
clean = true, | ||
plugins = [interlinks], | ||
format = Documenter.HTML(; mathengine, prettyurls, assets = assets, size_threshold=nothing), | ||
sitename = "GNNlib.jl", | ||
pages = [ | ||
"Home" => "index.md", | ||
"Message Passing" => "guides/messagepassing.md", | ||
"API Reference" => [ | ||
"Message Passing" => "api/messagepassing.md", | ||
"Utils" => "api/utils.md", | ||
] | ||
] | ||
) | ||
|
||
"API Reference" => [ | ||
|
||
"Message Passing" => "api/messagepassing.md", | ||
|
||
"Utils" => "api/utils.md", | ||
] | ||
|
||
] | ||
) | ||
|
||
deploydocs(;repo = "github.com/JuliaGraphs/GraphNeuralNetworks.jl.git", | ||
devbranch = "master", | ||
dirname = "GNNlib", | ||
tag_prefix="GNNlib-") | ||
deploydocs( | ||
repo = "github.com/JuliaGraphs/GraphNeuralNetworks.jl", | ||
target = "build", | ||
branch = "docs-gnnlib", | ||
devbranch = "master", | ||
tag_prefix="GNNlib-", | ||
) |
Oops, something went wrong.