Skip to content

Commit 4f9754b

Browse files
authored
fix some links, add error rules, remove footer (#566)
* fix some links, add error rules, remove footer * missing ) * make metrics key more robust * add raise * rm changes to metrics.md * try exclude metrics.md * remove strict from PR * add metrics.md error-rules * add comment back in * one more link * English version
1 parent 1ace195 commit 4f9754b

7 files changed

Lines changed: 20 additions & 35 deletions

File tree

.github/workflows/trigger-site-build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
base_url: '/_preview/${{ github.event.number }}'
1111
path_to_notebooks: 'portal'
1212
# Other input options are possible, see ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml
13+
build_command: 'myst build --execute --html'

CODEOFCONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ Projects that adopt this Code of Conduct need to stay up to date with UCAR's Con
8686

8787
## Attribution
8888

89-
This Code of Conduct was originally adapted from the [Contributor Covenant](http://contributor-covenant.org/version/1/4), version 1.4. We then aligned it with the UCAR Participant Code of Conduct, which also borrows from the American Geophysical Union (AGU) Code of Conduct. The UCAR Participant Code of Conduct applies to both UCAR employees as well as participants in activities run by UCAR. The original version of this for all software projects that have strong management from UCAR or UCAR staff is available on the UCAR website at [https://doi.org/10.5065/6w2c-a132](https://doi.org/10.5065/6w2c-a132). The date that it was adopted by this project was September 11, 2023. When responding to complaints, UCAR HR will do so based on the latest published version. Therefore, any project-specific changes should follow the Process for Changes section above.
89+
This Code of Conduct was originally adapted from the [Contributor Covenant](https://www.contributor-covenant.org/version/1/4/code-of-conduct/), version 1.4. We then aligned it with the UCAR Participant Code of Conduct, which also borrows from the American Geophysical Union (AGU) Code of Conduct. The UCAR Participant Code of Conduct applies to both UCAR employees as well as participants in activities run by UCAR. The original version of this for all software projects that have strong management from UCAR or UCAR staff is available on the UCAR website at [https://doi.org/10.5065/6w2c-a132](https://doi.org/10.5065/6w2c-a132). The date that it was adopted by this project was September 11, 2023. When responding to complaints, UCAR HR will do so based on the latest published version. Therefore, any project-specific changes should follow the Process for Changes section above.
9090

9191
As an Equal Employment Opportunity Employer and recipient of federal funds, UCAR complies with Title VI, Title VII, and Title IX of the Civil Rights Act; the Rehabilitation Act of 1973, as amended, and the Age Discrimination in Employment Act of 1975, as amended. See [UCAR’s Nondiscrimination Statement](https://www.ucar.edu/who-we-are/ethics-integrity/nondiscrimination).

portal/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and [contributing new Cookbooks](https://projectpythia.org/cookbook-guide).
1313
Welcome! This is the main guide for contributing to Project Pythia.
1414
Project Pythia is an open community, and all contributions are
1515
welcome following our [Code of
16-
Conduct](https://projectpythia.org/code_of_conduct). All
16+
Conduct](https://projectpythia.org/codeofconduct/). All
1717
of the content for Project Pythia is hosted on GitHub in a number
1818
of different public repositories. From this document you can learn
1919
about the many ways that you can contribute to this community

portal/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Anyone can contribute to and participate in Project Pythia!
100100
We conduct all of our work in the open, and all of our work is Open Source Licensed.
101101
We welcome contributions from anyone in the community.
102102
Please see our [Contributor’s Guide](/contributing)
103-
for details on how you can get involved, our [Code of Conduct](https://github.com/projectpythia/projectpythia.github.io/blob/main/CODEOFCONDUCT.md) for an overview of contribution rules and responsibilities, and come see our work in the
103+
for details on how you can get involved, our [Code of Conduct](https://projectpythia.org/codeofconduct/) for an overview of contribution rules and responsibilities, and come see our work in the
104104
[ProjectPythia GitHub Organization](https://github.com/ProjectPythia).
105105

106106
(monthly-pythia-meetings)=

portal/myst.yml

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ project:
99
plugins:
1010
- type: executable
1111
path: src/blogpost.py
12+
error_rules:
13+
- rule: link-resolves
14+
severity: ignore
15+
keys:
16+
- 'chro@ucar.edu'
17+
- 'http://localhost:3000'
18+
- 'https://github.com/YOUR_USER_NAME/pythia-foundations'
19+
- rule: directive-known # The postlist directive is not recognized by the linter, but it works when the site is built
20+
severity: ignore
21+
- rule: image-format-optimizes # `metrics.md` has some large images that are not optimized
22+
severity: ignore
23+
- rule: container-children-valid # `metrics.md`` unexpected figure content of type output found in legend node, but works when the site is built
24+
severity: ignore
1225

1326
toc:
1427
- file: index.md
@@ -40,32 +53,3 @@ site:
4053
options:
4154
style: style.css
4255
analytics_google: G-T9KGMX7VHZ # Measurement ID or Tracking ID
43-
parts:
44-
footer: |
45-
:::::{grid} 3
46-
:class: items-center
47-
48-
49-
```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-NCAR.png
50-
:alt: NCAR Logo
51-
```
52-
53-
```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/NSF-Unidata.png
54-
:alt: Unidata Logo
55-
```
56-
57-
```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/UAlbany.svg
58-
:alt: UAlbany Logo
59-
```
60-
:::::
61-
62-
:::::{div}
63-
:class: flex items-center gap-4 text-disclaimer
64-
65-
```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/nsf.jpg
66-
:alt: NSF Logo
67-
:height: 60px
68-
```
69-
70-
This material is based upon work supported by the National Science Foundation under Grant Nos. 2026863 and 2026899. 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.
71-
:::::

portal/posts/2025/mystification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors: [jukent, brian-rose, dcamron, kafitzgerald]
66
tags: [myst]
77
---
88

9-
Project Pythia recently transitioned from a [Sphinx-based JupyterBook](https://jupyterbook.org/en/stable/intro.html) architecture to using [MyST Markdown](https://mystmd.org/), which serves as the foundation for the upcoming [JupyterBook 2](https://next.jupyterbook.org/)!
9+
Project Pythia recently transitioned from a [Sphinx-based JupyterBook](https://jupyter-book.readthedocs.io/v1/intro.html) architecture to using [MyST Markdown](https://mystmd.org/), which serves as the foundation for the upcoming [JupyterBook 2](https://jupyterbook.org/)!
1010

1111
## Our Motivation for MyST
1212
We began the process of transitioning to MyST in the summer of 2024 at the annual [Project Pythia Cook-off hackathon](https://projectpythia.org/posts/2025/new-cookbooks). At that event, members of the MyST team demonstrated the current [alpha-version of the technology](https://executablebooks.org/en/latest/blog/2024-06-14-project-pythia-mystmd/) and coached us through the boilerplate code necessary to make some of our key resources build with MyST.

portal/posts/2025/new-cookbooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Recently, [Steinman et al. (2022)](https://doi.org/10.1073/pnas.2120015119) used
8585
:align: left
8686
```
8787

88-
**Authors:** [Max Grover](@mgrover1), [Nathan Collier](@nocollier), [Carsten Ehbrecht](@cehbrecht), [Jacqueline Nugent](@jacnugent), and [Gerardo Rivera Tello](@griverat)
88+
**Authors:** [Max Grover](https://github.com/mgrover1), [Nathan Collier](https://github.com/nocollier), [Carsten Ehbrecht](https://github.com/cehbrecht), [Jacqueline Nugent](https://github.com/jacnugent), and [Gerardo Rivera Tello](https://github.com/griverat)
8989

9090
<doi:10.5281/zenodo.11663067>
9191

@@ -198,7 +198,7 @@ This Cookbook covers how to work with wavelets in Python. Wavelets are a powerfu
198198

199199
## Want to get involved?
200200

201-
<a role="button" class="btn btn-light btn-lg" style="display: flex; align-items: center; font-weight: 600; text-decoration: none; ">
201+
<a href="https://projectpythia.org/pythia-cookoff-2025/" role="button" class="btn btn-light btn-lg" style="display: flex; align-items: center; font-weight: 600; text-decoration: none; ">
202202
SAVE THE DATE! Project Pythia is hosting our next Cookbook Cook-off hackathon event at the NSF NCAR's Mesa Lab, August 5-8 2025.
203203
</a>
204204

0 commit comments

Comments
 (0)