add support for onenote #150
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: docs | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "docs/**" | |
| - .github/workflows/docs.yml | |
| - mkdocs.yml | |
| - requirements/requirements-docs.txt | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| container: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # https://github.com/timvink/mkdocs-git-revision-date-localized-plugin?tab=readme-ov-file#note-when-using-build-systems-like-github-actions | |
| fetch-depth: 0 | |
| sparse-checkout: | | |
| docs | |
| requirements | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install pip dependencies | |
| run: pip install -r requirements/requirements-docs.txt | |
| # TODO: remove temporary workaround | |
| - name: Fix mkdocs URLs | |
| run: pip install --force-reinstall "click<8.2.2" | |
| - name: Deploy site | |
| run: mkdocs gh-deploy --force |