Skip to content

Commit 95fc04d

Browse files
reset to jupyter book
1 parent 8554187 commit 95fc04d

File tree

7 files changed

+129
-6
lines changed

7 files changed

+129
-6
lines changed

.github/workflows/nightly-build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
if: ${{ github.repository_owner == 'ProjectPythia' }}
1111
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1212
with:
13-
build_command: 'myst build --execute --html'
13+
build_command: jupyter-book build . ; jupyter-book build .
14+
environment_name: eo-datascience-cookbook-dev
1415

1516
deploy:
1617
needs: build
1718
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
18-
1919
# We don't have a link-checker with MyST right now
2020
# link-check:
2121
# if: ${{ github.repository_owner == 'ProjectPythia' }}
22-
# uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main
22+
# uses: ProjectPythia/cookbook-actions/.github/workflows/link-checker.yaml@main

.github/workflows/publish-book.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
build:
1212
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1313
with:
14-
build_command: 'myst build --execute --html'
15-
14+
build_command: jupyter-book build . ; jupyter-book build .
15+
environment_name: eo-datascience-cookbook-dev
1616

1717
deploy:
1818
needs: build
19-
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
19+
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main

_config.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Book settings
2+
# Learn more at https://jupyterbook.org/customize/config.html
3+
4+
title: Earth Observation Data Science Cookbook
5+
author: the <a href="https://projectpythia.org/">Project Pythia</a> Community
6+
logo: notebooks/images/logos/pythia_logo-white-rtext.svg
7+
copyright: "2025"
8+
9+
bibtex_bibfiles:
10+
- notebooks/references.bib
11+
12+
execute:
13+
# To execute notebooks via a Binder instead, replace 'cache' with 'binder'
14+
execute_notebooks: cache
15+
timeout: 600
16+
allow_errors: False # cells with expected failures must set the `raises-exception` cell tag
17+
18+
# Add a few extensions to help with parsing content
19+
parse:
20+
myst_enable_extensions: # default extensions to enable in the myst parser. See https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
21+
- amsmath
22+
- colon_fence
23+
- deflist
24+
- dollarmath
25+
- html_admonition
26+
- html_image
27+
- replacements
28+
- smartquotes
29+
- substitution
30+
31+
sphinx:
32+
config:
33+
linkcheck_ignore: [
34+
"https://doi.org/*",
35+
"https://zenodo.org/badge/*",
36+
"https://services.eodc.eu/browser/*",
37+
"https://binder.eo-datascience-cookbook.org/*",
38+
"https://www.mdpi.com/*",
39+
] # don't run link checker on DOI links since they are immutable
40+
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors (this flag is ignored if building on binder)
41+
html_favicon: notebooks/images/icons/favicon.ico
42+
html_last_updated_fmt: "%-d %B %Y"
43+
html_theme: sphinx_pythia_theme
44+
html_permalinks_icon: '<i class="fas fa-link"></i>'
45+
html_theme_options:
46+
home_page_in_toc: true
47+
repository_url: https://github.com/ProjectPythia/eo-datascience-cookbook # Online location of your book
48+
repository_branch: main # Which branch of the repository should be used when creating links (optional)
49+
use_issues_button: true
50+
use_repository_button: true
51+
use_edit_page_button: true
52+
use_fullscreen_button: true
53+
analytics:
54+
google_analytics_id: G-T52X8HNYE8
55+
github_url: https://github.com/ProjectPythia
56+
icon_links:
57+
- name: YouTube
58+
url: https://www.youtube.com/channel/UCoZPBqJal5uKpO8ZiwzavCw
59+
icon: fab fa-youtube-square
60+
type: fontawesome
61+
launch_buttons:
62+
binderhub_url: https://binder.projectpythia.org
63+
notebook_interface: jupyterlab
64+
logo:
65+
link: https://projectpythia.org
66+
navbar_start:
67+
- navbar-logo
68+
navbar_end:
69+
- navbar-icon-links
70+
navbar_links:
71+
- name: Home
72+
url: https://projectpythia.org
73+
- name: Foundations
74+
url: https://foundations.projectpythia.org
75+
- name: Cookbooks
76+
url: https://cookbooks.projectpythia.org
77+
- name: Resources
78+
url: https://projectpythia.org/resource-gallery.html
79+
- name: Community
80+
url: https://projectpythia.org/index.html#join-us
81+
footer_logos:
82+
NCAR: notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg
83+
Unidata: notebooks/images/logos/Unidata_logo_horizontal_1200x300.svg
84+
UAlbany: notebooks/images/logos/UAlbany-A2-logo-purple-gold.svg
85+
footer_start:
86+
- footer-logos
87+
- footer-info
88+
- footer-extra

_static/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.bd-main .bd-content .bd-article-container {
2+
max-width: 100%; /* default is 60em */
3+
}
4+
.bd-page-width {
5+
max-width: 100%; /* default is 88rem */
6+
}

_static/footer-logo-nsf.png

9.89 KB
Loading

_templates/footer-extra.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<div class="container-fluid footer-extra">
2+
<div class="container">
3+
<center>
4+
Theme by <a href="https://projectpythia.org">Project Pythia</a>. All code
5+
in Pythia Cookbooks is licensed under
6+
<a href="https://opensource.org/license/apache-2-0">Apache 2.0</a>. All
7+
other non-code content is licensed under
8+
<a href="https://creativecommons.org/licenses/by/4.0/">
9+
Creative Commons BY 4.0 (CC BY 4.0)</a
10+
>.
11+
</center>
12+
<br /><br />
13+
<div class="row">
14+
<p class="m-0">
15+
<img
16+
src="{{ pathto('_static/footer-logo-nsf.png', 1) }}"
17+
style="float: left; width: 60px; height: 60px; margin-right: 1rem"
18+
/>
19+
This material is based upon work supported by the National Science
20+
Foundation under Grant Nos. 2026863 and 2026899. Any opinions, findings,
21+
and conclusions or recommendations expressed in this material are those
22+
of the author(s) and do not necessarily reflect the views of the
23+
National Science Foundation.
24+
</p>
25+
</div>
26+
</div>
27+
</div>

environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies:
1919
- intake-xarray
2020
- ipykernel
2121
- jupyter
22+
- jupyter-book
2223
- jupyterlab
2324
- jupyterlab-myst
2425
- jupyter-cache
@@ -47,6 +48,7 @@ dependencies:
4748
- scipy
4849
- seaborn
4950
- snaphu
51+
- sphinx-pythia-theme
5052
- stackstac
5153
- xarray
5254
- zarr=2.18.4

0 commit comments

Comments
 (0)