From f3400647b0474a31dc5027f87f89385214d44e17 Mon Sep 17 00:00:00 2001 From: Brian Rose Date: Tue, 24 Jun 2025 14:52:43 -0400 Subject: [PATCH 1/4] myst.yml --- myst.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/myst.yml b/myst.yml index f80ed4378..321b20af1 100644 --- a/myst.yml +++ b/myst.yml @@ -88,3 +88,38 @@ project: - file: appendix/how-to-contribute.md children: - file: appendix/template.ipynb + +site: + parts: + footer: | + :::::{grid} 4 + :class: items-center + + ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/UAlbany.svg + :alt: UAlbany Logo + ``` + + ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-NCAR.png + :alt: NCAR Logo + ``` + + ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-Unidata.png + :alt: Unidata Logo + ``` + + ```{image} https://raw.githubusercontent.com/2i2c-org/2i2c-org.github.io/main/assets/media/logo.svg + :alt: 2i2c Logo + ``` + + ::::: + + :::::{div} + :class: flex items-center gap-4 text-disclaimer + + ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/nsf.jpg + :alt: NSF Logo + :height: 60px + ``` + + The [Project Pythia website](https://projectpythia.org), [Pythia Foundations](https://foundations.projectpythia.org), and the shared [Cookbook](https://cookbooks.projectpythia.org) infrastructure are based upon work supported by the National Science Foundation awards 2026899, 2026863, 2324302, 2324303 and 2324304. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. + ::::: From bbd7bf6c2ba5839996cad164eac279a60c71b19e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 24 Jun 2025 19:02:38 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- myst.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myst.yml b/myst.yml index 321b20af1..138c34c55 100644 --- a/myst.yml +++ b/myst.yml @@ -106,11 +106,11 @@ site: ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-Unidata.png :alt: Unidata Logo ``` - + ```{image} https://raw.githubusercontent.com/2i2c-org/2i2c-org.github.io/main/assets/media/logo.svg :alt: 2i2c Logo ``` - + ::::: :::::{div} From 8e3e231a9a2a9ec87a7539aa151130647090ab8b Mon Sep 17 00:00:00 2001 From: Brian Rose Date: Tue, 24 Jun 2025 16:17:58 -0400 Subject: [PATCH 3/4] text tweak --- myst.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myst.yml b/myst.yml index 138c34c55..dbe9c255d 100644 --- a/myst.yml +++ b/myst.yml @@ -121,5 +121,5 @@ site: :height: 60px ``` - The [Project Pythia website](https://projectpythia.org), [Pythia Foundations](https://foundations.projectpythia.org), and the shared [Cookbook](https://cookbooks.projectpythia.org) infrastructure are based upon work supported by the National Science Foundation awards 2026899, 2026863, 2324302, 2324303 and 2324304. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. + The [Project Pythia website](https://projectpythia.org), [Pythia Foundations](https://foundations.projectpythia.org), and the shared [Pythia Cookbook](https://cookbooks.projectpythia.org) infrastructure are based upon work supported by the National Science Foundation awards 2026899, 2026863, 2324302, 2324303 and 2324304. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. ::::: From 482563a37ffcc4a5983e599a026406c0925916a3 Mon Sep 17 00:00:00 2001 From: Drew Camron Date: Mon, 30 Jun 2025 12:33:30 -0600 Subject: [PATCH 4/4] Refactor content divs and footer path Moves footer to external markdown (for now, can live in myst.yml if needed for upstream.) Refactors logo row and NSF row to flex rows with responsive widths and matching heights. --- footer.md | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ myst.yml | 33 +--------------------------- 2 files changed, 67 insertions(+), 32 deletions(-) create mode 100644 footer.md diff --git a/footer.md b/footer.md new file mode 100644 index 000000000..a3dc2d11a --- /dev/null +++ b/footer.md @@ -0,0 +1,66 @@ + +:::::{div} +:class: mx-auto flex flex-col md:flex-row md:items-stretch gap-4 p-4 + +% example of dark-mode only div +````{div} +:class: flex-1 min-w-0 h-64 items-center justify-center hidden dark:block +```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/UAlbany.svg +:alt: UAlbany Logo +:align: center +``` +```` + +% example of light-mode only div +````{div} +:class: flex flex-1 min-w-0 h-64 items-center justify-center dark:hidden +```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/UAlbany.svg +:alt: UAlbany Logo +:align: center +``` +```` + +````{div} +:class: flex flex-1 min-w-0 h-64 items-center justify-center +```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-NCAR.png +:alt: NCAR Logo +:align: center +``` +```` + +````{div} +:class: flex flex-1 min-w-0 h-64 items-center justify-center +```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-Unidata.png +:alt: Unidata Logo +:align: center +``` +```` + +````{div} +:class: flex flex-1 min-w-0 h-64 items-center justify-center +```{image} https://raw.githubusercontent.com/2i2c-org/2i2c-org.github.io/main/assets/media/logo.svg +:alt: 2i2c Logo +:align: center +:width: 64 +``` +````{div} +::::: + + +:::::{div} +:class: mx-auto flex flex-col md:flex-row md:items-stretch gap-4 p-4 + +% TODO: I think this image width spec could be handled better by the divs - not sure +````{div} +:class: flex items-center justify-center +```{image}https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/nsf.jpg +:alt: NSF Logo +:width: 100 +``` +```` + +````{div} +:class: flex-1 +The [Project Pythia website](https://projectpythia.org), [Pythia Foundations](https://foundations.projectpythia.org), and the shared [Pythia Cookbook](https://cookbooks.projectpythia.org) infrastructure are based upon work supported by the National Science Foundation awards 2026899, 2026863, 2324302, 2324303 and 2324304. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. +```` +::::: diff --git a/myst.yml b/myst.yml index dbe9c255d..c283eabce 100644 --- a/myst.yml +++ b/myst.yml @@ -91,35 +91,4 @@ project: site: parts: - footer: | - :::::{grid} 4 - :class: items-center - - ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/UAlbany.svg - :alt: UAlbany Logo - ``` - - ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-NCAR.png - :alt: NCAR Logo - ``` - - ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-Unidata.png - :alt: Unidata Logo - ``` - - ```{image} https://raw.githubusercontent.com/2i2c-org/2i2c-org.github.io/main/assets/media/logo.svg - :alt: 2i2c Logo - ``` - - ::::: - - :::::{div} - :class: flex items-center gap-4 text-disclaimer - - ```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/nsf.jpg - :alt: NSF Logo - :height: 60px - ``` - - The [Project Pythia website](https://projectpythia.org), [Pythia Foundations](https://foundations.projectpythia.org), and the shared [Pythia Cookbook](https://cookbooks.projectpythia.org) infrastructure are based upon work supported by the National Science Foundation awards 2026899, 2026863, 2324302, 2324303 and 2324304. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. - ::::: + footer: footer.md