Skip to content

[pull] main from ProjectPythia:main #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Feb 10, 2025
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1cb0512
Fix publish-site.yaml (#459)
erogluorhan Sep 17, 2024
82da0b8
Update resource_gallery.yaml (#461)
erogluorhan Sep 18, 2024
6d650b0
Switch link checker to miniforge (#463)
brian-rose Oct 2, 2024
b2e33ae
add pangeo showcase talk (#464)
brian-rose Oct 2, 2024
e4cd13a
[pre-commit.ci] pre-commit autoupdate (#465)
pre-commit-ci[bot] Oct 8, 2024
edb91d1
Remove cname input to deploy-book workflow (#466)
brian-rose Nov 8, 2024
ea3f5f4
[pre-commit.ci] pre-commit autoupdate (#467)
pre-commit-ci[bot] Nov 12, 2024
3729e1a
Update resource gallery (#468)
jukent Dec 9, 2024
2ea38e8
Update resource gallery (#475)
jukent Dec 12, 2024
0870938
Fix css for dark mode (#478)
kratzert Dec 17, 2024
2b4f524
BinderHub maintenance 12/19/2024 post (#479)
ktyle Dec 19, 2024
bac09f8
Remove Dec. 23 JS2 Maintenance alert (#480)
ktyle Dec 23, 2024
b8b3113
1/6-1/9 JS2 maintenance alert (#481)
ktyle Dec 31, 2024
cc40e83
Remove Jan. 6-9 Maintenance alert (#483)
ktyle Jan 8, 2025
5ca1254
Update CODEOFCONDUCT.md to provide a clear way of reporting instances…
erogluorhan Jan 8, 2025
9e5e8ba
Blog post with new cookbook roundup (#484)
brian-rose Jan 11, 2025
a20d6d3
Update resource_gallery.yaml (#486)
jukent Jan 11, 2025
b8ae956
Jan. 20 2025 BinderHub maintenance (#488)
ktyle Jan 20, 2025
57661ca
Remove maintenance banner; fix cookbook banner (#489)
brian-rose Jan 23, 2025
3449fc1
[pre-commit.ci] pre-commit autoupdate (#490)
pre-commit-ci[bot] Jan 28, 2025
4c013ff
[pre-commit.ci] pre-commit autoupdate (#492)
pre-commit-ci[bot] Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-site.yaml
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ jobs:
with:
name: repo-zip
path: .
include-hidden-files: 'true'

build:
needs: automate-metrics
@@ -47,5 +48,4 @@ jobs:
needs: build
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
with:
cname: projectpythia.org
publish_dir: 'portal/_build/html'
8 changes: 3 additions & 5 deletions .github/workflows/sphinx-link-checker.yaml
Original file line number Diff line number Diff line change
@@ -33,14 +33,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: "3.10" # binderbot is failing with python 3.11
activate-environment: ${{ inputs.environment_name }}
use-mamba: true

- name: Set cache date
if: inputs.use_cached_environment == 'true'
@@ -60,8 +58,8 @@ jobs:
(inputs.use_cached_environment != 'true'
|| steps.cache.outputs.cache-hit != 'true')
run: |
mamba env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
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
conda env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
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

- name: Check external links
run: |
1 change: 0 additions & 1 deletion .github/workflows/trigger-preview.yaml
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ jobs:
artifact_name: book-zip-${{ needs.find-pull-request.outputs.number }}
destination_dir: _preview/${{ needs.find-pull-request.outputs.number }} # deploy to subdirectory labeled with PR number
is_preview: 'true'
cname: projectpythia.org
publish_dir: 'portal/_build/html'

preview-comment:
9 changes: 7 additions & 2 deletions .github/workflows/update-resource-gallery.yaml
Original file line number Diff line number Diff line change
@@ -95,10 +95,15 @@ jobs:
resource_gallery_file = 'portal/resource_gallery.yaml'

with open(submission_file, 'r') as file:
data = json.load(file)
new_data = json.load(file)

with open(resource_gallery_file, 'r') as yaml_file:
existing_data = yaml.load(yaml_file, Loader=yaml.SafeLoader) or []

existing_data.append(new_data)

with open(resource_gallery_file, 'w') as yaml_file:
yaml.dump(data, yaml_file)
yaml.dump(existing_data, yaml_file, default_flow_style=False)

- name: Run pre-commit hooks
run: |
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -10,7 +10,7 @@ repos:
- id: double-quote-string-fixer

- repo: https://github.com/psf/black
rev: 24.8.0
rev: 25.1.0
hooks:
- id: black

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

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.7
rev: 1.9.1
hooks:
- id: nbqa-black
- id: nbqa-pyupgrade
6 changes: 5 additions & 1 deletion CODEOFCONDUCT.md
Original file line number Diff line number Diff line change
@@ -43,7 +43,11 @@ Project administrators are responsible for clarifying the standards of acceptabl

## Reporting

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.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the @ProjectPythia/core GitHub handle and/or projectpythia@ucar.edu 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.

All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

## Consequences

45 changes: 32 additions & 13 deletions portal/_static/custom.css
Original file line number Diff line number Diff line change
@@ -3,10 +3,13 @@
}

.bd-main .bd-content .bd-article-container {
max-width: 100%; /* default is 60em */
max-width: 100%;
/* default is 60em */
}

.bd-page-width {
max-width: 100%; /* default is 88rem */
max-width: 100%;
/* default is 88rem */
}

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

main.banner-main #project-pythia p {
font-size: 1.4rem; /* default: 1.25rem * /
font-size: 1.4rem;
/* default: 1.25rem * /
/* font-weight: 700; default: 300 */
}

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

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

html[data-theme="dark"] h1.display-1 {
color: white;
/* Set a light color for text throughout in dark mode */
html[data-theme="dark"] body {
color: #e0e0e0;
/* Light gray */
}

html[data-them="dark"] h4.display-4.p-0 {
color: black !important;
/* Ensure links are visible */
html[data-theme="dark"] a {
color: #b0c4de;
/* Light blue */
}

/* Target specific elements that need adjustment */
html[data-theme="dark"] .sd-card-body.docutils {
background-color: white;
}

html[data-theme="dark"] .container p {
color: black !important;
background-color: #202020;
/* Darker gray background for cards */
color: #e0e0e0;
/* Light gray text in cards */
}

/* Adjust headings if necessary */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
color: #f5f5f5;
/* Almost white for headings */
}
Binary file added portal/_static/images/posts/IMG_5686.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added portal/_static/images/posts/IMG_5854.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added portal/_static/images/posts/IMG_6055.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added portal/_static/images/posts/IMG_6546.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions portal/about.md
Original file line number Diff line number Diff line change
@@ -63,6 +63,7 @@ To learn more about Project Pythia and its history, see this list of presentatio

| Forum | Date | Presenter | Format | Title (with link) |
| --- | --- | --- | --- | --- |
| 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) |
| Ocean Sciences | 2024-02 | Brian Rose | slides | [The Project Pythia Cookbook Initiative](https://docs.google.com/presentation/d/1tvABElX-0CgiuzMfY7XFY-gsXzGUXqWV6k2qJeTw5bk/edit?usp=sharing) |
| 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) |
| 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) |
8 changes: 8 additions & 0 deletions portal/index.md
Original file line number Diff line number Diff line change
@@ -9,9 +9,17 @@

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

<br><br>

<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; ">
Round-up of new Cookbooks from our 2024 Cook-off hackathon!
</a>
<br>

<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);">
Donate to support Project Pythia!
</a>
<br>

[Project Pythia](about) is the education working group for [Pangeo](https://pangeo.io)
and is an educational resource for the entire geoscience community.
12 changes: 12 additions & 0 deletions portal/posts/binderhub_status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
blogpost: true
date: Jan 20, 2025
author: Kevin Tyle
tags: ["binderhub", "maintenance"]
---

# binder.projectpythia.org Maintenance

Our [BinderHub](https://binder.projectpythia.org) will be offline from **1400 UTC 20 Jan 2025** through **1500 UTC 20 Jan 2025**.

Our [alternate BinderHub](https://binder.pythia.2i2c.cloud) will be available as normal during that time.
Loading