Skip to content

Commit 47cfc12

Browse files
Initial commit
0 parents  commit 47cfc12

File tree

14 files changed

+1068
-0
lines changed

14 files changed

+1068
-0
lines changed

.github/workflows/deploy-book.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
# https://jupyterbook.org/en/stable/publish/gh-pages.html
3+
4+
name: deploy-book
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
# If your git repository has the Jupyter Book within some-subfolder next to
11+
# unrelated files, you can make this run only if a file within that specific
12+
# folder has been modified.
13+
#
14+
paths:
15+
- example-book/**
16+
17+
jobs:
18+
deploy-book:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
pages: write
22+
id-token: write
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- name: Set up Python 3.11
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: 3.11
30+
31+
- name: Install dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
35+
# (optional) Cache your executed notebooks between runs
36+
# if you have config:
37+
# execute:
38+
# execute_notebooks: cache
39+
- name: cache executed notebooks
40+
uses: actions/cache@v3
41+
with:
42+
path: _build/.jupyter_cache
43+
key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}
44+
45+
# Save the book's HTML contents to the _build directory
46+
- name: Build the book
47+
run: |
48+
jupyter-book build example-book/
49+
50+
# Upload the book's HTML as an artifact
51+
- name: Upload artifact
52+
uses: actions/upload-pages-artifact@v2
53+
with:
54+
path: "example-book/_build/html"
55+
56+
# Deploy the book's HTML to GitHub Pages
57+
- name: Deploy to GitHub Pages
58+
id: deployment
59+
uses: actions/deploy-pages@v2

.gitignore

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
2+
3+
4+
.DS_Store
5+
6+
7+
## keep just the book PDF file!!
8+
## https://stackoverflow.com/a/16318111/670433
9+
#example-book/_build/*
10+
#!example-book/_build/latex
11+
#example-book/_build/latex/*
12+
#!example-book/_build/latex/book.pdf
13+
14+
# JK, ignore all artifacts from the build process (regardless of book name):
15+
*/_build/*
16+
17+
18+
# Byte-compiled / optimized / DLL files
19+
__pycache__/
20+
*.py[cod]
21+
*$py.class
22+
23+
# C extensions
24+
*.so
25+
26+
# Distribution / packaging
27+
.Python
28+
build/
29+
develop-eggs/
30+
dist/
31+
downloads/
32+
eggs/
33+
.eggs/
34+
lib/
35+
lib64/
36+
parts/
37+
sdist/
38+
var/
39+
wheels/
40+
share/python-wheels/
41+
*.egg-info/
42+
.installed.cfg
43+
*.egg
44+
MANIFEST
45+
46+
# PyInstaller
47+
# Usually these files are written by a python script from a template
48+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
49+
*.manifest
50+
*.spec
51+
52+
# Installer logs
53+
pip-log.txt
54+
pip-delete-this-directory.txt
55+
56+
# Unit test / coverage reports
57+
htmlcov/
58+
.tox/
59+
.nox/
60+
.coverage
61+
.coverage.*
62+
.cache
63+
nosetests.xml
64+
coverage.xml
65+
*.cover
66+
*.py,cover
67+
.hypothesis/
68+
.pytest_cache/
69+
cover/
70+
71+
# Translations
72+
*.mo
73+
*.pot
74+
75+
# Django stuff:
76+
*.log
77+
local_settings.py
78+
db.sqlite3
79+
db.sqlite3-journal
80+
81+
# Flask stuff:
82+
instance/
83+
.webassets-cache
84+
85+
# Scrapy stuff:
86+
.scrapy
87+
88+
# Sphinx documentation
89+
docs/_build/
90+
91+
# PyBuilder
92+
.pybuilder/
93+
target/
94+
95+
# Jupyter Notebook
96+
.ipynb_checkpoints
97+
98+
# IPython
99+
profile_default/
100+
ipython_config.py
101+
102+
# pyenv
103+
# For a library or package, you might want to ignore these files since the code is
104+
# intended to run in multiple environments; otherwise, check them in:
105+
# .python-version
106+
107+
# pipenv
108+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
109+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
110+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
111+
# install all needed dependencies.
112+
#Pipfile.lock
113+
114+
# poetry
115+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
116+
# This is especially recommended for binary packages to ensure reproducibility, and is more
117+
# commonly ignored for libraries.
118+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
119+
#poetry.lock
120+
121+
# pdm
122+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
123+
#pdm.lock
124+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
125+
# in version control.
126+
# https://pdm.fming.dev/#use-with-ide
127+
.pdm.toml
128+
129+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130+
__pypackages__/
131+
132+
# Celery stuff
133+
celerybeat-schedule
134+
celerybeat.pid
135+
136+
# SageMath parsed files
137+
*.sage.py
138+
139+
# Environments
140+
.env
141+
.venv
142+
env/
143+
venv/
144+
ENV/
145+
env.bak/
146+
venv.bak/
147+
148+
# Spyder project settings
149+
.spyderproject
150+
.spyproject
151+
152+
# Rope project settings
153+
.ropeproject
154+
155+
# mkdocs documentation
156+
/site
157+
158+
# mypy
159+
.mypy_cache/
160+
.dmypy.json
161+
dmypy.json
162+
163+
# Pyre type checker
164+
.pyre/
165+
166+
# pytype static type analyzer
167+
.pytype/
168+
169+
# Cython debug symbols
170+
cython_debug/
171+
172+
# PyCharm
173+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
174+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
175+
# and can be added to the global gitignore or merged into this file. For a more nuclear
176+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
177+
#.idea/

0 commit comments

Comments
 (0)