From d99f2ebf17d873ebea2d2c08c4d36180cb85c763 Mon Sep 17 00:00:00 2001 From: DanielVandH Date: Mon, 1 Jul 2024 00:38:52 +0100 Subject: [PATCH] fix 1.6 --- .github/workflows/DocCleanup.yml | 28 +++++++++++++++++++ .../literate_applications/cell_simulations.jl | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/DocCleanup.yml diff --git a/.github/workflows/DocCleanup.yml b/.github/workflows/DocCleanup.yml new file mode 100644 index 000000000..365d56fa7 --- /dev/null +++ b/.github/workflows/DocCleanup.yml @@ -0,0 +1,28 @@ +name: Doc Preview Cleanup + +on: + pull_request: + types: [closed] + +jobs: + doc-preview-cleanup: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout gh-pages branch + uses: actions/checkout@v3 + with: + ref: gh-pages + - name: Delete preview and history + push changes + run: | + if [ -d "previews/PR$PRNUM" ]; then + git config user.name "Documenter.jl" + git config user.email "documenter@juliadocs.github.io" + git rm -rf "previews/PR$PRNUM" + git commit -m "delete preview" + git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) + git push --force origin gh-pages-new:gh-pages + fi + env: + PRNUM: ${{ github.event.number }} \ No newline at end of file diff --git a/docs/src/literate_applications/cell_simulations.jl b/docs/src/literate_applications/cell_simulations.jl index e2fb6f42d..856918443 100644 --- a/docs/src/literate_applications/cell_simulations.jl +++ b/docs/src/literate_applications/cell_simulations.jl @@ -46,7 +46,7 @@ using StableRNGs using LinearAlgebra using StatsBase using CairoMakie -@kwdef mutable struct CellModel{P} +Base.@kwdef mutable struct CellModel{P} tri::Triangulation{P} new_r_cache::Vector{NTuple{2,Float64}} # for r(t + Δt) α::Float64