Skip to content

Commit eec4865

Browse files
committed
2 parents dffd172 + 26064e3 commit eec4865

17 files changed

+270
-132
lines changed

.github/workflows/publish-site.yaml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 5 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 7 additions & 2 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,3 @@
11
# Code of Conduct
22

3-
## Our Pledge
4-
5-
We, as contributors, creators, stewards, and maintainers (participants), of Project Pythia pledge to make participation in our software, system or hardware project and community a safe, productive, welcoming and inclusive experience for everyone. All participants are required to abide by this Code of Conduct. This includes respectful treatment of everyone regardless of age, body size, disability, ethnicity, gender identity or expression, level of experience, nationality, political affiliation, veteran status, pregnancy, genetic information, physical appearance, race, religion, or sexual orientation, as well as any other characteristic protected under applicable US federal or state law.
6-
7-
## Our Standards
8-
9-
Examples of behaviors that contribute to a positive environment include:
10-
11-
- All participants are treated with respect and consideration, valuing a diversity of views and opinions
12-
- Be considerate, respectful, and collaborative
13-
- Communicate openly with respect for others, critiquing ideas rather than individuals and gracefully accepting criticism
14-
- Acknowledging the contributions of others
15-
- Avoid personal attacks directed toward other participants
16-
- Be mindful of your surroundings and of your fellow participants
17-
- Alert project administrators if you notice a dangerous situation or someone in distress
18-
- Respect the rules and policies of the project and venue
19-
20-
Examples of unacceptable behavior include, but are not limited to:
21-
22-
- Harassment, intimidation, or discrimination in any form
23-
- Physical, verbal, or written abuse by anyone to anyone, including repeated use of pronouns other than those requested
24-
- Unwelcome sexual attention or advances
25-
- Personal attacks directed at other guests, members, participants, etc.
26-
- Publishing others’ private information, such as a physical or electronic address, without explicit permission
27-
- Alarming, intimidating, threatening, or hostile comments or conduct
28-
- Inappropriate use of nudity and/or sexual images
29-
- Threatening or stalking anyone, including a participant
30-
- Other conduct which could reasonably be considered inappropriate in a professional setting
31-
32-
## Scope of this Code
33-
34-
This Code of Conduct applies to all spaces managed by the Project whether they be physical, online or face-to-face. This includes project code, code repository, associated web pages, documentation, mailing lists, project websites and wiki pages, issue tracker, meetings, telecons, events, project social media accounts, and any other forums created by the project team which the community uses for communication. In addition, violations of this Code of Conduct outside these spaces may affect a person's ability to participate within them. Representation of a project may be further defined and clarified by project maintainers.
35-
36-
## Community Responsibilities
37-
38-
Everyone in the community is empowered to respond to people who are showing unacceptable behavior. They can talk to them privately or publicly. Anyone requested to stop unacceptable behavior is expected to comply immediately. If the behavior continues concerns may be brought to the project administrators or to any other party listed in the Reporting section below.
39-
40-
## Project Administrator Responsibilities
41-
42-
Project administrators are responsible for clarifying the standards of acceptable behavior and are encouraged to model appropriate behavior and provide support when people in the community point out inappropriate behavior. Project administrator(s) are normally the ones that would be tasked to carry out the actions in the Consequences section below.
43-
44-
## Reporting
45-
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.
47-
48-
## Consequences
49-
50-
Upon receipt of a complaint, the project administrator(s) may take any action deemed necessary and appropriate under the circumstances. Such action can include things such as: removing, editing, or rejecting comments, commits, code, wiki edits, email, issues, and other contributions that are not
51-
aligned to this Code of Conduct, or banning temporarily or permanently any contributor for other behaviors that are deemed inappropriate, threatening, offensive, or harmful. Project administrators also have the right to report violations to UCAR HR and/or UCAR’s Office of Diversity, Equity and Inclusion (ODEI), as well as a participant’s home institution and/or law enforcement. In the event an incident is reported to UCAR, UCAR will follow its Harassment Reporting and Complaint Procedure.
52-
53-
## Attribution
54-
55-
This Code of Conduct was originally adapted from the Contributor Covenant, 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 20 December 2020. When responding to complaints, UCAR HR and ODEI will do so based on the latest published version. Therefore, any project-specific changes should follow the Process for Changes section above.
3+
_Our Code of Conduct statement is currently under review._

portal/_static/custom.css

Lines changed: 32 additions & 13 deletions
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

0 commit comments

Comments
 (0)