-
Notifications
You must be signed in to change notification settings - Fork 76
/
features_documentation.yml
39 lines (37 loc) · 1.25 KB
/
features_documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
# Questions for documentation features
# the main menu
SelectDocumentationFeatures:
when: "{{ template_profile != 'minimum' }}"
type: yaml
default: |-
{% if template_profile == 'recommended' %}
[AddLocalDocumentation_flag, AddOnlineDocumentation_flag, AddDevDoc_flag]
{%- else -%}
[]
{%- endif %}
help: Select documentation features
multiselect: true
choices:
Local documentation:
value: AddLocalDocumentation_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Online documentation (Read the Docs):
value: AddOnlineDocumentation_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
Developer documentation:
value: AddDevDoc_flag
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
# computed features
AddLocalDocumentation:
type: bool
default: "{{ 'AddLocalDocumentation_flag' in SelectDocumentationFeatures or 'AddOnlineDocumentation_flag' in SelectDocumentationFeatures }}"
when: false
AddOnlineDocumentation:
type: bool
default: "{{ 'AddOnlineDocumentation_flag' in SelectDocumentationFeatures }}"
when: false
AddDevDoc:
type: bool
default: "{{ 'AddDevDoc_flag' in SelectDocumentationFeatures }}"
when: false