Add manual import of SLOTH to new example .ipynb #45
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 of the action | |
name: RenderMasterSphinxDocumentation | |
# Events on which this action should trigger | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
# run on push event, but if branch is master only | |
- master | |
# List of jobs to do | |
jobs: | |
# Job name | |
makeDoc: | |
# Wich OS / docker image to be used | |
runs-on: ubuntu-latest | |
# Steps of the job | |
steps: | |
# Checkout the master branch | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
ref: 'master' | |
# Use python env. and install dependencies | |
- uses: actions/setup-python@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt -y install libgeos-dev | |
pip install --upgrade myst-parser | |
pip install sphinx sphinx_rtd_theme | |
pip install sphinx-copybutton | |
pip install matplotlib | |
pip install netCDF4 | |
pip install numpy | |
pip install scipy | |
pip install cartopy | |
pip install geopandas | |
pip install xarray | |
pip install pandas | |
pip install shapely | |
pip install myst-nb | |
# Build documentation with sphinx in _build | |
- name: Sphinx build | |
run: | | |
sphinx-build -a doc _build | |
# Deploy new rendered documentation by pushing to branch gh-pages | |
# The actual GiHub Page is refreshed by GitHub if the branch | |
# gh-pages is updated automatically. | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _build/ | |
force_orphan: true | |