Skip to content

Commit 5160ee3

Browse files
setup for docs build
1 parent 56637be commit 5160ee3

File tree

7 files changed

+100
-5
lines changed

7 files changed

+100
-5
lines changed

.buildkite/publish_tutorials_output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ temp_dir=$(mktemp -d)
1111
git -C "${temp_dir}" clone [email protected]:SciML/SciMLTutorialsOutput .
1212

1313
# Copy our output artifacts into it:
14-
for d in html markdown notebook pdf script; do
14+
for d in docs html notebook pdf script markdown; do
1515
cp -vRa "${d}/" "${temp_dir}"
1616
done
1717
cp -va *.md *.bib "${temp_dir}"

.buildkite/run_tutorial.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ steps:
3535
- ./*.toml
3636
outputs:
3737
- html/**/*.html
38+
- markdown/**/figures/*.png
3839
- markdown/**/*.md
3940
- notebook/**/*.ipynb
4041
- pdf/**/*.pdf
4142
- script/**/*.jl
4243
s3_prefix: s3://julialang-buildkite-artifacts/scimltutorials
43-
timeout_in_minutes: 360
44+
timeout_in_minutes: 1000
4445
commands: |
4546
# Instantiate, to install the overall project dependencies
4647
echo "--- Instantiate"
@@ -62,7 +63,7 @@ steps:
6263
files:
6364
- .buildkite/ssh_deploy.key
6465
- JuliaCI/julia#v1:
65-
version: 1.6
66+
version: 1.7
6667
- staticfloat/sandbox:
6768
rootfs_url: "https://jc-rootfs-images.s3.amazonaws.com/aws_uploader-2021-11-12.x86_64.tar.gz"
6869
rootfs_treehash: "986217e5b36efd3b3b91ed90df8e36d628cf543f"
@@ -76,6 +77,7 @@ steps:
7677
input_from: "tutorial-{SANITIZED_PATH}"
7778
outputs:
7879
- html/**/*.html
80+
- markdown/**/figures/*.png
7981
- markdown/**/*.md
8082
- notebook/**/*.ipynb
8183
- pdf/**/*.pdf

.buildkite/test_sciml.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ agents:
22
queue: "juliaecosystem"
33

44
steps:
5-
- label: ":julia: Run tests on 1.6"
5+
- label: ":julia: Run tests on 1.7"
66
plugins:
77
- JuliaCI/julia#v1:
8-
version: 1.6
8+
version: 1.7
99
- JuliaCI/julia-test#v1:
1010
timeout_in_minutes: 20
1111
artifact_paths:

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/make.jl

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using Documenter, SciMLTutorialsOutput
2+
3+
dir = @__DIR__() * "/.."
4+
5+
@show dir
6+
@show readdir(dir)
7+
8+
include("pages.jl")
9+
10+
makedocs(
11+
sitename="The SciML Tutorials",
12+
authors="Chris Rackauckas",
13+
modules=[SciMLTutorialsOutput],
14+
clean=true, doctest=false,
15+
format=Documenter.HTML(#analytics = "UA-90474609-3",
16+
assets=["assets/favicon.ico"],
17+
canonical="https://tutorials.sciml.ai/stable/"),
18+
pages=pages
19+
)
20+
21+
deploydocs(;
22+
repo="github.com/SciML/SciMLTutorialsOutput",
23+
devbranch="main",
24+
branch="main"
25+
)

docs/pages.jl

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This file assumes `dir` is the directory for the package! dir = @__DIR__() * "/.."
2+
3+
dir = @__DIR__() * "/.."
4+
5+
cp(joinpath(dir, "markdown"), joinpath(dir, "docs", "src"), force=true)
6+
cp(joinpath(dir, "README.md"), joinpath(dir, "docs", "src", "index.md"), force=true)
7+
tutorialsdir = joinpath(dir, "docs", "src")
8+
9+
pages = Any["SciMLTutorials.jl: Tutorials for Scientific Machine Learning (SciML), Equation Solvers, and AI for Science"=>"index.md"]
10+
11+
for folder in readdir(tutorialsdir)
12+
newpages = Any[]
13+
if folder[end-2:end] != ".md" && folder != "Testing" && folder != "figures"
14+
for file in filter(x -> x[end-2:end] == ".md", readdir(
15+
joinpath(tutorialsdir, folder)))
16+
try
17+
filecontents = readlines(joinpath(tutorialsdir, folder, file))
18+
title = filecontents[3][9:end-1]
19+
20+
# Cut out the first 5 lines from the file to remove the Weave header stuff
21+
open(joinpath(tutorialsdir, folder, file), "w") do output
22+
println(output, "# $title")
23+
for line in Iterators.drop(filecontents, 4)
24+
println(output, line)
25+
end
26+
end
27+
push!(newpages, title => joinpath(folder, file))
28+
catch e
29+
@show folder, file, e
30+
end
31+
end
32+
push!(pages, folder => newpages)
33+
end
34+
end
35+
36+
#=
37+
# The result is in alphabetical order, change to the wanted order
38+
39+
permute!(pages,
40+
[1, 8, 11, 17, 3, 4, 7, 5, 9, 12, 18, 10, 16, 6, 15, 13, 14, 2]
41+
)
42+
43+
names = [
44+
"SciMLBenchmarks.jl: Benchmarks for Scientific Machine Learning (SciML) and Equation Solvers",
45+
"Multi-Language Wrapper Benchmarks",
46+
"Non-Stiff Ordinary Differential Equations",
47+
"Stiff Ordinary Differential Equations",
48+
"Biological Differential Equations",
49+
"Differential-Algebraic Equations (DAEs)",
50+
"Method of Lines Partial Differential Equations (PDEs)",
51+
"Dynamical ODEs (Hamiltonian and Second Order)",
52+
"N-Body Problem Benchmarks",
53+
"Non-Stiff Stochastic Differential Equations",
54+
"Stiff Stochastic Differential Equations",
55+
"Non-Stiff Delay Differential Equations",
56+
"Stiff Delay Differential equations",
57+
"Jump Process Equations (Gillespie Benchmarks)",
58+
"Parameter Estimation and Inverse Problem Benchmarks",
59+
"Physics-Informed Neural Network (Neural Network PDE Solver) Cost Function Benchmarks",
60+
"Physics-Informed Neural Network (Neural Network PDE Solver) Optimizer Benchmarks",
61+
"SDE Adaptivity Benchmarks"]
62+
63+
for i in 1:length(pages)
64+
pages[i] = names[i] => pages[i][2]
65+
end
66+
=#

docs/src/markdown/blank.jl

Whitespace-only changes.

0 commit comments

Comments
 (0)