-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (23 loc) · 891 Bytes
/
Copy pathstatic.yml
File metadata and controls
31 lines (23 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: deploy
on:
push:
branches:
- master
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # for mkdocs-git-revision-date-localized-plugin
- uses: actions/setup-python@v4
with:
python-version: 3.12.4
- uses: astral-sh/setup-uv@v3
- run: uv sync
- name: Modify nbconvert HTML exporter
run: sed -i 's#https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS_CHTML-full,Safe##g' $(uv run python -c "import nbconvert; print(nbconvert.__file__.replace('__init__.py', 'exporters/html.py'))")
- name: Deploy with MkDocs
run: export JUPYTER_PLATFORM_DIRS=1 && export MKDOCS_GIT_COMMITTERS_APIKEY=${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }} && uv run mkdocs gh-deploy --force