Skip to content

Build documentation with new pip package #69

Build documentation with new pip package

Build documentation with new pip package #69

name: Build and Publish Documentation to GitHub Pages
on:
push:
branches:
- develop
- master
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 -r requirements.txt
pip install mkdocs-material==8.5.11 mkdocs-jupyter==0.22.0 neoteroi-mkdocs==0.1.2 pdocs==1.0.1
python setup.py install
mv config.txt.sample config.txt
- name: Update API docs
run: |
pdocs as_markdown -o docs/src/api --exclude_source --overwrite src API
- name: Deploy Documentation
run: python -m mkdocs gh-deploy --force -f docs/mkdocs.yml