Skip to content

Commit

Permalink
Merge pull request #17 from pyiron/tested_correction_toc
Browse files Browse the repository at this point in the history
Hopefully the final correction to _toc.yml
  • Loading branch information
max-hassani authored Nov 29, 2021
2 parents 7c5525c + d3391b6 commit f93cedd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/ci_support/write_book_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ repository:
launch_buttons:
notebook_interface : jupyterlab
binderhub_url : https://mybinder.org
EOF
8 changes: 5 additions & 3 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ jobs:
- name: Install Jupyterbook
shell: bash -l {0}
run: |
echo "- file: README.md" > _toc.yml
for f in $(find . -name '*.ipynb' | sort -n); do echo "- file: ${f}" >> _toc.yml; done
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
jupyter-book toc migrate _toc.yml -o _toc.yml
cat _toc.yml
jupyter-book build . --path-output public
- run: mv public/_build/html public_html
- run: touch public_html/.nojekyll
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ jobs:
- name: Install Jupyterbook
shell: bash -l {0}
run: |
echo "- file: README.md" > _toc.yml
for f in $(find . -name '*.ipynb' | sort -n); do echo "- file: ${f}" >> _toc.yml; done
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
jupyter-book toc migrate _toc.yml -o _toc.yml
cat _toc.yml
jupyter-book build . --path-output public
- run: mv public/_build/html public_html
- run: touch public_html/.nojekyll
Expand Down

0 comments on commit f93cedd

Please sign in to comment.