Skip to content

Commit d833c82

Browse files
authored
Merge pull request #326 from linuxserver/monthly-by-categories
2 parents 21950bd + ea29056 commit d833c82

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

roles/generate-jenkins/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ build_armhf: false
6161
image_provenance: true
6262
image_sbom: true
6363
image_builder: 'container'
64+
project_categories: ""

roles/generate-jenkins/templates/DOCUMENTATION.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
{%- set has_latest= true if (development_versions == true and 'latest' in (development_versions_items | map(attribute="tag"))) or (development_versions == false) else false -%}
55
---
66
title: {{ project_name }}
7+
{% if project_categories %}
8+
tags:
9+
{% for tag in project_categories.split(",") %}
10+
- {{ tag | title }}
11+
{% endfor %}
12+
{% endif %}
13+
description: "{{ noter(project_blurb) | trim }}"
714
---
815
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}
916
{% if project_deprecation_status %}

roles/generate-jenkins/templates/DOCUMENTATION.j2-CUSTOM

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
{% from 'common_macros.j2' import noter with context %}
33
---
44
title: {{ project_name }}
5+
{% if project_categories is defined and project_blurb is defined %}
6+
{% if project_categories and project_blurb %}
7+
tags:
8+
{% for tag in project_categories.split(",") %}
9+
- {{ tag | title }}
10+
{% endfor %}
11+
description: "{{ noter(project_blurb) | trim }}"
12+
{% endif %}
13+
{% endif %}
514
---
615
{% include "README_SNIPPETS/DO_NOT_EDIT.j2" | trim %}
716

0 commit comments

Comments
 (0)