Skip to content

Commit 299d789

Browse files
authored
Add jupyter book (#49)
* Add jupyter book * fixes
1 parent fa4fcdc commit 299d789

19 files changed

+182
-3943
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.12"
16+
environment-file: book/environment.yml
17+
auto-activate-base: false
18+
- name: Install Jupyterbook
19+
shell: bash -l {0}
20+
run: |
21+
cp book/_config.yml .
22+
cp book/_toc.yml .
23+
cp book/*.md .
24+
jupyter-book build . --path-output public
25+
- run: mv public/_build/html public_html
26+
- run: touch public_html/.nojekyll
27+
- name: Deploy 🚀
28+
uses: JamesIves/github-pages-deploy-action@3.7.1
29+
with:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
BRANCH: gh-pages # The branch the action should deploy to.
32+
FOLDER: public_html # The folder the action should deploy.
33+
CLEAN: true

.github/workflows/pipeline.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,24 @@ jobs:
8989
papermill aiida_simple.ipynb aiida_simple_out.ipynb -k "python3"
9090
papermill jobflow_simple.ipynb jobflow_simple_out.ipynb -k "python3"
9191
papermill pyiron_base_simple.ipynb pyiron_base_simple_out.ipynb -k "python3"
92-
papermill universal_workflow_simple.ipynb universal_workflow_simple_out.ipynb -k "python3"
92+
papermill universal_workflow_simple.ipynb universal_workflow_simple_out.ipynb -k "python3"
93+
94+
book:
95+
runs-on: ubuntu-latest
96+
steps:
97+
- uses: actions/checkout@v4
98+
- uses: conda-incubator/setup-miniconda@v3
99+
with:
100+
auto-update-conda: true
101+
python-version: "3.12"
102+
environment-file: book/environment.yml
103+
auto-activate-base: false
104+
- name: Install Jupyterbook
105+
shell: bash -l {0}
106+
run: |
107+
cp book/_config.yml .
108+
cp book/_toc.yml .
109+
cp book/*.md .
110+
jupyter-book build . --path-output public
111+
- run: mv public/_build/html public_html
112+
- run: touch public_html/.nojekyll

aiida_nfdi.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)