From 5508899b3d0f6b0f45481fd467ad1450bc9a2093 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Mon, 11 Mar 2024 15:07:32 -0400 Subject: [PATCH] tryfix docs build --- .github/workflows/Documentation.yml | 23 +++++++++-------------- docs/Project.toml | 4 ++-- docs/make.jl | 10 ++++++++-- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 1c97275d..3ab6534a 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -16,23 +16,18 @@ jobs: julia-version: [1] os: [ubuntu-latest] steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@latest + - uses: actions/checkout@v4 + - name: "Set up Julia" + uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.julia-version }} - - name: Cache artifacts - uses: actions/cache@v1 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v1 - name: Install dependencies - run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + run: | + using Pkg + Pkg.develop(PackageSpec(path=pwd())); + Pkg.instantiate() + shell: julia --project=docs/ --color=yes {0} - name: Build and deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/Project.toml b/docs/Project.toml index f0b4b9cc..03bf6aa7 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -16,5 +16,5 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" TestImages = "5e47fb64-e119-507b-a336-dd2b206d9990" [compat] -DemoCards = "0.4" -Documenter = "0.27" +DemoCards = "0.4, 0.5" +Documenter = "1" diff --git a/docs/make.jl b/docs/make.jl index bc567620..6ed0f295 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -11,18 +11,24 @@ demos, demos_cb, demos_assets = makedemos("demos") assets = [] isnothing(demos_assets) || (push!(assets, demos_assets)) format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true", - assets = assets) + assets = assets, + size_threshold_ignore = [ + "demos/search/template_matching.md", + "demos/filters/min_max_filter.md" + ] + ) makedocs( modules=[ImageFiltering, OffsetArrays, Kernel, KernelFactors, ImageFiltering.MapWindow], format=format, sitename="ImageFiltering", + warnonly = :missing_docs, pages=[ "index.md", "Tutorials" => [ "Tutorial 1" => "tutorials/tutorial1.md", ], - demos, + demos, "Filtering images" => "filters.md", "Kernels" => "kernels.md", "Gradients" => "gradients.md",