From 7469c675f0898de35e90536913a2517a28e46910 Mon Sep 17 00:00:00 2001 From: Wen Wei Tseng Date: Tue, 19 Mar 2024 00:26:44 +0800 Subject: [PATCH] linkcheck --- .github/workflows/linkcheck.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 0416722..79cd1ed 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -23,6 +23,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Julia + uses: julia-actions/setup-julia@v1 + - name: Convert literate notebooks to ipynb files + shell: julia --color=yes {0} + working-directory: docs + run: | + import Pkg + Pkg.add("Literate") + using Literate + for (root, dirs, files) in walkdir(pwd()) + for file in files + if endswith(file, ".jl") + nb = joinpath(root, file) + Literate.notebook(nb, dirname(nb); mdstrings=true, execute=false) + end + end + end - name: Setup Python uses: actions/setup-python@v5 id: cp