diff --git a/_data/packages.yml b/_data/packages.yml index 99bac921..355d62dd 100644 --- a/_data/packages.yml +++ b/_data/packages.yml @@ -1,3 +1,90 @@ +- package_name: astro-package3 + 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: @@ -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 @@ -446,6 +536,7 @@ - data-munging - reproducibility - geospatial + joss: true editor: github_username: Batalex name: Alex Batisse diff --git a/_includes/footer.html b/_includes/footer.html index fac0a462..274b6d38 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -29,7 +29,7 @@ © {{ site.time | date: '%Y' }} {{ site.name | default: site.title }} - + diff --git a/_includes/package-grid.html b/_includes/package-grid.html index 02451941..9c8ef88b 100644 --- a/_includes/package-grid.html +++ b/_includes/package-grid.html @@ -1,12 +1,7 @@ -
-
+

{{ apackage.package_name }}

@@ -14,35 +9,24 @@

{% if apackage.all_current_maintainers %} {% for maintainer in apackage.all_current_maintainers %} - + {% if maintainer.name %} - {{ maintainer.name }}{% if forloop.last == false %},{% endif %} + {{ maintainer.name }}{% if forloop.last == false %},{% endif %} {% else %} - {{ maintainer.github_username }}{% if forloop.last == false %},{% endif %} + {{ maintainer.github_username }}{% if forloop.last == false %},{% endif %} {% endif %} + {% endfor %} {% elsif apackage.submitting_author.name != 'Name' %} - + {{ apackage.submitting_author.name }} {% else %} - + {{ apackage.submitting_author.github_username }} {% endif %} - +

@@ -50,33 +34,32 @@

- +
+ {% if include.community %} +

Package stats

+
    +
  • All Time Contributors: {{ apackage.gh_meta.contrib_count }}
  • +
  • Last Commit date: {{ apackage.gh_meta.last_commit }}
  • +
  • Date Created: {{ apackage.gh_meta.created_at }}
  • +
+ {% endif %}

-
+ diff --git a/_pages/python-packages.md b/_pages/python-packages.md index e8288e9d..db5368bb 100644 --- a/_pages/python-packages.md +++ b/_pages/python-packages.md @@ -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.](#) + + + + + +### All Packages - Search and filters + +Below you can search and filter all of our packages. +

diff --git a/_sass/minimal-mistakes/_pyos-isotope.scss b/_sass/minimal-mistakes/_pyos-isotope.scss index ef1f1746..caceccdc 100644 --- a/_sass/minimal-mistakes/_pyos-isotope.scss +++ b/_sass/minimal-mistakes/_pyos-isotope.scss @@ -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 { diff --git a/assets/js/dropdown.js b/assets/js/dropdown.js index c8b12b92..1526a53f 100644 --- a/assets/js/dropdown.js +++ b/assets/js/dropdown.js @@ -1,89 +1,93 @@ -//Jquery to manage drop downs and accessibility - $(document).ready(function () { - $(".hamburger__btn-toggle").click(function (e) { - $(this).toggleClass("close"); - // toggle expanded to try on click - $(this).attr('aria-expanded', function (i, attr) { - return attr == 'true' ? 'false' : 'true'}); +// jQuery to manage drop downs and accessibility +$(document).ready(function() { + $(".hamburger__btn-toggle").click(function(e) { + $(this).toggleClass("close"); + // Toggle expanded to try on click + $(this).attr('aria-expanded', function(i, attr) { + return attr == 'true' ? 'false' : 'true' + }); - e.preventDefault(); - $(".nav__links").toggleClass("vertical"); + e.preventDefault(); + $(".nav__links").toggleClass("vertical"); }); - $(".dropdown").click(function (e) { - // close when user clicks nav - $(this).find(".dropdown-content").toggleClass("open"); - // Handle making sure other drop menus are "closed" when another is open - $(this).siblings(".dropdown").find(".dropdown-content").removeClass("open"); - $(this).siblings(".dropdown").find(".dropbtn").attr("aria-expanded", "false"); - $(this).find(".dropbtn").attr('aria-expanded', function (i, attr) { - return attr == 'true' ? 'false' : 'true' }); + $(".dropdown").click(function(e) { + // Close when user clicks nav + $(this).find(".dropdown-content").toggleClass("open"); + // Handle making sure other drop menus are "closed" when another is open + $(this).siblings(".dropdown").find(".dropdown-content").removeClass("open"); + $(this).siblings(".dropdown").find(".dropbtn").attr("aria-expanded", "false"); + $(this).find(".dropbtn").attr('aria-expanded', function(i, attr) { + return attr == 'true' ? 'false' : 'true' + }); }); - // Close dropdown when u click outside of the nav ul - $(document).click(function (e) { - if (!e.target.closest("ul") && $(".dropdown-content").hasClass("open")) { - $(".dropdown-content").removeClass("open"); - } + // Close dropdown when you click outside of the nav ul + $(document).click(function(e) { + if (!e.target.closest("ul") && $(".dropdown-content").hasClass("open")) { + $(".dropdown-content").removeClass("open"); + } }); }); -// isotope filtering -// This blog has a good example of smart resizing ... https://jewelfarazi.me/create-jquery-isotope-responsive-masonry-layout/ -var qsRegex; -var buttonFilter; -// init Isotope -var $grid = $('.grid-isotope').imagesLoaded( function() { - $grid.isotope({ - itemSelector: '.element-item', - layoutMode: 'masonry', - masonry: { - columnWidth: 100, - horizontalOrder: true, - }, - filter: function() { - var $this = $(this); - var searchResult = qsRegex ? $this.text().match( qsRegex ) : true; - var buttonResult = buttonFilter ? $this.is( buttonFilter ) : true; - return searchResult && buttonResult; - } - }); -}); + // Isotope filtering + // This blog has a good example of smart resizing ... https://jewelfarazi.me/create-jquery-isotope-responsive-masonry-layout/ + var qsRegex; + var buttonFilter; -$('#filters').on( 'click', 'button', function() { - buttonFilter = $( this ).attr('data-filter'); - $grid.isotope(); -}); + // Init Isotope + var $grid = $('.grid-isotope').imagesLoaded(function() { + $grid.isotope({ + itemSelector: '.element-item', + layoutMode: 'masonry', + masonry: { + columnWidth: 100, + horizontalOrder: true, + }, + filter: function() { + var $this = $(this); + var searchResult = qsRegex ? $this.text().match(qsRegex) : true; + var buttonResult = buttonFilter ? $this.is(buttonFilter) : true; + return searchResult && buttonResult; + } + }); + }); -// use value of search field to filter -var $quicksearch = $('#quicksearch').keyup( debounce( function() { - qsRegex = new RegExp( $quicksearch.val(), 'gi' ); - $grid.isotope(); -}) ); + // Filter on button click + $('#filters').on('click', 'button', function() { + buttonFilter = $(this).attr('data-filter'); + $grid.isotope(); + }); + // Use value of search field to filter + var $quicksearch = $('#quicksearch').keyup(debounce(function() { + qsRegex = new RegExp($quicksearch.val(), 'gi'); + $grid.isotope(); + })); - // change is-checked class on buttons -$('.button-group').each( function( i, buttonGroup ) { - var $buttonGroup = $( buttonGroup ); - $buttonGroup.on( 'click', 'button', function() { - $buttonGroup.find('.is-checked').removeClass('is-checked'); - $( this ).addClass('is-checked'); + // Change is-checked class on buttons + $('.button-group').each(function(i, buttonGroup) { + var $buttonGroup = $(buttonGroup); + $buttonGroup.on('click', 'button', function() { + $buttonGroup.find('.is-checked').removeClass('is-checked'); + $(this).addClass('is-checked'); + }); }); -}); -// debounce so filtering doesn't happen every millisecond -function debounce( fn, threshold ) { - var timeout; - threshold = threshold || 100; - return function debounced() { - clearTimeout( timeout ); - var args = arguments; - var _this = this; - function delayed() { - fn.apply( _this, args ); - } - timeout = setTimeout( delayed, threshold ); - }; -} + // Debounce so filtering doesn't happen every millisecond + function debounce(fn, threshold) { + var timeout; + threshold = threshold || 100; + return function debounced() { + clearTimeout(timeout); + var args = arguments; + var _this = this; + + function delayed() { + fn.apply(_this, args); + } + timeout = setTimeout(delayed, threshold); + }; + } diff --git a/communities/astropy.md b/communities/astropy.md new file mode 100644 index 00000000..2dc66fa0 --- /dev/null +++ b/communities/astropy.md @@ -0,0 +1,51 @@ +--- +layout: splash +title: "Astropy" +excerpt: "An ecosystem of interoperable astronomy packages" +header: + overlay_color: "rgb(255, 80, 0)" + overlay_filter: 0.6 + overlay_image: images/partners/astropy-banner.png + image_alt: "Digital elevation model" +permalink: partners/astropy.html +intro: + - excerpt: "Astropy is a pyOpenSci community peer review partner. [Learn more about our peer review partnership program](/partners.html)." +classes: wide +community: astropy +--- + +{% + assign pkgs = site.data.packages + | where_exp: "item", "item.communities contains page.community" +%} + +{% include feature_row id="intro" type="center" %} + +## pyOpenSci peer review partner: {{ page.community | capitalize }} + +## About Astropy + +[Astropy](https://www.astropy.org/) is a community effort to develop a common +core package for Astronomy in Python. Astropy also fosters an ecosystem of +interoperable astronomy packages. As with all scientific Python packages, +please remember to acknowledge and cite the use of any {{ page.community }} +packages that you use! + +***ATTN:*** It would be nice to add a bit more about astropy here + +

+ +
+ +
+ +
+{% for apackage in pkgs %} + {% include package-grid.html community=page.community %} +{% endfor %} +
+ + diff --git a/images/partners/astropy-banner.png b/images/partners/astropy-banner.png new file mode 100644 index 00000000..79db6255 Binary files /dev/null and b/images/partners/astropy-banner.png differ diff --git a/images/partners/astropy_project_logo.svg b/images/partners/astropy_project_logo.svg new file mode 100644 index 00000000..890ea7f5 --- /dev/null +++ b/images/partners/astropy_project_logo.svg @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +