Packages maintained by core team
{{ $sections.core_packages | markdownify }} - {{ if .Params.datastructures }} + {{ with where . "category" "core-datastructure" }}Data structures
{{ $sections.datastructures | markdownify }}Analysis task-specific extensions
{{ $sections.datastructures_post | markdownify }}
-Frameworks
- {{ $sections.frameworks | markdownify }} -Frameworks
+ {{ $sections.frameworks | markdownify }} +Ecosystem packages maintained by scverse community
{{ $sections.ecosystem | markdownify }} - {{ $registryBase := "https://scverse.org/ecosystem-packages/" }} - {{ $data := resources.GetRemote (printf "%spackages.json" $registryBase) }} - {{ $pkgs := transform.Unmarshal $data.Content }} {{ if $pkgs }} {{/* Categories and tags are a controlled vocabulary in the registry schema, so there is nothing to normalise here: https://github.com/scverse/ecosystem-packages/blob/main/scripts/src/ecosystem_scripts/schema.json */}} diff --git a/layouts/partials/main/packages.html b/layouts/partials/main/packages.html index 58e1373..af633c9 100644 --- a/layouts/partials/main/packages.html +++ b/layouts/partials/main/packages.html @@ -1,40 +1,43 @@- {{ .name }} -
-- {{ .description }} -
+ {{ $registryBase := "https://scverse.org/ecosystem-packages/" }} + {{ $data := resources.GetRemote (printf "%spackages.json" $registryBase) }} + {{ with $data }} + {{/* ponytail: registry has no order key, so core packages are alphabetical; re-curate once one exists. */}} + {{ $core := slice }} + {{ range where (transform.Unmarshal .Content) "category" "in" (slice "core-datastructure" "core-framework") }} + {{ $core = $core | append (merge . (dict "sortkey" (lower .name))) }} + {{ end }} + {{ with sort $core "sortkey" }} + - {{ end }} -