Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Community package listing pages for astropy + SunPy #207

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions _data/packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
- package_name: astro-package3
Copy link
Member Author

@lwasser lwasser Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are just dummy placeholder packages to test the search for astropy functionality - do not worry about the information in each of these but if we need new FIELDS that is something to consider

highlight: true
package_description: This is what this package does. and it's still what it does.
submitting_author:
github_username: ghuser
name: Juno Dog
repository_link: https://github.com/astropy
categories:
- data-retrieval
- data-munging
- data-visualization
- geospatial
- astropy
astropy: true
communities:
- astropy
- pangeo
gh_meta:
name: afscgap
description: This is what this package does.
created_at: 02/18/2019
stargazers_count: 2
watchers_count: 3
forks: 3
open_issues_count: 2
forks_count: 3
documentation: https://ASTROPY.org/
contrib_count: 2
last_commit: 05/31/2023
- package_name: greatest-package
highlight: true
package_description: This is what this package does. and it's still what it does.
submitting_author:
github_username: ghuser
name: Juno Dog
repository_link: https://github.com/astropy
categories:
- data-retrieval
- data-munging
- data-visualization
- geospatial
- astropy
astropy: true
communities:
- astropy
- pangeo
gh_meta:
name: afscgap
description: This is what this package does.
created_at: 02/18/2019
stargazers_count: 2
watchers_count: 3
forks: 3
open_issues_count: 2
forks_count: 3
documentation: https://ASTROPY.org/
contrib_count: 2
last_commit: 05/31/2023
- package_name: astro-package2
highlight: true
package_description: This is what this package does. and it's still what it does.
submitting_author:
github_username: ghuser
name: Author Name
repository_link: https://github.com/astropy
categories:
- data-retrieval
- data-munging
- data-visualization
- geospatial
- astropy
astropy: true
communities:
- astropy
- pangeo
gh_meta:
name: afscgap
description: This is what this package does.
created_at: 02/18/2019
stargazers_count: 2
watchers_count: 3
forks: 3
open_issues_count: 2
forks_count: 3
documentation: https://ASTROPY.org/
contrib_count: 2
last_commit: 05/31/2023
- package_name: sunpy
package_description: Python for Solar Physics
submitting_author:
Expand Down Expand Up @@ -32,6 +119,9 @@
name: Vishnunarayan K I
repository_link: https://github.com/sunpy/sunpy
version_submitted: 5.0.1
sunpy: true
communities:
- sunpy
categories:
- data-retrieval
- data-extraction
Expand Down Expand Up @@ -446,6 +536,7 @@
- data-munging
- reproducibility
- geospatial
joss: true
editor:
github_username: Batalex
name: Alex Batisse
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}</div>
<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
<script src="https://npmcdn.com/isotope-layout@3/dist/isotope.pkgd.js" async></script>
<script src="https://npmcdn.com/isotope-layout@3/dist/isotope.pkgd.js"></script>
<script src="https://npmcdn.com/imagesloaded@4/imagesloaded.pkgd.js"></script>
<script src="{{ '/assets/js/dropdown.js' | relative_url }}"></script>
<script src="https://kit.fontawesome.com/2409929a54.js" crossorigin="anonymous" async></script>
79 changes: 31 additions & 48 deletions _includes/package-grid.html
Original file line number Diff line number Diff line change
@@ -1,82 +1,65 @@

<div class="element-item cards bubble {% for aCategory in apackage.categories %}
{{ aCategory }}
{% endfor %}" data-category="data">
<article
class="archive__item"
itemscope=""
itemtype="https://schema.org/CreativeWork"
>
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
<h3 class="card__title no_toc" itemprop="headline">
{{ apackage.package_name }}
</h3>
<p class="page__meta contributors">
<span><i class="fas fa-feather" aria-hidden="true"></i>
{% if apackage.all_current_maintainers %}
{% for maintainer in apackage.all_current_maintainers %}
<a
href="https://github.com/{{ maintainer.github_username }}"
rel="maintainer"
target="_blank"
>
<a href="https://github.com/{{ maintainer.github_username }}" rel="maintainer" target="_blank">
{% if maintainer.name %}
{{ maintainer.name }}{% if forloop.last == false %},{% endif %}</a>
{{ maintainer.name }}{% if forloop.last == false %},{% endif %}
{% else %}
{{ maintainer.github_username }}{% if forloop.last == false %},{% endif %}</a>
{{ maintainer.github_username }}{% if forloop.last == false %},{% endif %}
{% endif %}
</a>
{% endfor %}
{% elsif apackage.submitting_author.name != 'Name' %}
<a
href="https://github.com/{{ apackage.submitting_author.github_username }}"
rel="maintainer"
target="_blank"
>
<a href="https://github.com/{{ apackage.submitting_author.github_username }}" rel="maintainer" target="_blank">
{{ apackage.submitting_author.name }}
</a>
{% else %}
<a
href="https://github.com/{{ apackage.submitting_author.github_username }}"
rel="maintainer"
target="_blank"
>
<a href="https://github.com/{{ apackage.submitting_author.github_username }}" rel="maintainer" target="_blank">
{{ apackage.submitting_author.github_username }}
</a>
{% endif %}
</span>
</span>
</p>
<span class="narrow">
<p class="archive__item-excerpt narrow" itemprop="description">
{{ apackage.package_description | markdownify }}
</p>
</span>
<ul>
<li>
<a href="{{ apackage.repository_link }}" rel="permalink">
<i class="fab fa-github"></i> View Code
</a>
</li>
<li><a href="{{ apackage.repository_link }}" rel="permalink"><i class="fab fa-github"></i> View Code</a></li>
{% if apackage.gh_meta.documentation %}
<li>
<a
href="{{ apackage.gh_meta.documentation }}"
rel="permalink"
>
<i class="fas fa-book-open"></i> View Docs
</a>
</li>
<li><a href="{{ apackage.gh_meta.documentation }}" rel="permalink"><i class="fas fa-book-open"></i> View Docs</a></li>
{% endif %}
{% if apackage.citation-link %}
<li>
<a href="{{ apackage.archive }}" rel="permalink">
<i class="fas fa-bookmark fa-fw"></i> Cite
</a>
</li>
<li><a href="{{ apackage.archive }}" rel="permalink"><i class="fas fa-bookmark fa-fw"></i> Cite</a></li>
{% endif %}
<li><a href="{{ apackage.issue_link }}"><i class="fa-solid fa-user-pen"></i> View Review</a></li>
{% if apackage.joss %}
<li><a href="{{ apackage.archive }}" rel="permalink"><i class="fas fa-bookmark fa-fw"></i> JOSS Approved</a></li>
{% endif %}
{% if apackage.astropy %}
<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>
{% endif %}
{% if apackage.sunpy %}
<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>
{% endif %}
<li>
<a href= "{{ apackage.issue_link }}"> <i class="fa-solid fa-user-pen"></i> View Review </a>
</li>

</ul>

<hr>
{% if include.community %}
<h4>Package stats</h4>
<ul>
<li><strong>All Time Contributors:</strong> {{ apackage.gh_meta.contrib_count }}</li>
<li><strong>Last Commit date:</strong> {{ apackage.gh_meta.last_commit }}</li>
<li><strong>Date Created:</strong> {{ apackage.gh_meta.created_at }}</li>
</ul>
{% endif %}
</article>
</div>
</div>
12 changes: 12 additions & 0 deletions _pages/python-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ redirect_from:
To date, {{ total_packages }} packages have been accepted into the pyOpenSci
ecosystem. [Click here to check out packages that are currently under review.](https://github.com/pyOpenSci/software-submission/issues)

### Community Partners

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.](#)

<a href="/partners/astropy.html"><button class="button community">Astropy</button></a>
<button class="button community">Pangeo</button>
<button class="button community">pyHeliophysics</button>

### All Packages - Search and filters

Below you can search and filter all of our packages.

<p><input type="text" id="quicksearch" placeholder="Search" /></p>

<div id="filters" class="button-group">
Expand Down
4 changes: 4 additions & 0 deletions _sass/minimal-mistakes/_pyos-isotope.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ input[type="text"] {
text-shadow: 0 1px white;
cursor: pointer;
font-family: $body-font;

&.community {
background-color: rgb(193, 173, 219);
}
}

.button:hover {
Expand Down
Loading
Loading