Skip to content

Commit e9c3b24

Browse files
committed
Start at community mockups
1 parent 9dc5f72 commit e9c3b24

File tree

9 files changed

+399
-0
lines changed

9 files changed

+399
-0
lines changed

_data/packages.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
1+
- package_name: astro-package3
2+
highlight: true
3+
package_description: This is what this package does. and it's still what it does.
4+
submitting_author:
5+
github_username: ghuser
6+
name: Author Name
7+
repository_link: https://github.com/astropy
8+
categories:
9+
- data-retrieval
10+
- data-munging
11+
- data-visualization
12+
- geospatial
13+
- astropy
14+
astropy: true
15+
communities:
16+
- astropy
17+
- pangeo
18+
gh_meta:
19+
name: afscgap
20+
description: This is what this package does.
21+
created_at: 02/18/2019
22+
stargazers_count: 2
23+
watchers_count: 3
24+
forks: 3
25+
open_issues_count: 2
26+
forks_count: 3
27+
documentation: https://ASTROPY.org/
28+
contrib_count: 2
29+
last_commit: 05/31/2023
30+
- package_name: astro-package2
31+
highlight: true
32+
package_description: This is what this package does. and it's still what it does.
33+
submitting_author:
34+
github_username: ghuser
35+
name: Author Name
36+
repository_link: https://github.com/astropy
37+
categories:
38+
- data-retrieval
39+
- data-munging
40+
- data-visualization
41+
- geospatial
42+
- astropy
43+
astropy: true
44+
communities:
45+
- astropy
46+
- pangeo
47+
gh_meta:
48+
name: afscgap
49+
description: This is what this package does.
50+
created_at: 02/18/2019
51+
stargazers_count: 2
52+
watchers_count: 3
53+
forks: 3
54+
open_issues_count: 2
55+
forks_count: 3
56+
documentation: https://ASTROPY.org/
57+
contrib_count: 2
58+
last_commit: 05/31/2023
59+
- package_name: astro-package
60+
highlight: true
61+
package_description: This is what this package does. and it's still what it does.
62+
submitting_author:
63+
github_username: ghuser
64+
name: Author Name
65+
repository_link: https://github.com/astropy
66+
categories:
67+
- data-retrieval
68+
- data-munging
69+
- data-visualization
70+
- geospatial
71+
- astropy
72+
astropy: true
73+
communities:
74+
- astropy
75+
- pangeo
76+
gh_meta:
77+
name: afscgap
78+
description: This is what this package does.
79+
created_at: 02/18/2019
80+
stargazers_count: 2
81+
watchers_count: 3
82+
forks: 3
83+
open_issues_count: 2
84+
forks_count: 3
85+
documentation: https://ASTROPY.org/
86+
contrib_count: 2
87+
last_commit: 05/31/2023
188
- package_name: afscgap
289
highlight: true
390
package_description: Tools for analysis and inference in NOAA AFSC GAP marine
@@ -57,6 +144,7 @@
57144
- data-munging
58145
- reproducibility
59146
- geospatial
147+
joss: true
60148
editor:
61149
github_username: Batalex
62150
name:
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
@@ -74,6 +74,20 @@ <h3 class="card__title no_toc" itemprop="headline">
7474
</a>
7575
</li>
7676
{% 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 %}
7791
</ul>
7892
</article>
7993
</div>

_pages/astropy.md

Whitespace-only changes.

_pages/python-packages.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ redirect_from:
2222
The packages below have already been through our open peer review process and
2323
are accepted as pyOpenSci packages.
2424

25+
### Community Partners
26+
27+
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.](#)
28+
29+
<a href="/partners/astropy.html"><button class="button community">Astropy</button></a>
30+
<button class="button community">Pangeo</button>
31+
<button class="button community">pyHeliophysics</button>
32+
33+
### All Packages - Search and filters
34+
35+
Below you can search and filter all of our packages.
36+
2537
<p><input type="text" id="quicksearch" placeholder="Search" /></p>
2638

2739
<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
@@ -30,6 +30,10 @@ input[type="text"] {
3030
text-shadow: 0 1px white;
3131
cursor: pointer;
3232
font-family: $body-font;
33+
34+
&.community {
35+
background-color: rgb(193, 173, 219);
36+
}
3337
}
3438

3539
.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

0 commit comments

Comments
 (0)