Skip to content

Commit

Permalink
Set up workflow to push documentation to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
PGijsbers committed Dec 16, 2024
1 parent 40ca190 commit 6dd4ef0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: docs - build, deploy
on:
push:
branches:
- main
- develop
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
# We need to install not just the doc dependencies but also the package itself
# since it has the docs/tools/asset_type_replacer plugin.
- run: python -m pip install -e ".[docs]"
- run: python -m mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ theme:
- content.code.copy

nav:
- Home: README.md
- Using the API: Using.md
- Hosting the API: Hosting.md
- 'Developer Resources':
Expand Down

0 comments on commit 6dd4ef0

Please sign in to comment.