From cd411494d14d57bac1a89fbd2eed13d2d0d19397 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Mon, 18 May 2026 20:47:52 +0200 Subject: [PATCH] docs: new publish workflow --- .github/workflows/publish-docs.yml | 27 +++++++++++++++++++++------ mkdocs.yml | 7 +++++++ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index a99390b..177e04d 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -1,4 +1,5 @@ name: Publish docs via GitHub Pages + on: push: branches: @@ -11,10 +12,24 @@ jobs: name: Deploy docs runs-on: ubuntu-latest steps: - - name: Checkout main - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ssh-key: ${{ secrets.DEPLOY_KEY }} - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - env: - PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: pip install mkdocs-material + + - name: Configure Git identity + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Deploy to GitHub Pages + run: mkdocs gh-deploy --force diff --git a/mkdocs.yml b/mkdocs.yml index 0da1eb3..6c46844 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,3 +1,10 @@ site_name: Brittle Star Project theme: name: material + +markdown_extensions: + - pymdownx.superfences: + custom_fences: + - name: mermaid + class: mermaid + format: !!python/name:pymdownx.superfences.fence_code_format