Skip to content

Commit 56b4637

Browse files
authored
some updates to the edu notebooks including plausible (#99)
1 parent 9ce618a commit 56b4637

12 files changed

+97
-2480
lines changed

.github/workflows/build-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
container: ghcr.io/oggm/oggm:latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: Fix Git-Protection
2020
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
2121
- name: Install Dependencies
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
jupyter-book build .
2929
- name: Upload Build Artifacts
30-
uses: actions/upload-artifact@v3
30+
uses: actions/upload-artifact@v4
3131
with:
3232
name: build-output
3333
path: _build/

_config.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
#######################################################################################
22
# A default configuration that will be loaded for all jupyter books
3-
# See the documentation for help and more options:
3+
# See the documentation for help and more options:
44
# https://jupyterbook.org/customize/config.html
55

66
#######################################################################################
77
# Book settings
88
title: OGGM-Edu notebooks # The title of the book. Will be placed in the left navbar.
99
author: OGGM e.V. and OGGM Contributors # The author of the book
10-
copyright: "2014-2021" # Copyright year to be placed in the footer
10+
copyright: "2014-2025" # Copyright year to be placed in the footer
1111
logo: img/logo.png # A path to the book logo
1212
repository:
1313
url: https://github.com/OGGM/oggm-edu-notebooks
14-
path_to_book: .
14+
path_to_book: .
1515
branch: master
1616
launch_buttons:
1717
notebook_interface: "jupyterlab"
1818
binderhub_url: "https://mybinder.org"
1919
jupyterhub_url: "https://classroom.oggm.org"
2020
html:
21+
extra_css:
22+
- _static/custom.css
2123
use_repository_button: true
2224
use_issues_button: true
2325
use_edit_page_button: true
24-
google_analytics_id: UA-106829797-2
2526
extra_footer: |
2627
<p>
2728
These notebooks are licensed under a <a href="https://github.com/OGGM/tutorials/blob/master/LICENSE.txt" target="_blank">BSD-3-Clause license</a>.
@@ -31,7 +32,10 @@ html:
3132
sphinx:
3233
config:
3334
html_show_copyright: false
35+
html_last_updated_fmt: '%b %d, %Y'
3436
nb_merge_streams: true
37+
html_js_files:
38+
- ['https://plausible.oggm.org/js/script.js', {'defer': 'defer', 'data-domain': 'edu.oggm.org'}]
3539
execute:
3640
execute_notebooks: auto
3741
timeout: -1

_static/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
html {
2+
--pst-font-size-h1: 2.2em; /* Default: 2.625 */
3+
--pst-font-size-h2: 1.7em; /* Default: 2.125 */
4+
--pst-font-size-h3: 1.3em; /* Default: 1.75 */
5+
--pst-font-size-h4: 1.0em; /* Default: ? */
6+
}

img/build_info.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "c5fb7d5b-688d-4102-817a-0f5b1e751c64",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"# Build information & package versions"
@@ -11,7 +11,7 @@
1111
{
1212
"cell_type": "code",
1313
"execution_count": null,
14-
"id": "1ebc35f3-6446-4d5b-972b-589130c009d1",
14+
"id": "1",
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -22,7 +22,7 @@
2222
{
2323
"cell_type": "code",
2424
"execution_count": null,
25-
"id": "39094c00-8ea2-4592-9f45-cc2627759612",
25+
"id": "2",
2626
"metadata": {},
2727
"outputs": [],
2828
"source": [

oggm-edu/edu_intro.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@
702702
"name": "python",
703703
"nbconvert_exporter": "python",
704704
"pygments_lexer": "ipython3",
705-
"version": "3.11.4"
705+
"version": "3.12.4"
706706
},
707707
"toc": {
708708
"base_numbering": 1,

oggm-edu/glacier_water_resources.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@
809809
"name": "python",
810810
"nbconvert_exporter": "python",
811811
"pygments_lexer": "ipython3",
812-
"version": "3.11.11"
812+
"version": "3.12.4"
813813
},
814814
"toc": {
815815
"base_numbering": 1,

0 commit comments

Comments
 (0)