From bfcb9e0e988c50f7203182cc658767a41c1dcdde Mon Sep 17 00:00:00 2001 From: Julia Kent <46687291+jukent@users.noreply.github.com> Date: Mon, 1 Apr 2024 15:46:49 -0600 Subject: [PATCH] Use new theme (#122) * new theme * execute_binder set to off * rm logo_link * analytics * cahe * indent jupyterhub url * fix link * fix link2 * fix link3 --- .gitignore | 1 + _config.yml | 25 ++++++++++++------- _static/custom.css | 6 +++++ environment.yml | 2 +- .../cacti-data-quality-example.ipynb | 10 +------- .../fastbarnes_interpolation_rhi.ipynb | 2 +- .../example-workflows/tracer-example.ipynb | 2 +- .../images/logos/NCAR-contemp-logo-blue.svg | 1 - .../NSF-NCAR_Lockup-UCAR-Dark_102523.svg | 1 + 9 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 _static/custom.css delete mode 100644 notebooks/images/logos/NCAR-contemp-logo-blue.svg create mode 100644 notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg diff --git a/.gitignore b/.gitignore index bba7017..801182d 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ __pycache__/ # Distribution / packaging .Python build/ +_build/ develop-eggs/ dist/ downloads/ diff --git a/_config.yml b/_config.yml index 425db4e..335ef0e 100644 --- a/_config.yml +++ b/_config.yml @@ -4,11 +4,10 @@ title: Radar Cookbook author: Max Grover, Zachary Sherman, Milind Sharma logo: notebooks/images/logos/pythia_logo-white-rtext.svg -copyright: '2023' +copyright: '2024' execute: - # To execute notebooks via a Binder instead, replace 'cache' with 'binder' - execute_notebooks: binder + execute_notebooks: cache timeout: 600 allow_errors: False # cells with expected failures must set the `raises-exception` cell tag @@ -40,6 +39,9 @@ sphinx: use_issues_button: true use_repository_button: true use_edit_page_button: true + use_fullscreen_button: true + analytics: + google_analytics_id: G-T52X8HNYE8 github_url: https://github.com/ProjectPythia twitter_url: https://twitter.com/project_pythia icon_links: @@ -51,10 +53,12 @@ sphinx: binderhub_url: https://binder.projectpythia.org notebook_interface: jupyterlab jupyterhub_url: https://jupyterhub.arm.gov - extra_navbar: | - Theme by Project Pythia.

- All code in Pythia Cookbooks is licensed under Apache 2.0. All other non-code content is licensed under Creative Commons BY 4.0 (CC BY 4.0).

- logo_link: https://projectpythia.org + logo: + link: https://projectpythia.org + navbar_start: + - navbar-logo + navbar_end: + - navbar-icon-links navbar_links: - name: Home url: https://projectpythia.org @@ -67,6 +71,9 @@ sphinx: - name: Community url: https://projectpythia.org/index.html#join-us footer_logos: - NCAR: notebooks/images/logos/NCAR-contemp-logo-blue.svg + NCAR: notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg Unidata: notebooks/images/logos/Unidata_logo_horizontal_1200x300.svg - UAlbany: notebooks/images/logos/UAlbany-A2-logo-purple-gold.svg \ No newline at end of file + UAlbany: notebooks/images/logos/UAlbany-A2-logo-purple-gold.svg + footer_start: + - footer-logos + - footer-info diff --git a/_static/custom.css b/_static/custom.css new file mode 100644 index 0000000..0c9948b --- /dev/null +++ b/_static/custom.css @@ -0,0 +1,6 @@ +.bd-main .bd-content .bd-article-container { + max-width: 100%; /* default is 60em */ + } + .bd-page-width { + max-width: 100%; /* default is 88rem */ + } diff --git a/environment.yml b/environment.yml index ee89b4e..e0ef73f 100644 --- a/environment.yml +++ b/environment.yml @@ -18,8 +18,8 @@ dependencies: - hvplot - datashader - panel + - sphinx-pythia-theme - pip - pip: - - sphinx-pythia-theme - fast-barnes-py - git+https://github.com/vlouf/eth_radar.git diff --git a/notebooks/example-workflows/cacti-data-quality-example.ipynb b/notebooks/example-workflows/cacti-data-quality-example.ipynb index ec6abf9..6aa9c0b 100644 --- a/notebooks/example-workflows/cacti-data-quality-example.ipynb +++ b/notebooks/example-workflows/cacti-data-quality-example.ipynb @@ -98,7 +98,7 @@ "### Use the ARM Live API to Download the Data, using ACT\n", "\n", "The Atmospheric Data Community Toolkit (ACT) has a helpful module to interface with the data server:\n", - "* [Download Data API](https://arm-doe.github.io/ACT/API/generated/act.discovery.download_data.html#act.discovery.download_data)" + "* [Download Data API](https://arm-doe.github.io/ACT/API/generated/act.discovery.download_arm_data.html)" ] }, { @@ -358,14 +358,6 @@ "* ACT:\n", " - Adam Theisen, Ken Kehoe, Zach Sherman, Bobby Jackson, Alyssa Sockol, Corey Godine, Max Grover, Jason Hemedinger, Jenni Kyrouac, Maxwell Levin, Michael Giansiracusa (2022). The Atmospheric Data Community Toolkit (ACT). Zenodo. DOI: https://doi.org/10.5281/zenodo.6712343" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "5eaa9e74-1f0f-4cff-a1db-fff4235004fc", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/notebooks/example-workflows/fastbarnes_interpolation_rhi.ipynb b/notebooks/example-workflows/fastbarnes_interpolation_rhi.ipynb index a11368b..4a912ed 100644 --- a/notebooks/example-workflows/fastbarnes_interpolation_rhi.ipynb +++ b/notebooks/example-workflows/fastbarnes_interpolation_rhi.ipynb @@ -112,7 +112,7 @@ "source": [ "## Grab Data\n", "We use the ARM Live API, accessible through ACT!\n", - "* [Download Data API](https://arm-doe.github.io/ACT/API/generated/act.discovery.download_data.html#act.discovery.download_data)\n", + "* [Download Data API](https://arm-doe.github.io/ACT/API/generated/act.discovery.download_arm_data.html)\n", "\n", "We are interested in the C-band radar, which is utilizing a cell-tracking algorithm, with the datastream\n", "- `houcsapr2cfrS2.a1`\n", diff --git a/notebooks/example-workflows/tracer-example.ipynb b/notebooks/example-workflows/tracer-example.ipynb index 22db866..fb9da0f 100644 --- a/notebooks/example-workflows/tracer-example.ipynb +++ b/notebooks/example-workflows/tracer-example.ipynb @@ -96,7 +96,7 @@ "### Use the ARM Live API to Download the Data, using ACT\n", "\n", "The Atmospheric Data Community Toolkit (ACT) has a helpful module to interface with the data server:\n", - "* [Download Data API](https://arm-doe.github.io/ACT/API/generated/act.discovery.download_data.html#act.discovery.download_data)" + "* [Download Data API](hhttps://arm-doe.github.io/ACT/API/generated/act.discovery.download_arm_data.html)" ] }, { diff --git a/notebooks/images/logos/NCAR-contemp-logo-blue.svg b/notebooks/images/logos/NCAR-contemp-logo-blue.svg deleted file mode 100644 index 3bcda63..0000000 --- a/notebooks/images/logos/NCAR-contemp-logo-blue.svg +++ /dev/null @@ -1 +0,0 @@ -NCAR-contemp-logo-blue.a diff --git a/notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg b/notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg new file mode 100644 index 0000000..538f8ec --- /dev/null +++ b/notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg @@ -0,0 +1 @@ +