Skip to content

Commit 5335b8c

Browse files
authored
Merge pull request #144 from ProjectPythia/main
[pull] main from ProjectPythia:main
2 parents dffd172 + 4c013ff commit 5335b8c

16 files changed

+269
-75
lines changed

.github/workflows/publish-site.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
with:
3131
name: repo-zip
3232
path: .
33+
include-hidden-files: 'true'
3334

3435
build:
3536
needs: automate-metrics
@@ -47,5 +48,4 @@ jobs:
4748
needs: build
4849
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
4950
with:
50-
cname: projectpythia.org
5151
publish_dir: 'portal/_build/html'

.github/workflows/sphinx-link-checker.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v3
3535

36-
- name: Setup Mambaforge
36+
- name: Setup Miniforge
3737
uses: conda-incubator/setup-miniconda@v2
3838
with:
39-
miniforge-variant: Mambaforge
4039
miniforge-version: latest
4140
python-version: "3.10" # binderbot is failing with python 3.11
4241
activate-environment: ${{ inputs.environment_name }}
43-
use-mamba: true
4442

4543
- name: Set cache date
4644
if: inputs.use_cached_environment == 'true'
@@ -60,8 +58,8 @@ jobs:
6058
(inputs.use_cached_environment != 'true'
6159
|| steps.cache.outputs.cache-hit != 'true')
6260
run: |
63-
mamba env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
64-
mamba install -c conda-forge sphinxcontrib-applehelp=1.0.4 sphinxcontrib-devhelp=1.0.2 sphinxcontrib-htmlhelp=2.0.1 sphinxcontrib-qthelp=1.0.3 sphinxcontrib-serializinghtml=1.1.5
61+
conda env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
62+
conda install -c conda-forge sphinxcontrib-applehelp=1.0.4 sphinxcontrib-devhelp=1.0.2 sphinxcontrib-htmlhelp=2.0.1 sphinxcontrib-qthelp=1.0.3 sphinxcontrib-serializinghtml=1.1.5
6563
6664
- name: Check external links
6765
run: |

.github/workflows/trigger-preview.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
artifact_name: book-zip-${{ needs.find-pull-request.outputs.number }}
2020
destination_dir: _preview/${{ needs.find-pull-request.outputs.number }} # deploy to subdirectory labeled with PR number
2121
is_preview: 'true'
22-
cname: projectpythia.org
2322
publish_dir: 'portal/_build/html'
2423

2524
preview-comment:

.github/workflows/update-resource-gallery.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,15 @@ jobs:
9595
resource_gallery_file = 'portal/resource_gallery.yaml'
9696
9797
with open(submission_file, 'r') as file:
98-
data = json.load(file)
98+
new_data = json.load(file)
99+
100+
with open(resource_gallery_file, 'r') as yaml_file:
101+
existing_data = yaml.load(yaml_file, Loader=yaml.SafeLoader) or []
102+
103+
existing_data.append(new_data)
99104
100105
with open(resource_gallery_file, 'w') as yaml_file:
101-
yaml.dump(data, yaml_file)
106+
yaml.dump(existing_data, yaml_file, default_flow_style=False)
102107
103108
- name: Run pre-commit hooks
104109
run: |

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -10,7 +10,7 @@ repos:
1010
- id: double-quote-string-fixer
1111

1212
- repo: https://github.com/psf/black
13-
rev: 24.8.0
13+
rev: 25.1.0
1414
hooks:
1515
- id: black
1616

@@ -25,12 +25,12 @@ repos:
2525
- id: flake8
2626

2727
- repo: https://github.com/PyCQA/isort
28-
rev: 5.13.2
28+
rev: 6.0.0
2929
hooks:
3030
- id: isort
3131

3232
- repo: https://github.com/nbQA-dev/nbQA
33-
rev: 1.8.7
33+
rev: 1.9.1
3434
hooks:
3535
- id: nbqa-black
3636
- id: nbqa-pyupgrade

CODEOFCONDUCT.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ Project administrators are responsible for clarifying the standards of acceptabl
4343

4444
## Reporting
4545

46-
Instances of unacceptable behavior can be brought to the attention of the project administrator(s) who may take any action as outlined in the Consequences section below.
46+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the @ProjectPythia/core GitHub handle and/or [email protected] as the community leaders in charge of these can view and manage the reported content, and hence are responsible for enforcement as outlined in the Consequences section below.
47+
48+
All complaints will be reviewed and investigated promptly and fairly.
49+
50+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
4751

4852
## Consequences
4953

portal/_static/custom.css

+32-13
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
}
44

55
.bd-main .bd-content .bd-article-container {
6-
max-width: 100%; /* default is 60em */
6+
max-width: 100%;
7+
/* default is 60em */
78
}
9+
810
.bd-page-width {
9-
max-width: 100%; /* default is 88rem */
11+
max-width: 100%;
12+
/* default is 88rem */
1013
}
1114

1215
.sd-card-footer {
@@ -20,7 +23,8 @@ main.banner-main #project-pythia {
2023
}
2124

2225
main.banner-main #project-pythia p {
23-
font-size: 1.4rem; /* default: 1.25rem * /
26+
font-size: 1.4rem;
27+
/* default: 1.25rem * /
2428
/* font-weight: 700; default: 300 */
2529
}
2630

@@ -163,7 +167,7 @@ details.sd-dropdown {
163167
box-shadow: none !important;
164168
}
165169

166-
details.sd-dropdown summary.sd-card-header + div.sd-summary-content {
170+
details.sd-dropdown summary.sd-card-header+div.sd-summary-content {
167171
background-color: white !important;
168172
border: 0.2rem solid var(--pst-sd-dropdown-color) !important;
169173
border-radius: calc(.25rem - 1px);
@@ -195,18 +199,33 @@ p {
195199
margin-bottom: 1rem;
196200
}
197201

198-
html[data-theme="dark"] h1.display-1 {
199-
color: white;
202+
/* Set a light color for text throughout in dark mode */
203+
html[data-theme="dark"] body {
204+
color: #e0e0e0;
205+
/* Light gray */
200206
}
201207

202-
html[data-them="dark"] h4.display-4.p-0 {
203-
color: black !important;
208+
/* Ensure links are visible */
209+
html[data-theme="dark"] a {
210+
color: #b0c4de;
211+
/* Light blue */
204212
}
205213

214+
/* Target specific elements that need adjustment */
206215
html[data-theme="dark"] .sd-card-body.docutils {
207-
background-color: white;
208-
}
209-
210-
html[data-theme="dark"] .container p {
211-
color: black !important;
216+
background-color: #202020;
217+
/* Darker gray background for cards */
218+
color: #e0e0e0;
219+
/* Light gray text in cards */
220+
}
221+
222+
/* Adjust headings if necessary */
223+
html[data-theme="dark"] h1,
224+
html[data-theme="dark"] h2,
225+
html[data-theme="dark"] h3,
226+
html[data-theme="dark"] h4,
227+
html[data-theme="dark"] h5,
228+
html[data-theme="dark"] h6 {
229+
color: #f5f5f5;
230+
/* Almost white for headings */
212231
}
2.66 MB
Loading
3.2 MB
Loading
2.53 MB
Loading
3.47 MB
Loading

portal/about.md

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ To learn more about Project Pythia and its history, see this list of presentatio
6363

6464
| Forum | Date | Presenter | Format | Title (with link) |
6565
| --- | --- | --- | --- | --- |
66+
| Pangeo Showcase | 2024-10 | Brian Rose | slides | [Project Pythia Cookbooks: Challenges and progress in breaking down barriers to Open Science](https://docs.google.com/presentation/d/1-RS9DviJnOzwlRMNv1786UMYJ8PmQU-ohu0vo51NM0Q/edit?usp=sharing) |
6667
| Ocean Sciences | 2024-02 | Brian Rose | slides | [The Project Pythia Cookbook Initiative](https://docs.google.com/presentation/d/1tvABElX-0CgiuzMfY7XFY-gsXzGUXqWV6k2qJeTw5bk/edit?usp=sharing) |
6768
| AMS | 2024-01 | Drew Camron | slides | [Project Pythia: Three Years of Community Building Through Open Source Technology and Education](https://drive.google.com/file/d/1nZfWWozBKQzVCYpKUqWPX51MEgSAhgfM/view?usp=sharing) |
6869
| AMS | 2024-01 | Kevin Tyle | slides | [Cooking up a Storm with Project Pythia](https://docs.google.com/presentation/d/1zMsoCg1RMHGZDuLLV0QsZB6NwKE7CKo5_8iFAGDGj6o/edit?usp=drive_link) |

portal/index.md

+8
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@
99

1010
<span style="font-size: 2.6rem;">An education and training hub for the geoscientific Python community</span>
1111

12+
<br><br>
13+
14+
<a href="posts/new-cookbooks.html" role="button" class="btn btn-light btn-lg" style="display: flex; align-items: center; font-weight: 600; text-decoration: none; ">
15+
Round-up of new Cookbooks from our 2024 Cook-off hackathon!
16+
</a>
17+
<br>
18+
1219
<a href="posts/fundraiser.html" role="button" class="btn btn-light btn-lg" style="display: flex; align-items: center; font-weight: 600; text-decoration: none; background-color: #ccc; border: rgba(var(--spt-color-dark), 1);">
1320
Donate to support Project Pythia!
1421
</a>
22+
<br>
1523

1624
[Project Pythia](about) is the education working group for [Pangeo](https://pangeo.io)
1725
and is an educational resource for the entire geoscience community.

portal/posts/binderhub_status.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
blogpost: true
3+
date: Jan 20, 2025
4+
author: Kevin Tyle
5+
tags: ["binderhub", "maintenance"]
6+
---
7+
8+
# binder.projectpythia.org Maintenance
9+
10+
Our [BinderHub](https://binder.projectpythia.org) will be offline from **1400 UTC 20 Jan 2025** through **1500 UTC 20 Jan 2025**.
11+
12+
Our [alternate BinderHub](https://binder.pythia.2i2c.cloud) will be available as normal during that time.

0 commit comments

Comments
 (0)