Skip to content

Commit

Permalink
Update to Documenter.jl v1 (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Jan 1, 2024
1 parent 6faea2e commit 8310490
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 16 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Documentation

on:
push:
branches: "master"
tags: ["*"]
paths:
- '.github/workflows/Documentation.yml'
- '*.toml'
- 'docs/**'
- 'src/**'
pull_request:
paths:
- '.github/workflows/Documentation.yml'
- '*.toml'
- 'docs/**'
- 'src/**'
release:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
BINARYBUILDER_AUTOMATIC_APPLE: true

jobs:
Documentation:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
JULIA_PKG_SERVER: ""
steps:
- uses: actions/checkout@v4
- uses: julia-actions/cache@v1
- uses: julia-actions/setup-julia@v1
with:
version: "1.7"
- uses: julia-actions/julia-docdeploy@releases/v1
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
26 changes: 26 additions & 0 deletions .github/workflows/PreviewsCleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Doc Preview Cleanup

on:
pull_request:
types: [closed]

jobs:
doc-preview-cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Delete preview and history + push changes
run: |
if [ -d "previews/PR$PRNUM" ]; then
git config user.name "Documenter.jl"
git config user.email "[email protected]"
git rm -rf "previews/PR$PRNUM"
git commit -m "delete preview"
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
git push --force origin gh-pages-new:gh-pages
fi
env:
PRNUM: ${{ github.event.number }}
25 changes: 10 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ on:
push:
branches: "master"
tags: ["*"]
paths:
- '.github/workflows/ci.yml'
- '*.toml'
- 'src/**'
- 'test/**'
pull_request:
paths:
- '.github/workflows/ci.yml'
- '*.toml'
- 'src/**'
- 'test/**'
release:

concurrency:
Expand Down Expand Up @@ -94,18 +104,3 @@ jobs:
continue-on-error: true
- uses: julia-actions/[email protected]
continue-on-error: true

Documentation:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
JULIA_PKG_SERVER: ""
steps:
- uses: actions/checkout@v4
- uses: julia-actions/cache@v1
- uses: julia-actions/setup-julia@latest
with:
version: "1.7"
- uses: julia-actions/julia-docdeploy@releases/v1
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "~0.24"
Documenter = "1"
9 changes: 9 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@ This is the reference documentation of
```

## Types

```@autodocs
Modules = [BinaryBuilderBase]
Order = [:type]
```

## Functions

```@autodocs
Modules = [BinaryBuilderBase]
Order = [:function]
```

## Constants

```@autodocs
Modules = [BinaryBuilderBase]
Order = [:constant]
```

0 comments on commit 8310490

Please sign in to comment.