Skip to content

Commit

Permalink
Merge pull request #326 from linuxserver/monthly-by-categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxedus authored Jan 28, 2025
2 parents 21950bd + ea29056 commit d833c82
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/generate-jenkins/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ build_armhf: false
image_provenance: true
image_sbom: true
image_builder: 'container'
project_categories: ""
7 changes: 7 additions & 0 deletions roles/generate-jenkins/templates/DOCUMENTATION.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
{%- set has_latest= true if (development_versions == true and 'latest' in (development_versions_items | map(attribute="tag"))) or (development_versions == false) else false -%}
---
title: {{ project_name }}
{% if project_categories %}
tags:
{% for tag in project_categories.split(",") %}
- {{ tag | title }}
{% endfor %}
{% endif %}
description: "{{ noter(project_blurb) | trim }}"
---
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}
{% if project_deprecation_status %}
Expand Down
9 changes: 9 additions & 0 deletions roles/generate-jenkins/templates/DOCUMENTATION.j2-CUSTOM
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
{% from 'common_macros.j2' import noter with context %}
---
title: {{ project_name }}
{% if project_categories is defined and project_blurb is defined %}
{% if project_categories and project_blurb %}
tags:
{% for tag in project_categories.split(",") %}
- {{ tag | title }}
{% endfor %}
description: "{{ noter(project_blurb) | trim }}"
{% endif %}
{% endif %}
---
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}

Expand Down

0 comments on commit d833c82

Please sign in to comment.