Skip to content

Commit 85a7cee

Browse files
authored
Merge pull request #9 from pyiron-workshop/book
build jupyter book
2 parents dec17da + 424d532 commit 85a7cee

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-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/[email protected]
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: DPG tutorial 2025
2+
author: Sarath Menon
3+
4+
execute:
5+
execute_notebooks : off
6+
7+
repository:
8+
url : https://github.com/pyiron-workshop/DPG-tutorial-2025
9+
path_to_book : ""
10+
11+
launch_buttons:
12+
notebook_interface : jupyterlab
13+
binderhub_url : https://mybinder.org

_toc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
format: jb-book
2+
root: README
3+
chapters:
4+
- file: 01_introduction.ipynb
5+
- file: 02_assyst.ipynb
6+
- file: 03_fitting.ipynb
7+
- file: 04_validation.ipynb
8+
- file: 05_thermodynamics.ipynb

0 commit comments

Comments
 (0)