diff --git a/.github/workflows/build-pages.yml b/.github/workflows/build-pages.yml index b96fb1ba..419d4b1f 100644 --- a/.github/workflows/build-pages.yml +++ b/.github/workflows/build-pages.yml @@ -14,7 +14,7 @@ on: workflow_dispatch: inputs: fresh_run: - description: "Run notebooks from scratch and force latest OGGM" + description: "Clear cache and run notebooks from scratch" type: boolean required: false default: false @@ -23,13 +23,13 @@ jobs: build_pages: name: Build Pages runs-on: ubuntu-latest - container: ghcr.io/oggm/oggm:latest + container: ghcr.io/oggm/oggm:879bee363c30eb26e3d55a246e6486191fbe0e78 steps: - name: Checkout uses: actions/checkout@v6 - name: Fix git permission check run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - - name: Cache + - name: Downloads cache uses: TimoRoth/cache@re-eval-key with: path: /github/home/OGGM/download_cache @@ -50,7 +50,6 @@ jobs: key: jupyter-cache-${{ github.ref_name }}-${{ hashFiles('_config.yml', '_toc.yml', 'requirements.txt', 'book/**/*.md', 'notebooks/**/*.ipynb') }} restore-keys: | jupyter-cache-${{ github.ref_name }}- - jupyter-cache- - name: Fresh run setup if: ${{ github.event_name == 'workflow_dispatch' && inputs.fresh_run }} run: | diff --git a/_config.yml b/_config.yml index f29c4ac4..d04bfa0e 100755 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ title: OGGM tutorials # The title of the book. Will be placed in the left navbar. author: OGGM e.V. and OGGM Contributors # The author of the book copyright: "2014-2025" # Copyright year to be placed in the footer -logo: img/logo.png # A path to the book logo +logo: img/celebrations/oggm_logo_pride.png # A path to the book logo repository: url: https://github.com/OGGM/tutorials path_to_book: . @@ -23,7 +23,8 @@ html: use_repository_button: true use_issues_button: true use_edit_page_button: true - announcement: "" + # announcement: | + #
How do you use OGGM? Tell us by filling this short survey. Thanks for your contribution!
extra_footer: |These notebooks are licensed under a BSD-3-Clause license. diff --git a/_static/custom.css b/_static/custom.css index e1d1c1e3..34545361 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -5,18 +5,44 @@ html { --pst-font-size-h4: 1.0em; /* Default: ? */ } -.announcement { - color: white !important; - padding: 0.5em 1em; +.announcement, +.bd-header-announcement { + background: linear-gradient(90deg, #0b4f6c, #147a63); + color: #fff; +} + +.bd-header-announcement .bd-header-announcement__content { + max-width: 72rem; + margin: 0 auto; + padding: 0.45rem 1rem; +} + +.bd-header-announcement p { margin: 0; - font-weight: 500; + font-size: 1.1rem; + font-weight: 700; } -.announcement a { - color: white !important; +.bd-header-announcement a, +.bd-header-announcement a:visited { + display: inline-block; + margin: 0 0.2rem; + padding: 0.05rem 0.35rem; + border-radius: 0.35rem; + color: #fff; + background: rgba(255, 255, 255, 0.14); + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38); text-decoration: underline; + text-decoration-color: rgba(255, 255, 255, 0.85); + text-decoration-thickness: 0.14em; + text-underline-offset: 0.16em; } -.announcement strong { - font-weight: 700; +.bd-header-announcement a:hover, +.bd-header-announcement a:focus, +.bd-header-announcement a:focus-visible { + color: #fff; + background: rgba(255, 255, 255, 0.24); + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); + text-decoration-color: #fff; } diff --git a/img/celebrations/oggm_logo_aid.png b/img/celebrations/oggm_logo_aid.png new file mode 100644 index 00000000..a508c99c Binary files /dev/null and b/img/celebrations/oggm_logo_aid.png differ diff --git a/img/celebrations/oggm_logo_chinesenewyear.png b/img/celebrations/oggm_logo_chinesenewyear.png new file mode 100644 index 00000000..0b5c997e Binary files /dev/null and b/img/celebrations/oggm_logo_chinesenewyear.png differ diff --git a/img/celebrations/oggm_logo_christmas.png b/img/celebrations/oggm_logo_christmas.png new file mode 100644 index 00000000..c4edb285 Binary files /dev/null and b/img/celebrations/oggm_logo_christmas.png differ diff --git a/img/celebrations/oggm_logo_disabilityday.png b/img/celebrations/oggm_logo_disabilityday.png new file mode 100644 index 00000000..8516ef93 Binary files /dev/null and b/img/celebrations/oggm_logo_disabilityday.png differ diff --git a/img/celebrations/oggm_logo_diwali.png b/img/celebrations/oggm_logo_diwali.png new file mode 100644 index 00000000..2db75d48 Binary files /dev/null and b/img/celebrations/oggm_logo_diwali.png differ diff --git a/img/celebrations/oggm_logo_pride.png b/img/celebrations/oggm_logo_pride.png new file mode 100644 index 00000000..6fe2982c Binary files /dev/null and b/img/celebrations/oggm_logo_pride.png differ diff --git a/img/celebrations/oggm_logo_womeninscience.png b/img/celebrations/oggm_logo_womeninscience.png new file mode 100644 index 00000000..a37a1ffe Binary files /dev/null and b/img/celebrations/oggm_logo_womeninscience.png differ diff --git a/img/celebrations/oggm_logo_worldglacierday.png b/img/celebrations/oggm_logo_worldglacierday.png new file mode 100644 index 00000000..d3f49584 Binary files /dev/null and b/img/celebrations/oggm_logo_worldglacierday.png differ diff --git a/notebooks/tutorials/dem_sources.ipynb b/notebooks/tutorials/dem_sources.ipynb index 024b1eb1..2a158b0b 100644 --- a/notebooks/tutorials/dem_sources.ipynb +++ b/notebooks/tutorials/dem_sources.ipynb @@ -11,7 +11,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "There are a number of datasets available [out-of-the box](https://rgitools.readthedocs.io/en/latest/dems.html) in OGGM. This Notebook will show you how to download the original sources and create the local glacier centered map.\n", + "There are a number of datasets available out-of-the box in OGGM. This Notebook will show you how to download the original sources and create the local glacier centered map.\n", "It is also possible to use your own DEM data in OGGM." ] }, @@ -178,6 +178,7 @@ "metadata": {}, "source": [ "## Register for online datasets\n", + "\n", "The default DEM source for low and mid-latitudes (60°S-60°N), **NASADEM**, requires a user account to download data, so you need to register at [NASA Earthdata](https://urs.earthdata.nasa.gov/). There are other DEM sources where a registration is necessary; for **ASTGTMV3** at [NASA Earthdata](https://urs.earthdata.nasa.gov/), for **TanDEM-X** at [DLR](https://sso.eoc.dlr.de/tdm90/selfservice/), and for **COPDEM** at [spacedata.copernicus.eu/](https://dataspace.copernicus.eu/).\n", "\n", "After that you can use the command line functionality `oggm_netrc_credentials` to store your user credentials in a local `~/.netrc` file. Your user credentials are only stored locally and are only used by the download function for authentification with the original DEM source. **Credentials are not needed if you use the RGI-TOPO data (see below).**" @@ -473,13 +474,6 @@ "- return to the [OGGM documentation](https://docs.oggm.org)\n", "- back to the [table of contents](../welcome.ipynb)" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/notebooks/tutorials/runoff_sensitivity.ipynb b/notebooks/tutorials/runoff_sensitivity.ipynb index 1d85d12d..265a2cd2 100644 --- a/notebooks/tutorials/runoff_sensitivity.ipynb +++ b/notebooks/tutorials/runoff_sensitivity.ipynb @@ -101,7 +101,7 @@ "id": "8", "metadata": {}, "source": [ - "# An Introduction to Sensitivity Analysis\n", + "## An Introduction to Sensitivity Analysis\n", "\n", "**Sensitivity Analysis** investigates how the variation in the output of a numerical model can be attributed to variations of its input factors ([Pianosi et al., (2016)](https://www.sciencedirect.com/science/article/pii/S1364815216300287)).\n", "\n", @@ -115,7 +115,7 @@ "id": "9", "metadata": {}, "source": [ - "# Simple Sensitivity Analysis Experiment" + "### Simple Sensitivity Analysis Experiment" ] }, { @@ -123,7 +123,7 @@ "id": "10", "metadata": {}, "source": [ - "### Temperature Bias" + "#### Temperature Bias" ] }, { @@ -251,7 +251,7 @@ "id": "16", "metadata": {}, "source": [ - "### Precipitation Factor" + "#### Precipitation Factor" ] }, { @@ -378,7 +378,7 @@ "id": "22", "metadata": {}, "source": [ - "### Melt Factor" + "#### Melt Factor" ] }, {