Skip to content

Commit

Permalink
fix: families
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto committed Jan 10, 2025
1 parent 1e827fa commit f6dad6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions doc/source/_static/js/landing_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ function handleFamilySelection() {
document.querySelectorAll('#product-families-list input[type="checkbox"]:checked')
).map(checkbox => checkbox.id.replace('family-', '').toLowerCase());

console.log('Selected families:', selectedFamilies);

const projectCards = document.querySelectorAll('.project-card');

projectCards.forEach(card => {
Expand Down
2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ it is now a collection of many Python packages for using Ansys products through

<div class="projects" style="">
{% for project, metadata in projects['projects'].items() %}
<div class="project-card sd-shadow-sm sd-card-hover" data-family="{{ metadata.get('family', 'other') | lower }}">
<div class="project-card sd-shadow-sm sd-card-hover" data-family="{{ metadata.get('family', 'other') | lower | replace(' ', '-') }}">
<img class="project-thumbnail" src="{{ metadata['thumbnail'] }}" />
<p class="project-title"> {{ metadata['name'] }} </p>
<p class="project-description"> {{ metadata['description'] }} </p>
Expand Down
4 changes: 2 additions & 2 deletions projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ projects:
repository: https://github.com/ansys/pyansys-geometry
description: Pythonic interface to the Ansys Geometry service
thumbnail: _static/thumbnails/pyansys-geometry.png
family: 3D Design
family: CAD
tags: [Flagship]
documentation:
base: https://geometry.docs.pyansys.com/version/stable
Expand All @@ -83,7 +83,7 @@ projects:
repository: https://github.com/ansys/pyansys-sound
description: Pythonic interface to Ansys Sound
thumbnail: _static/thumbnails/pyansys-sound.png
family: [Accoustics]
family: Accoustics
tags: [Flagship]
documentation:
base: https://sound.docs.pyansys.com/version/stable
Expand Down

0 comments on commit f6dad6c

Please sign in to comment.