Skip to content

Commit 031db44

Browse files
authored
Merge pull request #1 from pyiron-workshop/book
build jupyter book
2 parents 7ef2af1 + d15f669 commit 031db44

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

.github/workflows/book.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Jupyterbook
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: conda-incubator/setup-miniconda@v3
13+
with:
14+
auto-update-conda: true
15+
python-version: "3.11"
16+
auto-activate-base: false
17+
- name: Install Jupyterbook
18+
shell: bash -l {0}
19+
run: |
20+
conda install -y -c conda-forge jupyter-book
21+
jupyter-book build . --path-output public
22+
- run: mv public/_build/html public_html
23+
- run: touch public_html/.nojekyll

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: conda-incubator/setup-miniconda@v3
13+
with:
14+
auto-update-conda: true
15+
python-version: "3.11"
16+
auto-activate-base: false
17+
- name: Install Jupyterbook
18+
shell: bash -l {0}
19+
run: |
20+
conda install -y -c conda-forge jupyter-book
21+
jupyter-book build . --path-output public
22+
- run: mv public/_build/html public_html
23+
- run: touch public_html/.nojekyll
24+
- name: Deploy 🚀
25+
uses: JamesIves/github-pages-deploy-action@3.7.1
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
BRANCH: gh-pages # The branch the action should deploy to.
29+
FOLDER: public_html # The folder the action should deploy.
30+
CLEAN: true

_config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: IMSI Tutorial
2+
author: Jan Janssen
3+
4+
execute:
5+
execute_notebooks : off
6+
7+
repository:
8+
url : https://github.com/pyiron-workshop/imsi-tutorial
9+
path_to_book : ""
10+
11+
launch_buttons:
12+
notebook_interface : jupyterlab
13+
binderhub_url : https://mybinder.org

_toc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
format: jb-book
2+
root: README
3+
chapters:
4+
- file: 0-lammps.ipynb
5+
- file: 1-mapreduce.ipynb
6+
- file: 2-quantum-espresso.ipynb
7+
- file: 3-flux.ipynb

0 commit comments

Comments
 (0)