Skip to content

Commit

Permalink
working on package display
Browse files Browse the repository at this point in the history
  • Loading branch information
zachlasiuk committed Feb 20, 2024
1 parent 5b6758b commit 2eebe84
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 138 deletions.
6 changes: 4 additions & 2 deletions build_steps/update_recently_added_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def get_all_package_metadata(package_path):
content = f.read()
# Get the metadata between '---' by splitting the content by '---' and grabbing the middle part
metadata = content.split('---')[1]
return yaml.safe_load(metadata)
metadata_dic = yaml.safe_load(metadata)
metadata_mirror_hugo_page = {"Params": metadata_dic}
return metadata_mirror_hugo_page



Expand Down Expand Up @@ -78,7 +80,7 @@ def get_all_package_metadata(package_path):
print()
print('Adding these packages in order to data/recently_added_packages.yaml:')
for c in recent_content_with_all_metadata:
print(' '+c['name'])
print(c)
print()

# Write to YAML
Expand Down
246 changes: 127 additions & 119 deletions data/recently_added_packages.yaml
Original file line number Diff line number Diff line change
@@ -1,119 +1,127 @@
- category: Storage
description: The Storage Performance Development Kit (SPDK) provides a set of tools
and libraries for writing high performance, scalable, user-mode storage applications.
download_url: https://github.com/spdk/spdk/releases
name: SPDK
optional_hidden_info:
other_info: No ARM64 specific release notes and binaries are available. Need to
build and install it from source from git repository.
release_notes__recommended_minimum: null
release_notes__supported_minimum: null
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: null
official_docs: https://spdk.io/doc/getting_started.html
partner_content: null
homepage_url: https://spdk.io/
support_caveats: null
supported_minimum_version:
release_date: 30/12/2022
version_number: 22.09
works_on_arm: true
- category: AI/ML
description: TensorFlow is an end-to-end open-source platform for machine learning.
download_url: https://pypi.org/project/tensorflow/2.15.0/#files
name: Tensorflow
optional_hidden_info:
other_info: From TensorFlow 2.10 onwards, Linux CPU-builds for Aarch64/ARM64 processors
are built, maintained, tested and released by a third party "AWS". Installing
the tensorflow package on an ARM machine installs AWS's tensorflow-cpu-aws package.
release_notes__recommended_minimum: null
release_notes__supported_minimum: https://www.tensorflow.org/install/pip#linux
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/aarch64-docker-images-for-tensorflow-and-pytorch
official_docs: https://www.tensorflow.org/lite/guide/build_arm
partner_content: https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-graviton-tensorflow.html
homepage_url: https://www.tensorflow.org/
support_caveats: null
supported_minimum_version:
release_date: 7/9/2022
version_number: 2.10.0
works_on_arm: true
- category: Databases
description: Data lakehouse is a new, open data management architecture that combines
the flexibility, cost-efficiency, and scale of data lakes with the data management
and ACID transactions of data warehouses, enabling business intelligence (BI)
and machine learning (ML) on all data.
name: Data-Lakehouse
optional_hidden_info:
other_info: null
release_notes__arm_supported: https://www.databricks.com/blog/2022/04/18/announcing-databricks-support-for-aws-graviton2-with-up-to-3x-better-price-performance.html
optional_info:
alternative_options: null
getting_started_resources:
arm_content: null
official_docs: https://docs.databricks.com/en/compute/graviton.html
partner_content: https://www.databricks.com/blog/2022/04/18/announcing-databricks-support-for-aws-graviton2-with-up-to-3x-better-price-performance.html
homepage_url: https://www.databricks.com/product/data-lakehouse
support_caveats: null
product_url: https://www.databricks.com/product/data-lakehouse
release_date_on_arm: 01/09/2022
vendor: Databricks
works_on_arm: true
- category: Container Registry
description: Dragonfly is an open source P2P-based file distribution and image acceleration
system.
download_url: https://github.com/dragonflyoss/Dragonfly2/releases
name: Dragonfly
optional_hidden_info:
other_info: No ARM64 specific release notes are available. The first binary for
ARM64 was released from v2.0.5 version.
release_notes__recommended_minimum: null
release_notes__supported_minimum: https://github.com/dragonflyoss/Dragonfly2/releases/tag/v2.0.5
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: null
official_docs: https://d7y.io/docs/next/getting-started/quick-start/
partner_content: null
homepage_url: https://d7y.io/
support_caveats: null
supported_minimum_version:
release_date: 4/8/2022
version_number: 2.0.5
works_on_arm: true
- category: Security & Compliance
description: Falco is a cloud native runtime security tool for Linux operating systems.
download_url: https://falco.org/docs/install-operate/download/
name: Falco
optional_hidden_info:
other_info: null
release_notes__recommended_minimum: null
release_notes__supported_minimum: https://falco.org/blog/falco-0-32-1/
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: null
official_docs: https://falco.org/docs/install-operate/installation/
partner_content: https://aws.amazon.com/blogs/containers/implementing-runtime-security-in-amazon-eks-using-cncf-falco/
homepage_url: https://falco.org/
support_caveats: null
supported_minimum_version:
release_date: 11/07/2022
version_number: 0.32.1
works_on_arm: true
- Params:
category: Storage
description: The Storage Performance Development Kit (SPDK) provides a set of
tools and libraries for writing high performance, scalable, user-mode storage
applications.
download_url: https://github.com/spdk/spdk/releases
name: SPDK
optional_hidden_info:
other_info: No ARM64 specific release notes and binaries are available. Need
to build and install it from source from git repository.
release_notes__recommended_minimum: null
release_notes__supported_minimum: null
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: null
official_docs: https://spdk.io/doc/getting_started.html
partner_content: null
homepage_url: https://spdk.io/
support_caveats: null
supported_minimum_version:
release_date: 30/12/2022
version_number: 22.09
works_on_arm: true
- Params:
category: AI/ML
description: TensorFlow is an end-to-end open-source platform for machine learning.
download_url: https://pypi.org/project/tensorflow/2.15.0/#files
name: Tensorflow
optional_hidden_info:
other_info: From TensorFlow 2.10 onwards, Linux CPU-builds for Aarch64/ARM64
processors are built, maintained, tested and released by a third party "AWS".
Installing the tensorflow package on an ARM machine installs AWS's tensorflow-cpu-aws
package.
release_notes__recommended_minimum: null
release_notes__supported_minimum: https://www.tensorflow.org/install/pip#linux
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/aarch64-docker-images-for-tensorflow-and-pytorch
official_docs: https://www.tensorflow.org/lite/guide/build_arm
partner_content: https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-graviton-tensorflow.html
homepage_url: https://www.tensorflow.org/
support_caveats: null
supported_minimum_version:
release_date: 7/9/2022
version_number: 2.10.0
works_on_arm: true
- Params:
category: Databases
description: Data lakehouse is a new, open data management architecture that combines
the flexibility, cost-efficiency, and scale of data lakes with the data management
and ACID transactions of data warehouses, enabling business intelligence (BI)
and machine learning (ML) on all data.
name: Data-Lakehouse
optional_hidden_info:
other_info: null
release_notes__arm_supported: https://www.databricks.com/blog/2022/04/18/announcing-databricks-support-for-aws-graviton2-with-up-to-3x-better-price-performance.html
optional_info:
alternative_options: null
getting_started_resources:
arm_content: null
official_docs: https://docs.databricks.com/en/compute/graviton.html
partner_content: https://www.databricks.com/blog/2022/04/18/announcing-databricks-support-for-aws-graviton2-with-up-to-3x-better-price-performance.html
homepage_url: https://www.databricks.com/product/data-lakehouse
support_caveats: null
product_url: https://www.databricks.com/product/data-lakehouse
release_date_on_arm: 01/09/2022
vendor: Databricks
works_on_arm: true
- Params:
category: Container Registry
description: Dragonfly is an open source P2P-based file distribution and image
acceleration system.
download_url: https://github.com/dragonflyoss/Dragonfly2/releases
name: Dragonfly
optional_hidden_info:
other_info: No ARM64 specific release notes are available. The first binary
for ARM64 was released from v2.0.5 version.
release_notes__recommended_minimum: null
release_notes__supported_minimum: https://github.com/dragonflyoss/Dragonfly2/releases/tag/v2.0.5
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: null
official_docs: https://d7y.io/docs/next/getting-started/quick-start/
partner_content: null
homepage_url: https://d7y.io/
support_caveats: null
supported_minimum_version:
release_date: 4/8/2022
version_number: 2.0.5
works_on_arm: true
- Params:
category: Security & Compliance
description: Falco is a cloud native runtime security tool for Linux operating
systems.
download_url: https://falco.org/docs/install-operate/download/
name: Falco
optional_hidden_info:
other_info: null
release_notes__recommended_minimum: null
release_notes__supported_minimum: https://falco.org/blog/falco-0-32-1/
optional_info:
alternative_options: null
arm_recommended_minimum_version:
release_date: null
version_number: null
getting_started_resources:
arm_content: null
official_docs: https://falco.org/docs/install-operate/installation/
partner_content: https://aws.amazon.com/blogs/containers/implementing-runtime-security-in-amazon-eks-using-cncf-falco/
homepage_url: https://falco.org/
support_caveats: null
supported_minimum_version:
release_date: 11/07/2022
version_number: 0.32.1
works_on_arm: true
22 changes: 5 additions & 17 deletions themes/arm-design-system-hugo-theme/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,18 @@
{{ $packages_opensource := where (.Site.GetPage "/opensource_packages").Pages "Type" "opensource_packages" }}
{{ $packages_commercial := where (.Site.GetPage "/commercial_packages").Pages "Type" "commercial_packages" }}
{{ $packages_all := $packages_opensource | union $packages_commercial }}
{{ $sorted := $packages_all.ByDate.Reverse }}

{{ range first 5 $sorted }}
<div>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p>{{ .Date.Format "January 2, 2006" }}</p>
<p>{{ .Summary }}</p>
</div>
{{ end }}
{{ $packages_alphabetical_order := sort $packages_all ".Params.name" }}

<!-- Get initial most recent 5 packages, either commercial or opensource -->
{{ $filter_categories := .Site.Data.active_categories }}
<!-- Get initial most recent 5 packages from data file -->
{{ $recent_packages := $.Site.Data.recently_added_packages }}

<!-- Get all Filter categories from file -->
<!-- Get all Filter categories from data file -->
{{ $filter_categories := .Site.Data.active_categories }}

{{/*******************************************************
*******************************************************/}}



<!-- space for top header to stay clear of other stuff -->
<div style="height: 100px;"></div>
{{ partial "eco-dashboard/title-top.html" .}}
Expand Down Expand Up @@ -84,11 +75,8 @@ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>


<!-- Data table -->
<!--
c-table-row--pinned
{{ partial "package-display/table.html" $recent_packages}}

c-table-row--expanded
-->
<table class="c-table is-selectable" cellspacing="0">
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{/*

Takes in a date in format dd/mm/yyyy and tranlates to '2021 January' format.

*/}}


<!-- Lookup table -->
{{ $monthNumberToName := dict
"01" "January" "1" "January"
"02" "February" "2" "February"
"03" "March" "3" "March"
"04" "April" "4" "April"
"05" "May" "5" "May"
"06" "June" "6" "June"
"07" "July" "7" "July"
"08" "August" "8" "August"
"09" "September" "9" "September"
"10" "October"
"11" "November"
"12" "December" }}

{{ $date := split . "/" }}
{{ $yyyy := index $date 2 }}
{{ $mm := index $date 1 }}

{{ $monthName := index $monthNumberToName $mm }} <!-- Translate month number to Name -->
{{ $dateFormatted := print $yyyy " " $monthName }} <!-- Format the date -->

<!-- Return -->
{{ $dateFormatted }}

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

<tr id="row-{{.id_index}}"
class="c-table-row main-sw-row search-div tag-{{.category}}"
{{/* Need to translate date into sortable format string like data-date="20210101" data-date="{{if .metadata.Params.release_date_on_arm}} {{.metadata.Params.release_date_on_arm}} {{else}} {{.metadata.Params.}}" */}}
data-title="{{.metadata.Params.name}}"
onclick="rowClickHandler(this);">


<td>
{{/* Icon space */}}
</td>


<td class="search-title">
<div class="package-name">
{{ .metadata.Params.name }}
</div>
</td>


<td>
<div class="date-supported">
{{if .metadata.Params.works_on_arm}}
{{if .metadata.Params.release_date_on_arm}}
{{ partial "package-display/_date-formating.html" .metadata.Params.release_date_on_arm }}
{{else}}
{{ partial "package-display/_date-formating.html" .metadata.Params.supported_minimum_version.release_date}}
{{end}}
{{else}}
Not yet supported
{{end}}
</div>
</td>


<td>
<div class="download-link">
{{if .metadata.Params.download_url}}
{{ .metadata.Params.download_url}}
{{else}}
{{.metadata.Params.product_url}}
{{end}}
</div>
</td>

</tr>
Empty file.
Loading

0 comments on commit 2eebe84

Please sign in to comment.