Skip to content

Commit 7737a96

Browse files
authored
enh: remove google font url and load locally
* load fonts from gh pages * remove google fonts urls * update all feature items to support webp * fix responsive design for mobile throughout * consolidate css where needed * update some images (but not all) to better follow branding
2 parents 8cd9949 + 4cfb3bf commit 7737a96

File tree

73 files changed

+416
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+416
-209
lines changed

_includes/feature_row

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
{% endif %}
1515
{% if f.image_path %}
1616
<div class="archive__item-teaser">
17-
<img src="{{ f.image_path | relative_url }}" {% if f.image_size %} style="width:{{ f.image_size }};"{% endif %}
18-
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
17+
<picture>
18+
<source srcset="{{ f.image_path | replace: '.png', '.webp' | relative_url }}" type="image/webp">
19+
<img src="{{ f.image_path | relative_url }}" {% if f.image_size %} style="width:{{ f.image_size }};"{% endif %}
20+
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
21+
</picture>
1922
{% if f.image_caption %}
2023
<span class="archive__item-caption">{{ f.image_caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
2124
{% endif %}

_includes/feature_row_pyos

+11-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44
{% assign feature_row = page.feature_row %}
55
{% endif %}
66

7-
<div class="feature-grid">
7+
<div class="feature__grid">
88

99
{% for f in feature_row %}
1010
<div class="grid-item">
1111
<div class="cards highlight">
1212
{% if f.image_path %}
1313
<div class="cards-image">
14-
<img src="{{ f.image_path | relative_url }}"
15-
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
16-
{% if f.image_caption %}
17-
<span class="archive__item-caption">{{ f.image_caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
18-
{% endif %}
14+
<picture>
15+
<source srcset="{{ f.image_path | replace: '.png', '.webp' | relative_url }}" type="image/webp">
16+
<img src="{{ f.image_path | relative_url }}"
17+
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
18+
{% if f.image_caption %}
19+
<figcaption>
20+
<span class="archive__item-caption">{{ f.image_caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
21+
</figcaption>
22+
{% endif %}
23+
</picture>
1924
</div>
2025
{% endif %}
2126
<div class="card-body">

_includes/head/custom.html

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<!-- custom head content-->
22
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
3-
<link rel="preconnect" href="https://fonts.googleapis.com">
4-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
5-
<link href="https://fonts.googleapis.com/css2?family=Itim&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet" async fetchpriority="high">
6-
73
<!-- Matomo -->
84
<script type="text/javascript">
95
var _paq = window._paq = window._paq || [];

_includes/package-grid.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="element-item cards bubble {% for aCategory in apackage.categories %}
22
{{ aCategory }}
33
{% endfor %}" data-category="data">
4-
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
5-
<h3 class="card__title no_toc" itemprop="headline">
4+
<article itemscope itemtype="https://schema.org/SoftwareApplication">
5+
<h3 class="card__title no_toc" itemprop="name">
66
{{ apackage.package_name }}
77
</h3>
88
<p class="page__meta contributors">

_layouts/posts_gallery.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ul>
2121

2222
{% assign color_counter = 0 %} <!-- Initialize the counter once, outside the loop -->
23-
{% assign color_max = 4 %} <!-- Set the max number of colors -->
23+
{% assign color_max = 4 %} <!-- Max number of colors -->
2424

2525

2626
{% assign entries_layout = page.entries_layout | default: 'list' %}

_pages/about-peer-review.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
---
22
layout: splash
33
permalink: /about-peer-review/
4-
title: "pyOpenSci Reviews Scientific Python Software"
4+
title: "pyOpenSci Makes Python Software Better and Easier to Find Through Peer Review"
55
header:
66
overlay_image: images/header.png
77
overlay_filter: 0.8
88
intro:
9-
- excerpt: "Our open peer review process facilitates scientists getting credit and recognition for the work they've invested in developing scientific Python tools. The peer review process also supports scientists in finding vetted and maintained software, which drives their open science workflows."
9+
- excerpt: "Our open peer review process makes scientific software better and easier to discover. [Check out our accepted packages.](https://www.pyopensci.org/python-packages.html)"
1010
benefits_scientists:
11-
- image_path: images/trusted-scientific-python-tools.png
11+
- image_path: images/landing-pages/trusted-python-software.png
1212
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
1313
excerpt: "Through our partnerships with domain specific communities our catalog of trusted tools for scientists across domains continues to grow."
14-
title: "Scientists need trusted and vetted tools to support their open science workflows."
14+
title: "Scientists need trusted and vetted software"
1515
url: /partners.html
1616
btn_label: Learn more about scientific Python community partnerships
1717
btn_class: btn--primary
1818
benefits_maintainers:
19-
- image_path: images/pyopensci-supports-maintainers.png
19+
- image_path: images/landing-pages/pyopensci-supports-maintainers.png
2020
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
2121
excerpt: "The pyOpenSci peer review process multiplies shared knowledge, making it easier for Pythonistas of all levels to accomplish challenging tasks, such as navigating the Python packaging ecosystem, with relative ease. And our diverse community supports scientific package maintainers in their efforts to develop and build robust software."
22-
title: "pyOS software peer review benefits open source maintainers"
22+
title: "Peer review benefits open source maintainers"
2323
url: https://www.pyopensci.org/software-peer-review/about/benefits.html
2424
btn_label: Learn more about the benefits of peer review
2525
btn_class: btn--primary
2626
peer_review:
27-
- image_path: images/pyopensci-people-at-computer.jpg
27+
- image_path: /images/landing-pages/peer-review-people.png
2828
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
2929
excerpt: "Software peer review, similar to the review of scientific papers, is a process where scientists vet software code, documentation and infrastructure. pyOpenSci leads an [open peer review process](https://www.pyopensci.org/software-peer-review/our-process/how-review-works.html) run by a community of dedicated volunteers. Reviews are supportive and fully transparent with the shared goal of improving the quality, usability and maintainability of the software that is driving open science.
3030
3131
* Diverse teams lead each review, enhancing the overall feedback quality."
32-
title: "About peer review of scientific Python software"
32+
title: "How Python software peer review works"
3333
url: https://www.pyopensci.org/software-peer-review/our-process/review-timeline.html
3434
btn_label: Learn more about the peer review timeline and roles
3535
btn_class: btn--primary
36-
- image_path: images/pyopensci-joss-partnership.png
36+
- image_path: images/landing-pages/pyopensci-joss-partners.png
3737
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
3838
excerpt: "Our partnership with JOSS means that you don't have to choose between pyOpenSci and JOSS. Simply submit your package to pyOS for review. If your package is accepted and in scope for JOSS, it will be fast-tracked through JOSS' review process. "
39-
title: "Get published with JOSS through a pyOpenSci review"
39+
title: "Get a fast-track JOSS publication"
4040
url: https://www.pyopensci.org/software-peer-review/partners/joss.html
4141
btn_label: Learn more about our JOSS partnership
4242
btn_class: btn--primary
@@ -96,7 +96,7 @@ classes: flowing
9696
<div class="pyos-section purple">
9797
<div class="content" markdown="1">
9898

99-
## Get involved with peer review
99+
## Get involved with software peer review
100100

101101
{% include feature_row_pyos id="get-involved" %}
102102

@@ -153,7 +153,7 @@ We are deeply grateful for those served on our editorial board previously!
153153

154154
<div class="content">
155155
<div class="feature__wrapper">
156-
<h2> Recently Accepted scientific Python Packages</h2>
156+
<h2> Recently accepted Python packages</h2>
157157

158158
{% assign packages_sorted = site.data.packages | sort_natural: 'date_accepted' | reverse %}
159159

_pages/home.md

+56-33
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: splash
33
title: "Welcome to pyOpenSci"
4-
excerpt: "We support the scientific Python tools that drive open science through peer review, training and community building."
4+
excerpt: "We make it easier for scientists to create, find, maintain and contribute to reusable code and software."
55
author_profile: false
66
published: true
77
site-map: true
@@ -15,29 +15,42 @@ header:
1515
- label: "Read our Peer Review Guide"
1616
url: "https://www.pyopensci.org/software-peer-review/"
1717
mission:
18-
- excerpt: "We build diverse community that supports free and open Python tools for processing scientific data. We also build technical skills needed to contribute to open source and that support open science. Join our global community."
18+
- excerpt: "pyOpenSci broadens participation in scientific open source by breaking down social and technical barriers. Join our global community."
1919
peer-review:
20-
- image_path: images/software-peer-review.png
20+
- image_path: images/landing-pages/software-peer-review.png
2121
alt: "Light purple image that says software Peer Review. On the image is a woman at a laptop with a pyOpenSci logo on it and a cup of coffee next to her. There is a very light flower in the bottom right hand corner. "
22-
title: "Python Package Peer Review"
23-
excerpt: "We offer peer review of Python software to increase the quality, usability and long term maintenance of the open source tools that drive open science. [JOSS accepts our review as theirs](https://www.pyopensci.org/software-peer-review/partners/joss.html) so you can get the benefits of pyOpenSci and JOSS through one review."
24-
url: https://www.pyopensci.org/software-peer-review/about/benefits.html
25-
btn_label: "> Learn more about the benefits of peer review."
26-
btn_class: btn--inverse
27-
- image_path: images/community-partnerships.png
22+
title: "We Run Software Peer Review"
23+
excerpt: "We review Python packages and software with the goal of helping scientists build better, discoverable and usable software. <br><br>
24+
25+
Your package can also be published in JOSS through our review process. <br>
26+
27+
<i class='fa-solid fa-check-double'></i> Submit a package today for review today. <br>
28+
<i class='fa-solid fa-check-double'></i> Apply to become a reviewer. <br>
29+
"
30+
- image_path: images/landing-pages/community-partnerships.png
2831
alt: "Light purple image with a bunch from different backgrounds of stick figure people in a slightly darker color. The text on the image at the top says Community Partnerships"
29-
title: "Community Partnerships"
30-
excerpt: "We partner with domain-specific scientific Python communities such as [Pangeo](https://www.pyopensci.org/software-peer-review/partners/pangeo.html) who want to review affiliated packages. Through this collaboration, we develop community-specific standards that are used in our reviews to evaluate whether a package meets affiliation requirements. This removes the need for communities to develop their own peer review process."
31-
url: https://www.pyopensci.org/partners.html
32-
btn_label: "> Learn About Community Partners"
33-
btn_class: btn--inverse
34-
- image_path: images/python-packaging-guide.png
35-
title: "Simplifying Packaging"
32+
title: "We Build Community Partnerships"
33+
excerpt: "
34+
We [partner with open source communities](https://www.pyopensci.org/partners.html) to share resources and processes such as Peer review. <br><br>
35+
36+
Learn more about our partnerships with: <br>
37+
38+
<i class='fa-solid fa-handshake'></i> [JOSS](https://www.pyopensci.org/software-peer-review/partners/joss.html) <br>
39+
<i class='fa-solid fa-handshake'></i> [Astropy](https://www.pyopensci.org/software-peer-review/partners/astropy.html) <br>
40+
"
41+
- image_path: images/landing-pages/simple-python-packaging-header.png
42+
title: "We Break Down Python Packaging Painpoints"
3643
alt: Light purple image that says python packaging guide and below it says simplifying python packaging. The background is a grey laptop with a hand looking down at the laptop the above.
37-
excerpt: "We are creating a beginner-friendly, **community-driven Python packaging guide**. Our guide is reviewed by members of the Python Packaging Authority, maintainers of core packaging tools and members of the scientific Python community. It recommends best practices for you to follow when creating a Python package."
38-
url: https://www.pyopensci.org/python-package-guide/
39-
btn_label: "> Read our packaging guide"
40-
btn_class: btn--inverse
44+
excerpt: "
45+
46+
Check out our beginner-friendly: <br>
47+
48+
<i class='fa-solid fa-book-open'></i> [Python Package Tutorials](https://www.pyopensci.org/python-package-guide/tutorials/intro.html) <br>
49+
50+
<i class='fa-solid fa-book-open'></i> [Python package guide](https://www.pyopensci.org/python-package-guide) <br><br>
51+
52+
All of our resources are co-developed with the broader Python community and reviewed by beginner to expert Pythonistas to ensure the material is accessible for all.
53+
"
4154
---
4255

4356
{% include feature_row id="mission" type="center" %}
@@ -46,7 +59,7 @@ peer-review:
4659

4760
{% include feature_row_pyos id="peer-review"%}
4861

49-
## Building Diverse Community Around Python Scientific Software
62+
## Broadening participation in scientific open source
5063

5164
<div class="feature__wrapper" markdown="1">
5265
<div class="feature__item--left">
@@ -55,10 +68,14 @@ peer-review:
5568
<img src="/images/people/pyopensci-sprint-pycon-2023.png" alt="Image showing 3 people working at 2 computers during a spring at pyCon USA 2023.">
5669
</div>
5770
<div class="archive__item-body">
58-
<h2 class="archive__item-title">Peer review mentorship program</h2>
71+
<h3 class="archive__item-title">You don't need to be an expert to get involved </h3>
5972
<div class="archive__item-excerpt">
6073
<p>
61-
We are building diverse community around the scientific packages that drive open science. We recruit and support editors and reviewers from different backgrounds and gender-identities in each review that we perform.
74+
Are you new to software peer review but you want to get involved? We've got you!
75+
76+
We offer support and mentorship to new reviewers completing their first review.
77+
78+
All reviewers don't need to be python package experts. We welcome reviewers that focus on software accessibility and usability.
6279
</p>
6380
<p>
6481
Are you new to peer review?
@@ -87,23 +104,29 @@ peer-review:
87104
{% assign blog_posts = site.posts | where_exp: "item", "item.categories contains 'blog-post'" %}
88105

89106
<div class="notice notice-highlight" markdown="1">
107+
90108
## Recent blog posts & updates
91109

92-
<div class="grid">
93-
{% for post in blog_posts limit:3 %}
110+
{% assign packages_sorted = site.data.packages | sort_natural: 'date_accepted' | reverse %}
94111

95-
<div class="cards">
96-
<h3 class="card-title"><a href="{{ site.baseurl }}{{ post.url}}" rel="permalink">{{ post.title }}</a></h3>
112+
{% assign color_counter = 0 %}
113+
{% assign color_max = 4 %} <!-- Max number of colors -->
97114

98-
<div>
99-
<p>{{ post.excerpt | markdownify }}</p>
100-
</div>
101115

102-
</div>
103-
{% endfor %}
116+
<div class="blog__grid">
117+
{% for post in blog_posts limit:3 %}
118+
{% unless post.header.overlay_image %}
119+
{% assign color_counter = color_counter | plus: 1 %}
120+
{% if color_counter == color_max %}
121+
{% assign color_counter = 0 %}
122+
{% endif %}
123+
{% endunless %}
124+
{% include archive-cards.html color_counter=color_counter %}
125+
{% endfor %}
104126

105127
</div>
106-
<p><a href="/blog/" class="btn btn--info btn--large">View All Posts <i class="fa fa-4 fa-arrow-circle-right" aria-hidden="true"></i></a></p>
128+
<a href="/blog/" class="btn btn--info btn--large">View more <i class="fa fa-4 fa-arrow-circle-right" aria-hidden="true"></i></a>
129+
107130
</div>
108131

109132

_pages/learn.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ header:
77
overlay_image: images/headers/pyopensci-learn-header.png
88
overlay_filter: 0.3
99
scientists:
10-
- image_path: images/pyopensci-people-at-computer.jpg
10+
- image_path: images/landing-pages/peer-review-people.png
1111
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
1212
excerpt: "Our catalog of vetted open source tools makes it easier for scientists to find the trusted tools that they need to develop their open science workflows."
1313
title: "Help scientists find the open science tools that they need"
@@ -17,9 +17,9 @@ scientists:
1717
overview:
1818
- excerpt: "pyOpenSci creates resources to help you navigate the Python packaging ecosystem with ease. Our materials are community developed and go through extensive technical and pedagogical review."
1919
development:
20-
- image_path: images/pyopensci-learn-community-created.png
20+
- image_path: images/learn-graphics/community-created.png
2121
alt: "An image showing a bunch of hands holding up a sign that says Community Developed. the background is dark purple with a few green decorative items."
22-
title: "Our development process: Community-developed Python tutorials for scientists"
22+
title: "Our process: Community-developed Python tutorials"
2323
excerpt: "Our tutorials are created through a multi-stage community review process.
2424
2525
* Tutorials are developed by the pyOpenSci team or community members.
@@ -28,7 +28,7 @@ development:
2828
2929
* Before publication, tutorials then go through several rounds of community review for accuracy, usability and accessibility."
3030
whats_next:
31-
- image_path: images/pyopensci-learn-github-collaboration.png
31+
- image_path: images/learn-graphics/github-collaboration.png
3232
alt: "A graphic with a light yellow background that says essential collaboration skills for scientists - using GitHub. On the right there is a man and a woman sitting at a tall table with laptops working."
3333
excerpt: "Through the [Better Software for Science Fellowship](https://bssw.io/pages/bssw-fellowship-program) we will be developing lessons focused on teaching core GitHub collaboration skills needed for both contributing to open source software and for working in an open science team environment.
3434

0 commit comments

Comments
 (0)