Skip to content

Commit f401049

Browse files
committed
Add: Astropy landing page
1 parent aaa24f9 commit f401049

File tree

5 files changed

+126
-257
lines changed

5 files changed

+126
-257
lines changed

_data/packages.yml

+3
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@
420420
github_username: vn-ki
421421
repository_link: https://github.com/sunpy/sunpy
422422
version_submitted: 5.0.1
423+
sunpy: true
424+
communities:
425+
- sunpy
423426
categories:
424427
- data-retrieval
425428
- data-extraction

_includes/package-grid-partners.html

-99
This file was deleted.

_includes/package-grid.html

+27-58
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,65 @@
1-
21
<div class="element-item cards bubble {% for aCategory in apackage.categories %}
32
{{ aCategory }}
43
{% endfor %}" data-category="data">
5-
<article
6-
class="archive__item"
7-
itemscope=""
8-
itemtype="https://schema.org/CreativeWork"
9-
>
4+
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
105
<h3 class="card__title no_toc" itemprop="headline">
116
{{ apackage.package_name }}
127
</h3>
138
<p class="page__meta contributors">
149
<span><i class="fas fa-feather" aria-hidden="true"></i>
1510
{% if apackage.all_current_maintainers %}
1611
{% for maintainer in apackage.all_current_maintainers %}
17-
<a
18-
href="https://github.com/{{ maintainer.github_username }}"
19-
rel="maintainer"
20-
target="_blank"
21-
>
12+
<a href="https://github.com/{{ maintainer.github_username }}" rel="maintainer" target="_blank">
2213
{% if maintainer.name %}
23-
{{ maintainer.name }}{% if forloop.last == false %},{% endif %}</a>
14+
{{ maintainer.name }}{% if forloop.last == false %},{% endif %}
2415
{% else %}
25-
{{ maintainer.github_username }}{% if forloop.last == false %},{% endif %}</a>
16+
{{ maintainer.github_username }}{% if forloop.last == false %},{% endif %}
2617
{% endif %}
18+
</a>
2719
{% endfor %}
2820
{% elsif apackage.submitting_author.name != 'Name' %}
29-
<a
30-
href="https://github.com/{{ apackage.submitting_author.github_username }}"
31-
rel="maintainer"
32-
target="_blank"
33-
>
21+
<a href="https://github.com/{{ apackage.submitting_author.github_username }}" rel="maintainer" target="_blank">
3422
{{ apackage.submitting_author.name }}
3523
</a>
3624
{% else %}
37-
<a
38-
href="https://github.com/{{ apackage.submitting_author.github_username }}"
39-
rel="maintainer"
40-
target="_blank"
41-
>
25+
<a href="https://github.com/{{ apackage.submitting_author.github_username }}" rel="maintainer" target="_blank">
4226
{{ apackage.submitting_author.github_username }}
4327
</a>
4428
{% endif %}
45-
</span>
29+
</span>
4630
</p>
4731
<span class="narrow">
4832
<p class="archive__item-excerpt narrow" itemprop="description">
4933
{{ apackage.package_description | markdownify }}
5034
</p>
5135
</span>
5236
<ul>
53-
<li>
54-
<a href="{{ apackage.repository_link }}" rel="permalink">
55-
<i class="fab fa-github"></i> View Code
56-
</a>
57-
</li>
37+
<li><a href="{{ apackage.repository_link }}" rel="permalink"><i class="fab fa-github"></i> View Code</a></li>
5838
{% if apackage.gh_meta.documentation %}
59-
<li>
60-
<a
61-
href="{{ apackage.gh_meta.documentation }}"
62-
rel="permalink"
63-
>
64-
<i class="fas fa-book-open"></i> View Docs
65-
</a>
66-
</li>
39+
<li><a href="{{ apackage.gh_meta.documentation }}" rel="permalink"><i class="fas fa-book-open"></i> View Docs</a></li>
6740
{% endif %}
6841
{% if apackage.citation-link %}
69-
<li>
70-
<a href="{{ apackage.archive }}" rel="permalink">
71-
<i class="fas fa-bookmark fa-fw"></i> Cite
72-
</a>
73-
</li>
42+
<li><a href="{{ apackage.archive }}" rel="permalink"><i class="fas fa-bookmark fa-fw"></i> Cite</a></li>
7443
{% endif %}
75-
<li>
76-
<a href= "{{ apackage.issue_link }}"> <i class="fa-solid fa-user-pen"></i> View Review </a>
77-
</li>
78-
44+
<li><a href="{{ apackage.issue_link }}"><i class="fa-solid fa-user-pen"></i> View Review</a></li>
7945
{% 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>
46+
<li><a href="{{ apackage.archive }}" rel="permalink"><i class="fas fa-bookmark fa-fw"></i> JOSS Approved</a></li>
8547
{% endif %}
8648
{% 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>
49+
<li><a href="partners/astropy.html"><i class="fa-solid fa-check-double"></i> <img src="http://img.shields.io/badge/Affiliated-Astropy-orange.svg?style=flat" alt="Astropy" /></a></li>
50+
{% endif %}
51+
{% if apackage.sunpy %}
52+
<li><a href="partners/astropy.html"><i class="fa-solid fa-check-double"></i> <img src="http://img.shields.io/badge/Affiliated-Sunpy-yellow.svg?style=flat" alt="Astropy" /></a></li>
9253
{% endif %}
9354
</ul>
94-
55+
<hr>
56+
{% if include.community %}
57+
<h4>Package stats</h4>
58+
<ul>
59+
<li><strong>All Time Contributors:</strong> {{ apackage.gh_meta.contrib_count }}</li>
60+
<li><strong>Last Commit date:</strong> {{ apackage.gh_meta.last_commit }}</li>
61+
<li><strong>Date Created:</strong> {{ apackage.gh_meta.created_at }}</li>
62+
</ul>
63+
{% endif %}
9564
</article>
96-
</div>
65+
</div>

0 commit comments

Comments
 (0)