Skip to content

Commit

Permalink
add notebook to docs build (via ugly hack)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhidding committed Nov 8, 2024
1 parent 89314ac commit f74e2c7
Show file tree
Hide file tree
Showing 3 changed files with 2,004 additions and 10 deletions.
4 changes: 4 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ path = joinpath(@__DIR__, "transpiled")
rm(path; force=true, recursive=true)
mkpath(path)
Entangled.transpile_file.(joinpath(@__DIR__, "src"), sources, path)
run(`touch $(joinpath(path, "first_tutorial.md"))`)
copydir(joinpath(@__DIR__, "src/fig"), joinpath(path, "fig"))

makedocs(
Expand All @@ -81,6 +82,7 @@ makedocs(
"ALCAPS" => "model-alcap.md"
],
"Examples" => [
"Tutorial (Pluto notebook)" => "first_tutorial.md",
"Tabular Sea Levels" => "cases/tabular-sea-level.md"
],
"Architecture" => "architecture.md",
Expand Down Expand Up @@ -121,6 +123,8 @@ makedocs(
],
plugins=[bib])

cp(joinpath(@__DIR__, "notebooks/first_tutorial.html"), joinpath(@__DIR__, "build/first_tutorial/index.html"), force=true)

deploydocs(
repo="github.com/MindTheGap-ERC/CarboKitten.jl"
)
24 changes: 24 additions & 0 deletions docs/notebooks/first_tutorial.html

Large diffs are not rendered by default.

Loading

0 comments on commit f74e2c7

Please sign in to comment.