Skip to content

docs: change note, and warning syntax #43

docs: change note, and warning syntax

docs: change note, and warning syntax #43

name: Deploy to GitHub Pages
# Updates the GitHub pages website with the changes made in the last push.
# Takes in all markdown files and images of the repository and turns that
# into HTML to present on the GitHub pages website. Used for documentation.
on:
workflow_dispatch:
push:
branches: [main, master, release, development]
paths: [".github/workflows/push--deploy-github-pages.yaml", "mkdocs.yml", "docs/**"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: false
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Pages
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with: { python-version: '3.x' }
- name: Install pip
run: python -m pip install --upgrade pip
- name: Cache pip
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-${{ hashFiles('docs/requirements.txt') }}
restore-keys: pip-${{ runner.os }}-
- name: Install MkDocs and dependencies
run: pip install --requirement 'docs/requirements.txt'
- name: Build site with MkDocs
run: mkdocs --verbose --color build --site-dir ./_site
- name: Restore lychee cache
uses: actions/[email protected]
id: restore-cache
with:
path: .lycheecache
key: cache-lychee-${{ hashFiles('docs/**/*.html', 'docs/**/*.htm') }}
restore-keys: cache-docs-lychee-
- name: Check the links
uses: lycheeverse/[email protected]
with:
fail: true
token: ${{ secrets.GITHUB_TOKEN }}
args: >
./_site --verbose --max-concurrency 1
--glob-ignore-case '**/*.{html,htm}'
--hidden --no-progress
- name: Save lychee cache
uses: actions/cache/[email protected]
with:
path: .lycheecache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
- name: Upload artifact
uses: actions/[email protected]
with: { path: ./_site }
deploy:
name: Deploy site
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]