diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml new file mode 100644 index 0000000..4210064 --- /dev/null +++ b/.github/workflows/book.yml @@ -0,0 +1,23 @@ +name: Jupyterbook + +on: + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + python-version: "3.11" + auto-activate-base: false + - name: Install Jupyterbook + shell: bash -l {0} + run: | + conda install -y -c conda-forge jupyter-book + jupyter-book build . --path-output public + - run: mv public/_build/html public_html + - run: touch public_html/.nojekyll diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d9aac56 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy + +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + python-version: "3.11" + auto-activate-base: false + - name: Install Jupyterbook + shell: bash -l {0} + run: | + conda install -y -c conda-forge jupyter-book + jupyter-book build . --path-output public + - run: mv public/_build/html public_html + - run: touch public_html/.nojekyll + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: public_html # The folder the action should deploy. + CLEAN: true diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..827befc --- /dev/null +++ b/_config.yml @@ -0,0 +1,13 @@ +title: IMSI Tutorial +author: Jan Janssen + +execute: + execute_notebooks : off + +repository: + url : https://github.com/pyiron-workshop/imsi-tutorial + path_to_book : "" + +launch_buttons: + notebook_interface : jupyterlab + binderhub_url : https://mybinder.org diff --git a/_toc.yml b/_toc.yml new file mode 100644 index 0000000..49de061 --- /dev/null +++ b/_toc.yml @@ -0,0 +1,7 @@ +format: jb-book +root: README +chapters: +- file: 0-lammps.ipynb +- file: 1-mapreduce.ipynb +- file: 2-quantum-espresso.ipynb +- file: 3-flux.ipynb