11---
22# Questions for publishing and releasing features
3+
4+ # the main menu
35SelectPublishReleaseFeatures :
46 when : " {{ template_profile != 'minimum' }}"
57 type : yaml
68 default : |-
79 {% if template_profile == 'recommended' %}
8- [select_citation_flag , AddZenodo]
10+ [SelectCitation_flag , AddZenodo]
911 {%- else -%}
1012 []
1113 {%- endif %}
1214 help : Select publish and release features
1315 multiselect : true
1416 choices :
1517 Citation :
16- value : select_citation_flag
18+ value : SelectCitation_flag
1719 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
1820 Changelog :
19- value : AddChangeLog
21+ value : AddChangeLog_flag
2022 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2123 Zenodo integration instructions :
22- value : AddZenodo
24+ value : AddZenodo_flag
2325 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2426 Package keywords(NOT_IMPLEMENTED) :
2527 value : not_implemented_keywords
2628 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2729
2830
31+ # Sub-menus
2932# split AddCitation --> enable_citation_file and enable_cffconvert
3033SelectCitation :
31- when : " {{ 'select_citation_flag ' in SelectPublishReleaseFeatures }}"
34+ when : " {{ 'SelectCitation_flag ' in SelectPublishReleaseFeatures }}"
3235 type : yaml
3336 default : |-
3437 {% if template_profile == 'recommended' %}
@@ -40,8 +43,20 @@ SelectCitation:
4043 multiselect : true
4144 choices :
4245 CITATION.cff file (NOT_IMPLEMENTED) :
43- value : enable_citation_file
46+ value : AddCitationFile_flag
4447 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
4548 cffconvert GitHub Action (NOT_IMPLEMENTED) :
46- value : enable_cffconvert
49+ value : AddCFFConvert_flag
4750 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
51+
52+
53+ # computed features
54+ AddChangeLog :
55+ type : bool
56+ default : " {{ 'AddChangeLog_flag' in SelectPublishReleaseFeatures }}"
57+ when : false
58+
59+ AddZenodo :
60+ type : bool
61+ default : " {{ 'AddZenodo_flag' in SelectPublishReleaseFeatures }}"
62+ when : false
0 commit comments