Skip to content

Commit 8310490

Browse files
authored
Update to Documenter.jl v1 (#364)
1 parent 6faea2e commit 8310490

File tree

5 files changed

+89
-16
lines changed

5 files changed

+89
-16
lines changed

.github/workflows/Documentation.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches: "master"
6+
tags: ["*"]
7+
paths:
8+
- '.github/workflows/Documentation.yml'
9+
- '*.toml'
10+
- 'docs/**'
11+
- 'src/**'
12+
pull_request:
13+
paths:
14+
- '.github/workflows/Documentation.yml'
15+
- '*.toml'
16+
- 'docs/**'
17+
- 'src/**'
18+
release:
19+
20+
concurrency:
21+
# Skip intermediate builds: always.
22+
# Cancel intermediate builds: always.
23+
group: ${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: true
25+
26+
env:
27+
BINARYBUILDER_AUTOMATIC_APPLE: true
28+
29+
jobs:
30+
Documentation:
31+
timeout-minutes: 30
32+
runs-on: ubuntu-latest
33+
env:
34+
JULIA_PKG_SERVER: ""
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: julia-actions/cache@v1
38+
- uses: julia-actions/setup-julia@v1
39+
with:
40+
version: "1.7"
41+
- uses: julia-actions/julia-docdeploy@releases/v1
42+
env:
43+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/PreviewsCleanup.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/ci.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ on:
44
push:
55
branches: "master"
66
tags: ["*"]
7+
paths:
8+
- '.github/workflows/ci.yml'
9+
- '*.toml'
10+
- 'src/**'
11+
- 'test/**'
712
pull_request:
13+
paths:
14+
- '.github/workflows/ci.yml'
15+
- '*.toml'
16+
- 'src/**'
17+
- 'test/**'
818
release:
919

1020
concurrency:
@@ -94,18 +104,3 @@ jobs:
94104
continue-on-error: true
95105
- uses: julia-actions/julia-uploadcoveralls@v1.0
96106
continue-on-error: true
97-
98-
Documentation:
99-
timeout-minutes: 30
100-
runs-on: ubuntu-latest
101-
env:
102-
JULIA_PKG_SERVER: ""
103-
steps:
104-
- uses: actions/checkout@v4
105-
- uses: julia-actions/cache@v1
106-
- uses: julia-actions/setup-julia@latest
107-
with:
108-
version: "1.7"
109-
- uses: julia-actions/julia-docdeploy@releases/v1
110-
env:
111-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "~0.24"
5+
Documenter = "1"

docs/src/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ This is the reference documentation of
88
```
99

1010
## Types
11+
1112
```@autodocs
1213
Modules = [BinaryBuilderBase]
1314
Order = [:type]
1415
```
1516

1617
## Functions
18+
1719
```@autodocs
1820
Modules = [BinaryBuilderBase]
1921
Order = [:function]
2022
```
23+
24+
## Constants
25+
26+
```@autodocs
27+
Modules = [BinaryBuilderBase]
28+
Order = [:constant]
29+
```

0 commit comments

Comments
 (0)