releasehx 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +1 -1
  3. data/lib/releasehx/generated.rb +1 -1
  4. data/lib/releasehx/rhyml/templates/changelog.adoc.liquid +14 -0
  5. data/lib/releasehx/rhyml/templates/changelog.html.liquid +14 -0
  6. data/lib/releasehx/rhyml/templates/changelog.md.liquid +11 -0
  7. data/lib/releasehx/rhyml/templates/changes-sorter.liquid +64 -0
  8. data/lib/releasehx/rhyml/templates/config-cascade.liquid +61 -0
  9. data/lib/releasehx/rhyml/templates/entry.adoc.liquid +26 -0
  10. data/lib/releasehx/rhyml/templates/entry.html.liquid +38 -0
  11. data/lib/releasehx/rhyml/templates/entry.md.liquid +25 -0
  12. data/lib/releasehx/rhyml/templates/groupby.liquid +12 -0
  13. data/lib/releasehx/rhyml/templates/groupings.liquid +97 -0
  14. data/lib/releasehx/rhyml/templates/groups-parser.liquid +60 -0
  15. data/lib/releasehx/rhyml/templates/head-parser.liquid +34 -0
  16. data/lib/releasehx/rhyml/templates/header.liquid +17 -0
  17. data/lib/releasehx/rhyml/templates/history.adoc.liquid +11 -0
  18. data/lib/releasehx/rhyml/templates/history.html.liquid +54 -0
  19. data/lib/releasehx/rhyml/templates/history.md.liquid +16 -0
  20. data/lib/releasehx/rhyml/templates/item.liquid +35 -0
  21. data/lib/releasehx/rhyml/templates/metadata-entry.adoc.liquid +56 -0
  22. data/lib/releasehx/rhyml/templates/metadata-entry.html.liquid +2 -0
  23. data/lib/releasehx/rhyml/templates/metadata-entry.md.liquid +130 -0
  24. data/lib/releasehx/rhyml/templates/metadata-note.adoc.liquid +56 -0
  25. data/lib/releasehx/rhyml/templates/metadata-note.html.liquid +36 -0
  26. data/lib/releasehx/rhyml/templates/metadata-note.md.liquid +30 -0
  27. data/lib/releasehx/rhyml/templates/note.adoc.liquid +52 -0
  28. data/lib/releasehx/rhyml/templates/note.html.liquid +25 -0
  29. data/lib/releasehx/rhyml/templates/note.md.liquid +37 -0
  30. data/lib/releasehx/rhyml/templates/parts-listing.liquid +61 -0
  31. data/lib/releasehx/rhyml/templates/release-notes.adoc.liquid +14 -0
  32. data/lib/releasehx/rhyml/templates/release-notes.html.liquid +14 -0
  33. data/lib/releasehx/rhyml/templates/release-notes.md.liquid +14 -0
  34. data/lib/releasehx/rhyml/templates/release.adoc.liquid +16 -0
  35. data/lib/releasehx/rhyml/templates/release.html.liquid +20 -0
  36. data/lib/releasehx/rhyml/templates/release.md.liquid +20 -0
  37. data/lib/releasehx/rhyml/templates/rhyml-change-append.yaml.liquid +7 -0
  38. data/lib/releasehx/rhyml/templates/rhyml-change.yaml.liquid +39 -0
  39. data/lib/releasehx/rhyml/templates/rhyml.yaml.liquid +14 -0
  40. data/lib/releasehx/rhyml/templates/section-text.liquid +9 -0
  41. data/lib/releasehx/rhyml/templates/sections.liquid +47 -0
  42. data/lib/releasehx/rhyml/templates/tags-listing.liquid +61 -0
  43. metadata +40 -1
@@ -0,0 +1,35 @@
1
+ {%- assign metadata_kinds = "" | split: "," %}
2
+ {%- assign group1_kind = group1_kind | default: "" %}
3
+ {%- assign group2_kind = group2_kind | default: "" %}
4
+ {%- if group1_kind != "type" and group2_kind != "type" and config.types %}
5
+ {%- assign metadata_kind = "type" | split: "," %}
6
+ {%- assign metadata_kinds = metadata_kinds | concat: metadata_kind %}
7
+ {%- endif %}
8
+ {%- if group1_kind != "part" and group2_kind != "part" %}
9
+ {%- assign metadata_kind = "part" | split: "," %}
10
+ {%- assign metadata_kinds = metadata_kinds | concat: metadata_kind %}
11
+ {%- endif %}
12
+ {%- if group1_kind != "tag" and group2_kind != "tag" %}
13
+ {%- assign metadata_kind = "tag" | split: "," %}
14
+ {%- assign metadata_kinds = metadata_kinds | concat: metadata_kind %}
15
+ {%- endif %}
16
+
17
+ {%- if format == "asciidoc" %}
18
+ {%- if section_type == "notes" %}
19
+ {%- embed note.adoc.liquid %}
20
+ {%- else %}
21
+ {%- embed entry.adoc.liquid %}
22
+ {%- endif -%}
23
+ {%- elsif format == "markdown" %}
24
+ {%- if section_type == "notes" %}
25
+ {%- embed note.md.liquid %}
26
+ {%- else %}
27
+ {%- embed entry.md.liquid %}
28
+ {%- endif -%}
29
+ {%- elsif format == "html" %}
30
+ {%- if section_type == "notes" %}
31
+ {%- embed note.html.liquid %}
32
+ {%- else %}
33
+ {%- embed entry.html.liquid %}
34
+ {%- endif -%}
35
+ {%- endif %}
@@ -0,0 +1,56 @@
1
+ {%- assign show_labels = entry_metadata_labels %}
2
+ {%- assign show_icons = entry_metadata_icons %}
3
+ {%- assign metadata_kinds = 'type,part' | split: ',' %}
4
+ {%- assign format = "asciidoc" %}
5
+ {%- embed tags-listing.liquid %}
6
+ {%- embed parts-listing.liquid %}
7
+ {%- capture change_metadata %}
8
+ {%- if parts_listing != "" and entry_show_parts_label %}
9
+ {{- parts_listing | trim }}
10
+ {%- elsif change.parts and change.parts.size > 0 and entry_show_parts_label == false %}
11
+ {%- for part in change.parts %}
12
+ {%- unless part == "changelog" or part == "release_note_needed" %}
13
+ {{ config.parts[part]['text'] | default: part }}
14
+ {%- endunless %}
15
+ {%- endfor %}
16
+ {%- endif %}
17
+ {%- if change.type %}
18
+ {%- assign type_config = config.types[change.type] %}
19
+ {%- if entry_show_type_label %}
20
+ [.meta-label.type-label]*{{ labeling_type_label }}:*
21
+ {%- endif %}
22
+ {%- if type_config.icon and show_icons and show_icons == "before" %}
23
+ icon:{{ type_config.icon | default: 'tag' }}[role=meta-icon]
24
+ {%- endif %}
25
+ {{ type_config.text | default: change.type }}
26
+ {%- if type_config.icon and show_icons and show_icons == "after" %}
27
+ icon:{{ type_config.icon | default: 'tag' }}[role=meta-icon]
28
+ {%- endif %}
29
+ {%- endif %}
30
+ {%- if tags_listing != "" and entry_show_tags_label %}
31
+ {{- tags_listing | trim }}
32
+ {%- elsif change.tags and change.tags.size > 0 and entry_show_tags_label == false %}
33
+ {%- for tag in change.tags %}
34
+ {%- unless tag == "changelog" or tag == "release_note_needed" %}
35
+ {{ config.tags[tag]['text'] | default: tag }}
36
+ {%- endunless %}
37
+ {%- endfor %}
38
+ {%- endif %}
39
+ {%- if entry_show_lead and change.lead %}
40
+ {%- if entry_show_lead_label %}
41
+ [.meta-label.lead-label]*{{ labeling_lead_label }}:*
42
+ {%- endif %}
43
+ {%- if entry_user_link_template %}
44
+ link:{{ entry_user_link_template | render: change }}[icon:user[]{{ change.lead }}]
45
+ {%- else %}
46
+ icon:user[]{{ change.lead }}
47
+ {%- endif %}
48
+ {%- endif %}
49
+ {%- if config.links.web.href and config.links.web.href != "" %}
50
+ link:{{ config.links.web.href | render: change }}[icon:{{ config.links.web.icon }}[]{{ config.links.web.text | render: change }}]
51
+ {%- endif -%}
52
+ {%- if entry_show_git_links and config.links.git.href and config.links.git.href != "" %}
53
+ link:{{ config.links.git.href | render: change }}[icon:{{ config.links.git.icon | default: 'code-fork' }}[]{{ change.hash | slice: 0, 7 }}]
54
+ {%- endif %}
55
+ {%- endcapture %}
56
+ {%- assign catch_metadata_error = change_metadata %}
@@ -0,0 +1,2 @@
1
+ {%- embed metadata-note.html.liquid -%}
2
+
@@ -0,0 +1,130 @@
1
+ {%- assign metadata_parts = "" | split: "," -%}
2
+
3
+ {%- comment -%}Collect ticket link{%- endcomment -%}
4
+ {%- if entry_show_issue_links and change.tick and config.links.web.href and config.links.web.href != "" -%}
5
+ {%- assign ticket_link_text = config.links.web.text | render: change -%}
6
+ {%- if config.links.web.href and config.links.web.href != "" -%}
7
+ {%- assign ticket_link = "[" | append: ticket_link_text | append: "](" | append: config.links.web.href | render: change | append: ")" -%}
8
+ {%- endif -%}
9
+ {%- assign ticket_part = ticket_link | split: "," -%}
10
+ {%- assign metadata_parts = metadata_parts | concat: ticket_part -%}
11
+ {%- endif -%}
12
+
13
+ {%- if metadata_kinds contains "part" %}
14
+ {%- comment -%}Collect parts/components{%- endcomment -%}
15
+ {%- assign effective_parts = "" | split: "," -%}
16
+ {%- if change.parts and change.parts.size > 0 -%}
17
+ {%- assign effective_parts = change.parts -%}
18
+ {%- elsif change.part -%}
19
+ {%- assign effective_parts = change.part | split: "," -%}
20
+ {%- endif -%}
21
+ {%- if effective_parts.size > 0 -%}
22
+ {%- assign parts_formatted = "" | split: "," -%}
23
+ {%- assign parts_count = 0 -%}
24
+ {%- for part in effective_parts -%}
25
+ {%- assign skip_part = false -%}
26
+ {%- if part == "changelog" or part == "release_note_needed" -%}
27
+ {%- assign skip_part = true -%}
28
+ {%- elsif part == group1_slug or part == group2_slug -%}
29
+ {%- assign skip_part = true -%}
30
+ {%- elsif config.parts[part] == nil -%}
31
+ {%- assign skip_part = true -%}
32
+ {%- endif -%}
33
+ {%- unless skip_part -%}
34
+ {%- assign part_config = config.parts[part] -%}
35
+ {%- assign part_text = part_config.text | default: part -%}
36
+ {%- assign bold_part = "**" | append: part_text | append: "**" -%}
37
+ {%- assign bold_part_array = bold_part | split: "," -%}
38
+ {%- assign parts_formatted = parts_formatted | concat: bold_part_array -%}
39
+ {%- assign parts_count = parts_count | plus: 1 -%}
40
+ {%- endunless -%}
41
+ {%- endfor -%}
42
+ {%- if parts_count > 0 -%}
43
+ {%- assign parts_joined = parts_formatted | join: labeling_join_string -%}
44
+ {%- if entry_show_parts_label -%}
45
+ {%- if labeling_singularize_labels and parts_count == 1 -%}
46
+ {%- assign parts_text = labeling_part_label | append: ": " | append: parts_joined -%}
47
+ {%- else -%}
48
+ {%- assign parts_text = labeling_parts_label | append: ": " | append: parts_joined -%}
49
+ {%- endif -%}
50
+ {%- else -%}
51
+ {%- assign parts_text = parts_joined -%}
52
+ {%- endif -%}
53
+ {%- assign parts_part = parts_text | split: "," -%}
54
+ {%- assign metadata_parts = metadata_parts | concat: parts_part -%}
55
+ {%- endif -%}
56
+ {%- endif -%}
57
+ {%- endif -%}
58
+
59
+ {%- if metadata_kinds contains "type" %}
60
+ {%- comment -%}Collect type (only if not already being grouped by type){%- endcomment -%}
61
+ {%- assign skip_type = false -%}
62
+ {%- if change.type == group1_slug or change.type == group2_slug -%}
63
+ {%- assign skip_type = true -%}
64
+ {%- endif -%}
65
+ {%- if change.type and skip_type == false -%}
66
+ {%- assign type_config = config.types[change.type] -%}
67
+ {%- if entry_show_type_label -%}
68
+ {%- assign type_text = labeling_type_label | append: ": " | append: type_config.text | default: change.type | capitalize -%}
69
+ {%- else -%}
70
+ {%- assign type_text = type_config.text | default: change.type | capitalize -%}
71
+ {%- endif -%}
72
+ {%- assign type_part = type_text | split: "," -%}
73
+ {%- assign metadata_parts = metadata_parts | concat: type_part -%}
74
+ {%- endif -%}
75
+ {%- endif -%}
76
+
77
+ {%- if metadata_kinds contains "tag" %}
78
+ {%- comment -%}Collect tags{%- endcomment -%}
79
+ {%- if change.tags and change.tags.size > 0 -%}
80
+ {%- assign tags_formatted = "" | split: "," -%}
81
+ {%- assign tags_count = 0 -%}
82
+ {%- for tag in change.tags -%}
83
+ {%- assign skip_tag = false -%}
84
+ {%- if tag == "changelog" or tag == "release_note_needed" -%}
85
+ {%- assign skip_tag = true -%}
86
+ {%- elsif tag == group1_slug or tag == group2_slug -%}
87
+ {%- assign skip_tag = true -%}
88
+ {%- elsif config.tags[tag] == nil -%}
89
+ {%- assign skip_tag = true -%}
90
+ {%- endif -%}
91
+ {%- unless skip_tag -%}
92
+ {%- assign tag_text_array = tag | split: "," -%}
93
+ {%- assign tags_formatted = tags_formatted | concat: tag_text_array -%}
94
+ {%- assign tags_count = tags_count | plus: 1 -%}
95
+ {%- endunless -%}
96
+ {%- endfor -%}
97
+ {%- if tags_count > 0 -%}
98
+ {%- if entry_show_tags_label -%}
99
+ {%- if labeling_singularize_labels and tags_count == 1 -%}
100
+ {%- assign tags_text = labeling_tag_label | append: ": " | append: tags_formatted | join: labeling_join_string -%}
101
+ {%- else -%}
102
+ {%- assign tags_text = labeling_tags_label | append: ": " | append: tags_formatted | join: labeling_join_string -%}
103
+ {%- endif -%}
104
+ {%- else -%}
105
+ {%- assign tags_text = tags_formatted | join: labeling_join_string -%}
106
+ {%- endif -%}
107
+ {%- assign tags_part = tags_text | split: "," -%}
108
+ {%- assign metadata_parts = metadata_parts | concat: tags_part -%}
109
+ {%- endif -%}
110
+ {%- endif -%}
111
+ {%- endif -%}
112
+
113
+ {%- comment -%}Collect lead contributor{%- endcomment -%}
114
+ {%- if entry_show_lead and change.lead -%}
115
+ {%- if entry_show_lead_label -%}
116
+ {%- assign lead_prefix = labeling_lead_label | append: ": " -%}
117
+ {%- else -%}
118
+ {%- assign lead_prefix = "" -%}
119
+ {%- endif -%}
120
+ {%- if entry_user_link_template -%}
121
+ {%- assign lead_text = lead_prefix | append: "[" | append: change.lead | append: "](" | append: entry_user_link_template | render: change | append: ")" -%}
122
+ {%- else -%}
123
+ {%- assign lead_text = lead_prefix | append: change.lead -%}
124
+ {%- endif -%}
125
+ {%- assign lead_part = lead_text | split: "," -%}
126
+ {%- assign metadata_parts = metadata_parts | concat: lead_part -%}
127
+ {%- endif -%}
128
+
129
+ {%- comment -%}Output the final metadata string{%- endcomment -%}
130
+ {%- assign change_metadata = metadata_parts | join: " | " -%}
@@ -0,0 +1,56 @@
1
+ {%- assign show_labels = note_metadata_labels %}
2
+ {%- assign show_icons = note_metadata_icons %}
3
+ {%- assign metadata_kinds = 'type,part' | split: ',' %}
4
+ {%- assign format = "asciidoc" %}
5
+ {%- embed tags-listing.liquid %}
6
+ {%- embed parts-listing.liquid %}
7
+ {%- capture change_metadata %}
8
+ {%- if parts_listing != "" and note_show_parts_label %}
9
+ {{- parts_listing | trim }}
10
+ {%- elsif change.parts and change.parts.size > 0 and note_show_parts_label == false %}
11
+ {%- for part in change.parts %}
12
+ {%- unless part == "changelog" or part == "release_note_needed" %}
13
+ {{ config.parts[part]['text'] | default: part }}
14
+ {%- endunless %}
15
+ {%- endfor %}
16
+ {%- endif %}
17
+ {%- if change.type %}
18
+ {%- assign type_config = config.types[change.type] %}
19
+ {%- if note_show_type_label %}
20
+ [.meta-label.type-label]*{{ labeling_type_label }}:*
21
+ {%- endif %}
22
+ {%- if type_config.icon and show_icons and show_icons == "before" %}
23
+ icon:{{ type_config.icon | default: 'tag' }}[role=meta-icon]
24
+ {%- endif %}
25
+ {{ type_config.text | default: change.type }}
26
+ {%- if type_config.icon and show_icons and show_icons == "after" %}
27
+ icon:{{ type_config.icon | default: 'tag' }}[role=meta-icon]
28
+ {%- endif %}
29
+ {%- endif %}
30
+ {%- if tags_listing != "" and note_show_tags_label %}
31
+ {{- tags_listing | trim }}
32
+ {%- elsif change.tags and change.tags.size > 0 and note_show_tags_label == false %}
33
+ {%- for tag in change.tags %}
34
+ {%- unless tag == "changelog" or tag == "release_note_needed" %}
35
+ {{ config.tags[tag]['text'] | default: tag }}
36
+ {%- endunless %}
37
+ {%- endfor %}
38
+ {%- endif %}
39
+ {%- if note_show_lead and change.lead %}
40
+ {%- if note_show_lead_label %}
41
+ [.meta-label.lead-label]*{{ labeling_lead_label }}:*
42
+ {%- endif %}
43
+ {%- if note_user_link_template %}
44
+ link:{{ note_user_link_template | render: change }}[icon:user[]{{ change.lead }}]
45
+ {%- else %}
46
+ icon:user[]{{ change.lead }}
47
+ {%- endif %}
48
+ {%- endif %}
49
+ {%- if config.links.web.href and config.links.web.href != "" %}
50
+ link:{{ config.links.web.href | render: change }}[icon:{{ config.links.web.icon }}[]{{ config.links.web.text | render: change }}]
51
+ {%- endif -%}
52
+ {%- if note_show_git_links and config.links.git.href and config.links.git.href != "" %}
53
+ link:{{ config.links.git.href | render: change }}[icon:{{ config.links.git.icon | default: 'code-fork' }}[]{{ change.hash | slice: 0, 7 }}]
54
+ {%- endif %}
55
+ {%- endcapture %}
56
+ {%- assign catch_metadata_error = change_metadata %}
@@ -0,0 +1,36 @@
1
+ {%- assign show_labels = content_config.items.metadata_labels %}
2
+ {%- assign show_icons = content_config.items.metadata_icons %}
3
+ {%- embed tags-listing.liquid %}
4
+
5
+ {%- capture change_metadata %}
6
+ {%- for kind in metadata_kinds %}
7
+ {%- assign change_meta_kind = change[kind] %}
8
+ {%- assign kind_plural = kind | append: "s" %}
9
+ {%- if kind == "tag" %}
10
+ {%- continue %}
11
+ {%- endif %}
12
+ {%- if config[kind_plural][change_meta_kind].icon and show_icons and show_icons == "before" %}
13
+ <i class="fa fa-{{ config[kind_plural][change_meta_kind].icon | default: 'tag' }} meta-icon"></i>
14
+ {%- endif %}
15
+ {%- if show_labels %}
16
+ <span class="badge bg-secondary meta-label {{ kind }}-label">{{ config[kind_plural][change_meta_kind]['text'] | default: change_meta_kind }}</span>
17
+ {%- endif %}
18
+ {%- if config[kind_plural][change_meta_kind].icon and show_icons and show_icons == "after" %}
19
+ <i class="fa fa-{{ config[kind_plural][change_meta_kind].icon | default: 'tag' }} meta-icon"></i>
20
+ {%- endif %}
21
+ {%- endfor %}
22
+ {%- if tags_listing != "" %}
23
+ {{ tags_listing | trim }}
24
+ {%- endif %}
25
+ {%- if config.links.web and config.links.web.href %}
26
+ <a href="{{ config.links.web.href | render: change }}" class="issue-link text-decoration-none">
27
+ <i class="fa fa-{{ config.links.web.icon | default: 'ticket' }}"></i>{{ config.links.web.text | render: change | default: change.tick }}
28
+ </a>
29
+ {%- endif -%}
30
+ {%- if config.links.git and config.links.git.href %}
31
+ <a href="{{ config.links.git.href | render: change }}" class="git-link text-decoration-none">
32
+ <i class="fa fa-{{ config.links.git.icon | default: 'code-fork' }}"></i>{% assign git_text = config.links.git.text | render: change | default: change.hash %}{{ git_text | slice: 0, 7 }}
33
+ </a>
34
+ {%- endif %}
35
+ {%- endcapture %}
36
+ {%- assign catch_metadata_error = change_metadata %}
@@ -0,0 +1,30 @@
1
+ {%- capture change_metadata -%}
2
+ {%- assign metadata_parts = "" | split: "," -%}
3
+ {%- if note_show_lead and change.lead -%}
4
+ {%- capture lead_text -%}
5
+ {%- if note_show_lead_links and config.links.user.href -%}
6
+ [{{ change.lead }}]({{ config.links.user.href | replace: '{{user}}', change.lead }})
7
+ {%- else -%}
8
+ {{ change.lead }}
9
+ {%- endif -%}
10
+ {%- endcapture -%}
11
+ {%- assign metadata_parts = metadata_parts | push: lead_text -%}
12
+ {%- endif -%}
13
+ {%- if note_show_issue_links and change.tick and config.links.web.href -%}
14
+ {%- capture issue_link -%}[{{ config.links.web.text | render: change }}]({{ config.links.web.href | render: change }}){%- endcapture -%}
15
+ {%- assign metadata_parts = metadata_parts | push: issue_link -%}
16
+ {%- elsif change.tick -%}
17
+ {%- assign metadata_parts = metadata_parts | push: change.tick -%}
18
+ {%- endif -%}
19
+ {%- embed parts-listing.liquid -%}
20
+ {%- if parts_listing and parts_listing != "" -%}
21
+ {%- assign metadata_parts = metadata_parts | push: parts_listing -%}
22
+ {%- endif -%}
23
+ {%- embed tags-listing.liquid -%}
24
+ {%- if tags_listing and tags_listing != "" -%}
25
+ {%- assign metadata_parts = metadata_parts | push: tags_listing -%}
26
+ {%- endif -%}
27
+ {%- if metadata_parts.size > 0 -%}
28
+ ({{ metadata_parts | join: ", " }})
29
+ {%- endif -%}
30
+ {%- endcapture -%}
@@ -0,0 +1,52 @@
1
+ {%- if config.conversions.markup == "markdown" %}
2
+ {%- assign change_note = change.note | default: "NO RELEASE NOTE PROVIDED" | md_to_adoc | trim %}
3
+ {%- else %}
4
+ {%- assign change_note = change.note | default: "NO RELEASE NOTE PROVIDED" | trim %}
5
+ {%- endif %}
6
+ {%- include metadata-note.adoc.liquid %}
7
+
8
+ {%- unless changes_listed contains change.chid %}
9
+ [[note-{{ change.chid }}]]
10
+ {%- endunless %}
11
+ [.release-note]
12
+ {%- if config.notes.items.frame == "table-cols-1" %}
13
+ |===
14
+ a| {{ change_metadata }} +
15
+ {%- if change.head %}
16
+ *{{ change.head }}* +
17
+ {%- endif %}
18
+ {{ change_note }}
19
+ |===
20
+ {%- elsif config.notes.items.frame == "table-cols-2" %}
21
+ [cols="5,2"]
22
+ |===
23
+ {%- if change.head %}
24
+ 2+a| *{{ change.head }}*
25
+ {%- endif %}
26
+ a| {{ change_note }}
27
+ a| {{ change_metadata }}
28
+ |===
29
+ {%- elsif config.notes.items.frame == "desc-list" %}
30
+ {{ change.head }}::
31
+ {{ change_note }} +
32
+ {{ change_metadata }}
33
+ {%- elsif config.notes.items.frame == "admonition" %}
34
+ {%- if change.type == "removal" or change.type == "deprecation" or change.type == "breaking" %}
35
+ {%- assign admonition_type = "WARNING" %}
36
+ {%- elsif change.type == "security" %}
37
+ {%- assign admonition_type = "IMPORTANT" %}
38
+ {%- elsif change.type == "experimental" %}
39
+ {%- assign admonition_type = "TIP" %}
40
+ {%- else %}
41
+ {%- assign admonition_type = "NOTE" %}
42
+ {%- endif %}
43
+ [{{ admonition_type }}]
44
+ {%- if change.head %}
45
+ .{{ change.head }}
46
+ {%- endif %}
47
+ ====
48
+ {{ change_note }} +
49
+ {{ change_metadata }}
50
+ ====
51
+ {%- endif %}
52
+
@@ -0,0 +1,25 @@
1
+ {%- if config.conversions.markup == "markdown" %}
2
+ {%- assign change_note = change.note | default: "NO RELEASE NOTE PROVIDED" | md_to_html | trim %}
3
+ {%- else %}
4
+ {%- assign change_note = change.note | default: "NO RELEASE NOTE PROVIDED" | trim %}
5
+ {%- endif %}
6
+ {%- include metadata-note.html.liquid %}
7
+
8
+ <div class="release-note card mb-3" id="note-{{ change.chid }}">
9
+ <div class="card-body">
10
+ {%- if change.head %}
11
+ <h5 class="card-title">{{ change.head }}</h5>
12
+ {%- endif %}
13
+
14
+ <div class="card-text">
15
+ {{ change_note }}
16
+ </div>
17
+
18
+ {%- if change_metadata != "" %}
19
+ <div class="change-metadata mt-3 pt-2 border-top">
20
+ {{ change_metadata | trim }}
21
+ </div>
22
+ {%- endif %}
23
+ </div>
24
+ </div>
25
+
@@ -0,0 +1,37 @@
1
+ {% if config.conversions.markup == "markdown" -%}
2
+ {% assign change_note = change.note | default: "NO RELEASE NOTE PROVIDED" | trim -%}
3
+ {% else -%}
4
+ {% assign change_note = change.note | default: "NO RELEASE NOTE PROVIDED" | adoc_to_md | trim -%}
5
+ {% endif -%}
6
+ {% embed metadata-note.md.liquid -%}
7
+
8
+ <a id="note-{{ change.chid }}"></a>
9
+ {%- if config.notes.items.frame == "table" %}
10
+ | Change | Details |
11
+ |--------|---------|
12
+ | {{ change_metadata }} | {% if change.head %}**{{ change.head }}**<br>{% endif %}{{ change_note }} |
13
+ {%- elsif config.notes.items.frame == "desc-list" %}
14
+ **{{ change.head }}**
15
+ {{ change_note }}
16
+ *{{ change_metadata }}*
17
+ {% elsif config.notes.items.frame == "admonition" %}
18
+ {% if change.type == "removal" or change.type == "deprecation" or change.type == "breaking" %}
19
+ {% assign admonition_type = "Warning" %}
20
+ {% elsif change.type == "security" %}
21
+ {% assign admonition_type = "Important" %}
22
+ {% elsif change.type == "experimental" %}
23
+ {% assign admonition_type = "Tip" %}
24
+ {% else %}
25
+ {% assign admonition_type = "Note" %}
26
+ {% endif %}
27
+
28
+ > **{{ admonition_type }}**: {% if change.head %}**{{ change.head }}** - {% endif %}{{ change_note }}
29
+ > {{ change_metadata }}
30
+ {% else -%}
31
+ {% if change.head -%}
32
+ ### {{ change.head }}
33
+ {% endif -%}
34
+ {{ change_note }}
35
+ {{- change_metadata }}
36
+ {% endif %}
37
+
@@ -0,0 +1,61 @@
1
+ {%- assign parts_listing = "" %}
2
+ {%- assign parts_count = 0 %}
3
+ {%- for part in change.parts %}
4
+ {%- assign skip_part = false %}
5
+ {%- if part == "changelog" or part == "release_note_needed" %}
6
+ {%- assign skip_part = true %}
7
+ {%- elsif part == group1_slug or part == group2_slug %}
8
+ {%- assign skip_part = true %}
9
+ {%- elsif config.parts[part] == nil %}
10
+ {%- assign skip_part = true %}
11
+ {%- endif %}
12
+ {%- unless skip_part %}
13
+ {%- assign parts_count = parts_count | plus: 1 %}
14
+ {%- endunless %}
15
+ {%- endfor %}
16
+
17
+ {%- if parts_count > 0 %}
18
+ {%- capture parts_listing -%}
19
+ {%- if show_labels -%}
20
+ {%- if format == "asciidoc" -%}
21
+ {%- if labeling_singularize_labels and parts_count == 1 -%}
22
+ [.meta-label.parts-label]*{{ labeling_part_label }}:*{%- else -%}[.meta-label.parts-label]*{{ labeling_parts_label }}:*{%- endif -%}
23
+ {%- elsif format == "markdown" -%}
24
+ {%- if labeling_singularize_labels and parts_count == 1 -%}
25
+ {{ labeling_part_label }}: {%- else -%}{{ labeling_parts_label }}: {%- endif -%}
26
+ {%- endif -%}
27
+ {%- endif -%}
28
+ {%- assign part_texts = "" | split: "," -%}
29
+ {%- for part in change.parts -%}
30
+ {%- assign skip_part = false -%}
31
+ {%- if part == "changelog" or part == "release_note_needed" -%}
32
+ {%- assign skip_part = true -%}
33
+ {%- elsif part == group1_slug or part == group2_slug -%}
34
+ {%- assign skip_part = true -%}
35
+ {%- elsif config.parts[part] == nil -%}
36
+ {%- assign skip_part = true -%}
37
+ {%- endif -%}
38
+ {%- unless skip_part -%}
39
+ {%- capture part_text -%}
40
+ {%- if config.parts[part].icon and show_icons and show_icons == "before" -%}
41
+ {%- if format == "asciidoc" -%}icon:{{ config.parts[part].icon }}[] {%- endif -%}
42
+ {%- endif -%}
43
+ {%- if format == "asciidoc" -%}
44
+ {{ config.parts[part]['text'] | default: part }}{%- elsif format == "markdown" -%}**{{ config.parts[part]['text'] | default: part }}**{%- endif -%}
45
+ {%- if config.parts[part].icon and show_icons and show_icons == "after" -%}
46
+ {%- if format == "asciidoc" -%} icon:{{ config.parts[part].icon }}[]{%- endif -%}
47
+ {%- endif -%}
48
+ {%- endcapture -%}
49
+ {%- assign part_texts = part_texts | push: part_text -%}
50
+ {%- endunless -%}
51
+ {%- endfor -%}
52
+ {%- if part_texts.size > 0 -%}
53
+ {%- if format == "asciidoc" -%}
54
+ {%- for part_text in part_texts -%}
55
+ {{ part_text }}{%- unless forloop.last %} {%- endunless -%}
56
+ {%- endfor -%}
57
+ {%- elsif format == "markdown" -%}
58
+ {{ part_texts | join: ", " }}{%- endif -%}
59
+ {%- endif -%}
60
+ {%- endcapture -%}
61
+ {%- endif -%}
@@ -0,0 +1,14 @@
1
+ {%- assign content_config = config.notes %}
2
+ {%- assign section_type = "notes" %}
3
+ {%- embed config-cascade.liquid %}
4
+ {% embed changes-sorter.liquid %}
5
+ {%- assign level = content_config.htag | replace: "h", "" | default: dflt_next_header_level | plus: 0 %}
6
+ {%- include header.liquid
7
+ format=format
8
+ level=level
9
+ text=content_config.head %}
10
+ {%- assign dflt_next_header_level = level | plus: 1 %}
11
+ {%- assign item_count = 0 %}
12
+ {%- embed section-text.liquid %}
13
+
14
+ {%- embed groupings.liquid %}
@@ -0,0 +1,14 @@
1
+ {%- assign content_config = config.notes %}
2
+ {%- embed changes-sorter.liquid %}
3
+ {%- assign level = content_config.htag | replace: "h", "" | default: dflt_next_header_level | plus: 0 %}
4
+ {%- assign dflt_next_header_level = level | plus: 1 -%}
5
+ {%- assign item_count = 0 %}
6
+
7
+ <div class="notes-section">
8
+ {%- include header.liquid format=format level=level text=content_config.head %}
9
+
10
+ {%- embed section-text.liquid %}
11
+
12
+ {%- embed groupings.liquid %}
13
+ </div>
14
+
@@ -0,0 +1,14 @@
1
+ {%- assign content_config = config.notes %}
2
+ {%- assign section_type = "notes" %}
3
+ {%- embed config-cascade.liquid %}
4
+ {% embed changes-sorter.liquid %}
5
+ {%- assign level = content_config.htag | replace: "h", "" | default: dflt_next_header_level | plus: 0 %}
6
+ {%- include header.liquid
7
+ format=format
8
+ level=level
9
+ text=content_config.head %}
10
+ {%- assign dflt_next_header_level = level | plus: 1 %}
11
+ {%- assign item_count = 0 %}
12
+ {%- embed section-text.liquid %}
13
+
14
+ {%- embed groupings.liquid %}
@@ -0,0 +1,16 @@
1
+ {%- assign format = "asciidoc" %}
2
+ {%- assign config = vars.config %}
3
+ {%- assign release = vars.release %}
4
+ {%- assign changes = vars.changes %}
5
+ {%- assign sorted = vars.sorted -%}
6
+ :icons: font
7
+ {% embed head-parser.liquid %}
8
+
9
+ {%- if release.hash and release.hash != "" and config.links.git and config.links.git.trim != "" %}
10
+ link:{{ config.links.git | render: release }}[icon:{{ config.links.git_icon | default: 'code-fork' }}[]{{ release.hash | slice: 0, 7 }}]
11
+ {%- endif %}
12
+ {%- if config.links.get.href and config.links.get.href.trim != "" %}
13
+ [.btn.btn-success]#link:{{ config.links.get.href | render: release }}[icon:{{ config.links.get.icon | default: 'download' }}[] {{ config.links.get.text | default: 'Get this release' }}]#
14
+ {%- endif %}
15
+
16
+ {%- embed sections.liquid %}
@@ -0,0 +1,20 @@
1
+ {%- assign format = "html" %}
2
+ {%- assign config = vars.config %}
3
+ {%- assign release = vars.release %}
4
+ {%- assign changes = vars.changes %}
5
+ {%- assign sorted = vars.sorted -%}
6
+ {%- embed head-parser.liquid %}
7
+
8
+ <div class="release-section" id="release-{{ release.code | slugify }}">
9
+ {%- if release.hash and release.hash != "" and config.links.git and config.links.git != "" %}
10
+ <div class="mb-2">
11
+ <a href="{{ config.links.git | render: release }}" class="git-link text-decoration-none">
12
+ <i class="fa fa-{{ config.links.git_icon | default: 'code-fork' }}"></i>
13
+ {{ release.hash | slice: 0, 7 }}
14
+ </a>
15
+ </div>
16
+ {%- endif %}
17
+
18
+ {%- embed sections.liquid %}
19
+ </div>
20
+
@@ -0,0 +1,20 @@
1
+ {% assign format = "markdown" -%}
2
+ {% assign config = vars.config -%}
3
+ {% assign release = vars.release -%}
4
+ {% assign changes = vars.changes -%}
5
+ {% assign sorted = vars.sorted -%}
6
+ {%- embed head-parser.liquid %}
7
+ {% if release.memo -%}
8
+ {{ release.memo }}
9
+ {% endif -%}
10
+
11
+ {% if release.hash and release.hash != "" and config.links.git and config.links.git.trim != "" -%}
12
+ **Git:** [{{ release.hash | slice: 0, 7 }}]({{ config.links.git | render: release }})
13
+ {% endif -%}
14
+
15
+ {% if config.links.get.href and config.links.get.href.trim != "" -%}
16
+ **[{{ config.links.get.text | default: 'Get this release' }}]({{ config.links.get.href | render: release }})**
17
+ {% endif -%}
18
+
19
+ {% embed sections.liquid %}
20
+
@@ -0,0 +1,7 @@
1
+ {%- assign config = vars.config %}
2
+ {%- assign changes = vars.changes -%}
3
+ {%- for change in changes %}
4
+ {% include rhyml-change.yaml.liquid
5
+ change=change
6
+ config=config %}
7
+ {%- endfor %}