diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index b4ba06e..580d081 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -3,10 +3,20 @@ on:
push:
branches:
- master
+ pull_request:
+ # The toolchain, GPU and MPI pages are generated from BinaryBuilderBase, Yggdrasil
+ # and the General registry, so rebuild weekly to pick up their changes.
+ schedule:
+ - cron: '0 6 * * 1'
+ workflow_dispatch:
+
permissions:
- contents: write
+ contents: read
+
jobs:
- build-and-deploy:
+ # Builds the site with read-only permissions, since it runs code downloaded from
+ # Yggdrasil (see utils.jl). Pull requests stop here.
+ build:
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -17,14 +27,36 @@ jobs:
uses: julia-actions/setup-julia@v3
with:
version: '1'
- - run: julia -e '
- using Pkg; Pkg.add(["NodeJS", "Franklin"]);
+ - name: Build site
+ run: julia --project=. -e '
+ using Pkg; Pkg.instantiate();
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
using Franklin;
- Pkg.activate("."); Pkg.instantiate();
optimize(minify=false)'
- - name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@releases/v4
+ - name: Upload site
+ uses: actions/upload-artifact@v7
+ with:
+ name: site
+ path: __site
+
+ deploy:
+ needs: build
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v7
+ with:
+ persist-credentials: false
+ - name: Download site
+ uses: actions/download-artifact@v8
+ with:
+ name: site
+ path: __site
+ - name: Deploy
+ uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
diff --git a/.gitignore b/.gitignore
index 0804690..5177325 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,6 @@
.DS_Store
__site
+Manifest.toml
+node_modules/
+package.json
+package-lock.json
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index c26e6c8..0000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-pages:
- stage: deploy
- script:
- - mv __site public
- artifacts:
- paths:
- - public
- only:
- - master
diff --git a/Project.toml b/Project.toml
new file mode 100644
index 0000000..edc7fe4
--- /dev/null
+++ b/Project.toml
@@ -0,0 +1,14 @@
+[deps]
+BinaryBuilderBase = "7f725544-6523-48cd-82d1-3fa08ff4056e"
+Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
+Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
+NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"
+RegistryInstances = "2792f1a3-b283-48e8-9a74-f99dce5104f3"
+
+[compat]
+BinaryBuilderBase = "1.49"
+Downloads = "1"
+Franklin = "0.10"
+NodeJS = "2"
+RegistryInstances = "0.1"
+julia = "1.10"
diff --git a/_assets/hamburger.svg b/_assets/hamburger.svg
deleted file mode 100644
index 233bf21..0000000
--- a/_assets/hamburger.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/_assets/rndimg.jpg b/_assets/rndimg.jpg
deleted file mode 100644
index 98be38d..0000000
Binary files a/_assets/rndimg.jpg and /dev/null differ
diff --git a/_assets/scripts/generate_results.jl b/_assets/scripts/generate_results.jl
deleted file mode 100644
index 8823354..0000000
--- a/_assets/scripts/generate_results.jl
+++ /dev/null
@@ -1,27 +0,0 @@
-# Parent file to run all scripts which may generate
-# some output that you want to display on the website.
-# this can be used as a tester to check that all the code
-# on your website runs properly.
-
-dir = @__DIR__
-
-"""
- genplain(s)
-
-Small helper function to run some code and redirect the output (stdout) to a file.
-"""
-function genplain(s::String)
- open(joinpath(dir, "output", "$(splitext(s)[1]).txt"), "w") do outf
- redirect_stdout(outf) do
- include(joinpath(dir, s))
- end
- end
-end
-
-# output
-
-genplain("script1.jl")
-
-# plots
-
-include("script2.jl")
diff --git a/_assets/scripts/output/script1.out b/_assets/scripts/output/script1.out
deleted file mode 100644
index 234405e..0000000
--- a/_assets/scripts/output/script1.out
+++ /dev/null
@@ -1,5 +0,0 @@
-*---------1.3
-**--------1.3
-***-------1.3
-****------1.3
-*****-----1.3
diff --git a/_assets/scripts/output/script2.svg b/_assets/scripts/output/script2.svg
deleted file mode 100644
index 56bb295..0000000
--- a/_assets/scripts/output/script2.svg
+++ /dev/null
@@ -1,581 +0,0 @@
-
-
-
-
diff --git a/_assets/scripts/script1.jl b/_assets/scripts/script1.jl
deleted file mode 100644
index bc4dc52..0000000
--- a/_assets/scripts/script1.jl
+++ /dev/null
@@ -1,10 +0,0 @@
-using LinearAlgebra # HIDE
-using Random:seed! # HIDE
-seed!(0) # HIDE
- # HIDE
-x = randn(5)
-y = randn(5)
-
-for i in 1:5
- println(rpad("*"^i, 10, '-'), round(dot(x, y), digits=1))
-end
diff --git a/_assets/scripts/script2.jl b/_assets/scripts/script2.jl
deleted file mode 100644
index 0fa6c42..0000000
--- a/_assets/scripts/script2.jl
+++ /dev/null
@@ -1,4 +0,0 @@
-using PyPlot
-x = range(0, stop=1, length=50)
-plot(x, sin.(2x).*exp.(-x/3))
-savefig(joinpath(@__DIR__, "output", "script2.svg"))
diff --git a/_assets/yggdrasil.svg b/_assets/yggdrasil.svg
new file mode 100644
index 0000000..d3921c8
--- /dev/null
+++ b/_assets/yggdrasil.svg
@@ -0,0 +1,311 @@
+
+
+
diff --git a/_css/franklin.css b/_css/franklin.css
index 11ced6e..9ca577b 100644
--- a/_css/franklin.css
+++ b/_css/franklin.css
@@ -239,3 +239,50 @@ return{c:[{cN:"metaj",b:/^julia>/,r:10,starts:{e:/^(?![ ]{6})/,sL:"julia"},alias
color: white;
border-radius: 0.3em;
}
+
+.titlebar a {
+ color: inherit;
+ text-decoration: none;
+}
+.intro p a {
+ color: inherit;
+ text-decoration: underline;
+}
+
+/* Section heading with a centered icon, e.g. Yggdrasil on the homepage */
+.section-head {
+ text-align: center;
+ margin: 1.5em 0 2em 0;
+}
+.section-head img {
+ display: block;
+ height: 6em;
+ margin: 0 auto 0.5em auto;
+}
+.franklin-content .section-head h2 {
+ text-align: center;
+ margin: 0 0 0.3em 0;
+}
+.section-head p {
+ margin: 0;
+}
+
+/* Generated toolchain tables (see utils.jl) */
+.table-scroll {
+ overflow-x: auto;
+ margin: 1em 0;
+}
+.franklin-content table.toolchains {
+ font-size: 90%;
+}
+.franklin-content table.toolchains th {
+ background-color: #f2f2f2;
+ padding: 6px 10px;
+}
+.franklin-content table.toolchains td {
+ text-align: left;
+ padding: 6px 10px;
+}
+.franklin-content table.toolchains td code {
+ white-space: nowrap;
+}
diff --git a/_layout/foot.html b/_layout/foot.html
index 77f7f93..4a3be05 100644
--- a/_layout/foot.html
+++ b/_layout/foot.html
@@ -5,6 +5,6 @@
{{ if hascode }}
{{ insert foot_highlight.html }}
{{ end }}
-
+ {{ispage index.html}}{{end}}