Skip to content

Commit b669294

Browse files
authored
Update to Documenter 1 (#241)
* Update to Documenter 1 * Update CompatHelper.yml
1 parent b3d9cf1 commit b669294

File tree

3 files changed

+38
-20
lines changed

3 files changed

+38
-20
lines changed

.github/workflows/CompatHelper.yml

+35-18
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,43 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 * * * *'
6-
issues:
7-
types: [opened, reopened]
8-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
99
jobs:
10-
build:
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
julia-version: [1]
15-
julia-arch: [x86]
16-
os: [ubuntu-latest]
10+
CompatHelper:
11+
runs-on: ubuntu-latest
1712
steps:
18-
- uses: julia-actions/setup-julia@latest
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
1919
with:
20-
version: ${{ matrix.julia-version }}
21-
- name: Pkg.add("CompatHelper")
22-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
23-
- name: CompatHelper.main()
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main(; subdirs = ["", "docs"])
41+
shell: julia --color=yes {0}
2442
env:
2543
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
run: julia -e 'using CompatHelper; CompatHelper.main()'

docs/Project.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3-
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
3+
4+
[compat]
5+
Documenter = "1"

docs/make.jl

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ makedocs(;
1212
"Limitation of ReverseDiff" => "limits.md",
1313
"API" => "api.md",
1414
],
15-
strict=true,
1615
checkdocs=:exports,
1716
)
1817

0 commit comments

Comments
 (0)