Skip to content

Commit 5b651a4

Browse files
committed
add computed values and flags for documentation features
1 parent ad87f53 commit 5b651a4

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11
---
22
# Questions for documentation features
3+
4+
# the main menu
35
SelectDocumentationFeatures:
46
when: "{{ template_profile != 'minimum' }}"
57
type: yaml
68
default: |-
79
{% if template_profile == 'recommended' %}
8-
[AddOnlineDocumentation, AddDevDoc, not_implemented_project_setup]
10+
[AddOnlineDocumentation_flag, AddDevDoc_flag, not_implemented_project_setup]
911
{%- else -%}
1012
[]
1113
{%- endif %}
1214
help: Select documentation features
1315
multiselect: true
1416
choices:
1517
Online documentation (using Read the Docs):
16-
value: AddOnlineDocumentation
18+
value: AddOnlineDocumentation_flag
1719
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
1820
Developer documentation:
19-
value: AddDevDoc
21+
value: AddDevDoc_flag
2022
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2123
Project setup description (NOT_IMPLEMENTED):
2224
value: not_implemented_project_setup
2325
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2426
Markdown link checker GitHub Action (NOT_IMPLEMENTED):
2527
value: not_implemented_markdown_link_checker
2628
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
29+
30+
# computed features
31+
AddOnlineDocumentation:
32+
type: bool
33+
default: "{{ 'AddOnlineDocumentation_flag' in SelectDocumentationFeatures }}"
34+
when: false
35+
36+
AddDevDoc:
37+
type: bool
38+
default: "{{ 'AddDevDoc_flag' in SelectDocumentationFeatures }}"
39+
when: false

0 commit comments

Comments
 (0)