Fix Jupyter notebooks #14
Workflow file for this run
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: Jupyterbook | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CONDA_PREFIX: /usr/share/miniconda/ | |
GPAW_SETUP_PATH: /usr/share/miniconda/share/gpaw | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: "3.10" | |
environment-file: .github/ci_support/environment.yml | |
auto-activate-base: false | |
- name: Install Jupyterbook | |
shell: bash -l {0} | |
run: | | |
echo "format: jb-book" > _toc.yml | |
echo "root: README" >> _toc.yml | |
echo "chapters:" >> _toc.yml | |
for f in $(find . -name '*.ipynb' | sort -n); do echo "- file: ${f#*/}" >> _toc.yml; done | |
curl https://pyiron.org/images/logo_dark.png --output logo_dark.png | |
bash .github/ci_support/write_book_config.sh | |
rm CODE_OF_CONDUCT.md LICENSE | |
cat _toc.yml | |
jupyter-book build . --path-output public | |
- run: mv public/_build/html public_html | |
- run: touch public_html/.nojekyll |