Skip to content

Commit

Permalink
Add make tutorials script
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorarossi committed Dec 2, 2024
1 parent 533ff20 commit af0455a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
9 changes: 9 additions & 0 deletions GraphNeuralNetworks/docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
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"
GraphMakie = "1ecd5474-83a3-4783-bb4f-06765db800d2"
GraphNeuralNetworks = "cffab07f-9bc2-4db1-8861-388f63bf7694"
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PlutoStaticHTML = "359b1769-a58e-495b-9770-312e911026ad"
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
TSne = "24678dba-d5e9-5843-a4c6-250288b04835"
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
36 changes: 35 additions & 1 deletion GraphNeuralNetworks/docs/make_tutorials.jl
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# TODO
using PlutoStaticHTML

function move_tutorials(source, dest)
files = readdir(source)

for file in files
if endswith(file, ".md")
mv(joinpath(source, file), joinpath(dest, file); force = true)
end
end
end

# Build intro tutorials
bopt = BuildOptions("src_tutorials/introductory_tutorials";
output_format = documenter_output, use_distributed = false)

build_notebooks(bopt,
["gnn_intro_pluto.jl", "node_classification_pluto.jl", "graph_classification_pluto.jl"],
OutputOptions()
)

move_tutorials("src_tutorials/introductory_tutorials/", "src/tutorials/")

# Build temporal tutorials
bopt_temp = BuildOptions("src_tutorials/temporalconv_tutorials/";
output_format = documenter_output, use_distributed = false)

build_notebooks(
BuildOptions(bopt_temp;
output_format = documenter_output),
["temporal_graph_classification_pluto.jl", "traffic_prediction.jl"],
OutputOptions()
)

move_tutorials("src_tutorials/temporalconv_tutorials/", "src/tutorials/")

0 comments on commit af0455a

Please sign in to comment.