Skip to content

Commit

Permalink
New test
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorarossi committed Nov 1, 2024
1 parent 82dc087 commit 4130140
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/multidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make-multi.jl
run: julia --project=docs/ docs/make-multi.jl deploy
27 changes: 12 additions & 15 deletions docs/make-multi.jl
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
using MultiDocumenter

for (root, dirs, files) in walkdir(".")
for file in files
filepath = joinpath(root, file)
if islink(filepath)
linktarget = abspath(dirname(filepath), readlink(filepath))
rm(filepath)
cp(linktarget, filepath; force=true)
end
end
end
clonedir = ("--temp" in ARGS) ? mktempdir() : joinpath(@__DIR__, "clones")
outpath = mktempdir()
@info """
Cloning packages into: $(clonedir)
Building aggregate site into: $(outpath)
"""


docs = [
MultiDocumenter.MultiDocRef(
upstream = joinpath(dirname(@__DIR__),"GraphNeuralNetworks", "docs", "build"),
upstream = joinpath(clonedir,"GraphNeuralNetworks", "docs", "build"),
path = "GraphNeuralNetworks",
name = "GraphNeuralNetworks",
fix_canonical_url = false),
MultiDocumenter.MultiDocRef(
upstream = joinpath(dirname(@__DIR__), "GNNGraphs", "docs", "build"),
upstream = joinpath(clonedir, "GNNGraphs", "docs", "build"),
path = "GNNGraphs",
name = "GNNGraphs",
fix_canonical_url = false),
MultiDocumenter.MultiDocRef(
upstream = joinpath(dirname(@__DIR__), "GNNlib", "docs", "build"),
upstream = joinpath(clonedir, "GNNlib", "docs", "build"),
path = "GNNlib",
name = "GNNlib",
fix_canonical_url = false),
MultiDocumenter.MultiDocRef(
upstream = joinpath(dirname(@__DIR__), "GNNLux", "docs", "build"),
upstream = joinpath(clonedir, "GNNLux", "docs", "build"),
path = "GNNLux",
name = "GNNLux",
fix_canonical_url = false),
MultiDocumenter.MultiDocRef(
upstream = joinpath(dirname(@__DIR__), "tutorials", "docs", "build"),
upstream = joinpath(clonedir, "tutorials", "docs", "build"),
path = "tutorials",
name = "tutorials",
fix_canonical_url = false),
Expand Down

0 comments on commit 4130140

Please sign in to comment.