Skip to content

Commit 8e4d6e1

Browse files
committed
Start at community mockups
1 parent 5b51fad commit 8e4d6e1

File tree

9 files changed

+312
-0
lines changed

9 files changed

+312
-0
lines changed

_data/packages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@
10981098
- data-munging
10991099
- reproducibility
11001100
- geospatial
1101+
joss: true
11011102
editor:
11021103
name: Alex Batisse
11031104
github_username: Batalex

_includes/package-grid-partners.html

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<!-- A template for lists of packages -->
2+
3+
4+
<div class="element-item cards {% for aCategory in apackage.categories %}
5+
{{ aCategory }}
6+
{% endfor %}" data-category="data">
7+
<article
8+
class="archive__item"
9+
itemscope=""
10+
itemtype="https://schema.org/CreativeWork"
11+
>
12+
<h3 class="card__title no_toc" itemprop="headline">
13+
{{ apackage.package_name}}
14+
</h3>
15+
<p class="page__meta contributors">
16+
<span><i class="fas fa-feather" aria-hidden="true"></i>
17+
{% if apackage.all_current_maintainers %}
18+
{% for maintainer in apackage.all_current_maintainers %}
19+
<a
20+
href="https://github.com/{{ maintainer.github_username }}"
21+
rel="maintainer"
22+
target="_blank"
23+
>
24+
{% if maintainer.name %}
25+
{{ maintainer.name }}{% if forloop.last == false %},{% endif %}</a>
26+
{% else %}
27+
{{ maintainer.github_username }}{% if forloop.last == false %},{% endif %}</a>
28+
{% endif %}
29+
{% endfor %}
30+
{% elsif apackage.submitting_author.name != 'Name' %}
31+
<a
32+
href="https://github.com/{{ apackage.submitting_author.github_username }}"
33+
rel="maintainer"
34+
target="_blank"
35+
>
36+
{{ apackage.submitting_author.name }}
37+
</a>
38+
{% else %}
39+
<a
40+
href="https://github.com/{{ apackage.submitting_author.github_username }}"
41+
rel="maintainer"
42+
target="_blank"
43+
>
44+
{{ apackage.submitting_author.github_username }}
45+
</a>
46+
{% endif %}
47+
</span>
48+
</p>
49+
<span class="narrow">
50+
<p class="archive__item-excerpt narrow" itemprop="description">
51+
{{ apackage.package_description | markdownify }}
52+
</p>
53+
</span>
54+
<ul>
55+
<li>
56+
<a href="{{ apackage.repository_link }}" rel="permalink">
57+
<i class="fab fa-github"></i> View Code
58+
</a>
59+
</li>
60+
{% if apackage.gh_meta.documentation %}
61+
<li>
62+
<a
63+
href="{{ apackage.gh_meta.documentation }}"
64+
rel="permalink"
65+
>
66+
<i class="fas fa-book-open"></i> View Docs
67+
</a>
68+
</li>
69+
{% endif %}
70+
{% if apackage.citation-link %}
71+
<li>
72+
<a href="{{ apackage.archive }}" rel="permalink">
73+
<i class="fas fa-bookmark fa-fw"></i> Cite
74+
</a>
75+
</li>
76+
{% endif %}
77+
{% if apackage.joss %}
78+
<li>
79+
<a href="{{ apackage.archive }}" rel="permalink">
80+
<i class="fas fa-bookmark fa-fw"></i> JOSS Approved
81+
</a>
82+
</li>
83+
{% endif %}
84+
{% if apackage.astropy %}
85+
<li>
86+
<a href="{{ apackage.archive }}" rel="permalink">
87+
<i class="fas fa-bookmark fa-fw"></i> Astropy Affiliated
88+
</a>
89+
</li>
90+
{% endif %}
91+
</ul>
92+
<h3>Current Status </h3>
93+
Contributors*: {{ apackage.gh_meta.contrib_count }}
94+
Date Created: {{ apackage.gh_meta.created_at }}
95+
{{ apackage.name }} was last updated: {{ apackage.gh_meta.last_commit }}
96+
97+
98+
</article>
99+
</div>

_includes/package-grid.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,20 @@ <h3 class="card__title no_toc" itemprop="headline">
7676
<a href= "{{ apackage.issue_link }}"> <i class="fa-solid fa-user-pen"></i> View Review </a>
7777
</li>
7878

79+
{% if apackage.joss %}
80+
<li>
81+
<a href="{{ apackage.archive }}" rel="permalink">
82+
<i class="fas fa-bookmark fa-fw"></i> JOSS Approved
83+
</a>
84+
</li>
85+
{% endif %}
86+
{% if apackage.astropy %}
87+
<li>
88+
<a href="{{ apackage.archive }}" rel="permalink">
89+
<i class="fas fa-bookmark fa-fw"></i> Astropy Affiliated
90+
</a>
91+
</li>
92+
{% endif %}
7993
</ul>
8094

8195
</article>

_pages/astropy.md

Whitespace-only changes.

_pages/python-packages.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ redirect_from:
2525
To date, {{ total_packages }} packages have been accepted into the pyOpenSci
2626
ecosystem. [Click here to check out packages that are currently under review.](https://github.com/pyOpenSci/software-submission/issues)
2727

28+
### Community Partners
29+
30+
To view packages affiliated with our partner communities that are a part of ourpeer review partnership program, click on a community link below. [Learn more about our community partnerships here.](#)
31+
32+
<a href="/partners/astropy.html"><button class="button community">Astropy</button></a>
33+
<button class="button community">Pangeo</button>
34+
<button class="button community">pyHeliophysics</button>
35+
36+
### All Packages - Search and filters
37+
38+
Below you can search and filter all of our packages.
39+
2840
<p><input type="text" id="quicksearch" placeholder="Search" /></p>
2941

3042
<div id="filters" class="button-group">

_sass/minimal-mistakes/_pyos-isotope.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ input[type="text"] {
3232
text-shadow: 0 1px white;
3333
cursor: pointer;
3434
font-family: $body-font;
35+
36+
&.community {
37+
background-color: rgb(193, 173, 219);
38+
}
3539
}
3640

3741
.button:hover {

communities/astropy.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
layout: single
3+
title: "Astropy"
4+
excerpt: "An ecosystem of interoperable astronomy packages"
5+
header:
6+
overlay_color: "rgb(255, 80, 0)"
7+
overlay_filter: 0.6
8+
overlay_image: images/partners/astropy-banner.png
9+
image_alt: "Digital elevation model"
10+
permalink: partners/astropy.html
11+
classes: wide
12+
community: astropy
13+
---
14+
15+
{%
16+
assign pkgs = site.data.packages
17+
| where_exp: "item", "item.communities contains page.community"
18+
%}
19+
20+
## TODO's
21+
22+
- We might want to implement filters for some of the metrics we look for
23+
when considering package health that would be flags (ie a repo that hasn't been updated in a while). This will make it easier for people to identify packages that we may want to reach out to.
24+
- We will want to identify the specific metrics that we want to house on the cards.
25+
- last commit
26+
- number of contributors
27+
- metrics maybe that [scientific python is collecting via devstats](https://devstats.scientific-python.org/_generated/astropy.html)?
28+
29+
## Welcome to {{ page.community }}
30+
31+
The Astropy Project is a community effort to develop a common core package for Astronomy in Python and foster an ecosystem of interoperable astronomy packages.
32+
33+
The Astropy community is committed to supporting diversity and inclusion.
34+
35+
Please remember to acknowledge and cite the use of Astropy!
36+
37+
[![astropy](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)](http://www.astropy.org/)
38+
39+
## TODO - add a sort by
40+
41+
- last commit date
42+
- pony factor
43+
- other things??
44+
45+
<p><input type="text" id="quicksearch" placeholder="Search" /></p>
46+
47+
<div id="filters" class="button-group">
48+
<button class="button is-checked" data-filter="*">show all</button>
49+
<button class="button" data-filter=".data-munging">pony factor</button>
50+
<button class="button" data-filter=".data-extraction">last commit date</button>
51+
<button class="button" data-filter=".data-retrieval">stars</button>
52+
<button class="button" data-filter=".data-visualization">something else</button>
53+
</div>
54+
55+
<div class="grid">
56+
{% for apackage in pkgs %}
57+
{% include package-grid-partners.html %}
58+
{% endfor %}
59+
</div>

images/partners/astropy-banner.png

526 KB
Loading
Lines changed: 123 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)