Skip to content

Commit

Permalink
tryfix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Mar 11, 2024
1 parent 66cf9d9 commit 5508899
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
10 changes: 8 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5508899

Please sign in to comment.