Skip to content

Commit b6ad1c2

Browse files
authored
[docs] Upgrade to Documenter v1 (#1313)
* [docs] Upgrade to Documenter v1 * [CI] Add workflow to cleanup previews * [CI] Fix version of `julia-actions/julia-docdeploy` workflow
1 parent 79a3c16 commit b6ad1c2

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

.github/workflows/PreviewCleanup.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Doc Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
doc-preview-cleanup:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout gh-pages branch
12+
uses: actions/checkout@v4
13+
with:
14+
ref: gh-pages
15+
- name: Delete preview and history + push changes
16+
run: |
17+
if [ -d "previews/PR$PRNUM" ]; then
18+
git config user.name "Documenter.jl"
19+
git config user.email "documenter@juliadocs.github.io"
20+
git rm -rf "previews/PR$PRNUM"
21+
git commit -m "delete preview"
22+
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
23+
git push --force origin gh-pages-new:gh-pages
24+
fi
25+
env:
26+
PRNUM: ${{ github.event.number }}

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
Pkg.Registry.update()
2929
Pkg.develop(PackageSpec(path=pwd()))
3030
Pkg.instantiate()
31-
- uses: julia-actions/julia-docdeploy@releases/v1
31+
- uses: julia-actions/julia-docdeploy@v1
3232
env:
3333
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ BinaryBuilderBase = "7f725544-6523-48cd-82d1-3fa08ff4056e"
33
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44

55
[compat]
6-
Documenter = "0.27"
6+
Documenter = "1"

docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ makedocs(
1717
"Reference" => "reference.md",
1818
],
1919
],
20-
strict = true,
2120
)
2221

2322
deploydocs(

0 commit comments

Comments
 (0)