-
-
Notifications
You must be signed in to change notification settings - Fork 35
35 lines (34 loc) · 1.04 KB
/
publish_mkdocs.yml
File metadata and controls
35 lines (34 loc) · 1.04 KB
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
32
33
34
35
name: Build and Publish Documentation to GitHub Pages
on:
push:
branches:
- develop
- stage
paths:
# Only rebuild documentation when docs have changed
- "docs/**"
- ".github/workflows/publish_mkdocs.yml"
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
publish_branch: gh-pages
- name: Install Dependencies
run: |
pip install uv
uv sync
uv pip install mkdocs-material==8.5.11 mkdocs-jupyter==0.22.0 neoteroi-mkdocs==0.1.2 pdocs==1.0.1 lxml_html_clean==0.1.1
uv run python setup.py install
mv config.txt.sample config.txt
- name: Update API docs
run: |
uv run pdocs as_markdown -o docs/src/api --exclude_source --overwrite src API
- name: Deploy Documentation
run: uv run python -m mkdocs gh-deploy --force -f docs/mkdocs.yml