add save as svg button (in addition to save as pdf) + fix packaging issues #43
This file contains 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: generate and deploy API docs | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Build | |
run: | | |
pip install pdoc3 | |
pip install -e . | |
JUPYTER_PLATFORM_DIRS=1 python -We -m pdoc --html open_atmos_jupyter_utils | |
- name: Deploy | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
BRANCH: pdoc | |
FOLDER: html/open_atmos_jupyter_utils | |
CLEAN: true |