Skip to content

Commit 22ae07d

Browse files
committed
Add jupyter book
1 parent fa4fcdc commit 22ae07d

19 files changed

+186
-3942
lines changed

.github/workflows/book.yml

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

.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

aiida_nfdi.ipynb

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

0 commit comments

Comments
 (0)