Skip to content

Commit c12dc99

Browse files
authored
Standardize yml; compat LazyGrids v1 (#42)
* Standardize docs * Standardize yml * Compat LazyGrids 1
1 parent deeefb4 commit c12dc99

File tree

4 files changed

+35
-7
lines changed

4 files changed

+35
-7
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,23 @@ on:
44
schedule:
55
- cron: 0 0 * * 0 # weekly
66
workflow_dispatch:
7-
7+
permissions:
8+
contents: write
9+
pull-requests: write
810
jobs:
911
CompatHelper:
1012
runs-on: ubuntu-latest
1113
steps:
14+
- name: Check if Julia is already available in the PATH
15+
id: julia_in_path
16+
run: which julia
17+
continue-on-error: true
18+
- name: Install Julia, but only if it is not already available in the PATH
19+
uses: julia-actions/setup-julia@latest
20+
with:
21+
version: '1'
22+
# arch: ${{ runner.arch }}
23+
if: steps.julia_in_path.outcome != 'success'
1224
- name: "Add the General registry via Git"
1325
run: |
1426
import Pkg
@@ -31,3 +43,6 @@ jobs:
3143
env:
3244
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3345
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
46+
47+
# based on:
48+
# https://github.com/JuliaRegistries/CompatHelper.jl

.github/workflows/SpellCheck.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v4
12+
- name: Check spelling
13+
uses: crate-ci/typos@master

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LazyGrids = "7031d0ef-c40d-4431-b2f8-61a8d2f650db"
99

1010
[compat]
1111
FillArrays = "1"
12-
LazyGrids = "0.4, 0.5"
12+
LazyGrids = "0.4, 0.5, 1"
1313
MIRTjim = "0.23"
1414
julia = "1.10"
1515

docs/make.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ execute = isempty(ARGS) || ARGS[1] == "run"
22

33
org, reps = :JuliaImageRecon, :ImageGeoms
44
eval(:(using $reps))
5-
using Documenter
6-
using Literate
5+
import Documenter
6+
import Literate
77

88
# https://juliadocs.github.io/Documenter.jl/stable/man/syntax/#@example-block
99
ENV["GKSwstype"] = "100"
@@ -23,7 +23,7 @@ binder_root_url =
2323

2424

2525
repo = eval(:($reps))
26-
DocMeta.setdocmeta!(repo, :DocTestSetup, :(using $reps); recursive=true)
26+
Documenter.DocMeta.setdocmeta!(repo, :DocTestSetup, :(using $reps); recursive=true)
2727

2828
# preprocessing
2929
inc1 = "include(\"../../../inc/reproduce.jl\")"
@@ -77,7 +77,7 @@ format = Documenter.HTML(;
7777
assets = ["assets/custom.css"],
7878
)
7979

80-
makedocs(;
80+
Documenter.makedocs(;
8181
modules = [repo],
8282
authors = "Jeff Fessler and contributors",
8383
sitename = "$repo.jl",
@@ -90,7 +90,7 @@ makedocs(;
9090
)
9191

9292
if isci
93-
deploydocs(;
93+
Documenter.deploydocs(;
9494
repo = "github.com/$base",
9595
devbranch = "main",
9696
devurl = "dev",

0 commit comments

Comments
 (0)