Skip to content

Commit ff5a7e5

Browse files
committed
Move AddGitHubActionDocumentation to features_documentation.yml
Move AddGitHubActionDocumentation to features_documentation.yml to enable the flag AddLocalDocumentation when AddGitHubActionDocumentation is selected. Related to #593
1 parent c30e9a4 commit ff5a7e5

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

copier/questions/features_code_quality.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SelectGitHubActions:
3737
type: yaml
3838
default: |-
3939
{% if template_profile == 'recommended' %}
40-
[AddGitHubActionBuild_flag, AddGitHubActionDocumentation_flag]
40+
[AddGitHubActionBuild_flag]
4141
{%- else -%}
4242
[]
4343
{%- endif %}
@@ -47,9 +47,6 @@ SelectGitHubActions:
4747
Build:
4848
value: AddGitHubActionBuild_flag
4949
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
50-
Documentation:
51-
value: AddGitHubActionDocumentation_flag
52-
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
5350
Link checker (reports broken URLs):
5451
value: AddLinkCheck_flag
5552
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
@@ -60,10 +57,6 @@ AddGitHubActionBuild:
6057
type: bool
6158
default: "{{ 'AddGitHubActionBuild_flag' in SelectGitHubActions }}"
6259
when: false
63-
AddGitHubActionDocumentation:
64-
type: bool
65-
default: "{{ 'AddGitHubActionDocumentation_flag' in SelectGitHubActions }}"
66-
when: false
6760
AddLinkCheck:
6861
type: bool
6962
default: "{{ 'AddLinkCheck_flag' in SelectGitHubActions }}"

copier/questions/features_documentation.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SelectDocumentationFeatures:
77
type: yaml
88
default: |-
99
{% if template_profile == 'recommended' %}
10-
[AddLocalDocumentation_flag, AddOnlineDocumentation_flag, AddDevDoc_flag]
10+
[AddLocalDocumentation_flag, AddOnlineDocumentation_flag, AddDevDoc_flag, AddGitHubActionDocumentation_flag]
1111
{%- else -%}
1212
[]
1313
{%- endif %}
@@ -23,11 +23,14 @@ SelectDocumentationFeatures:
2323
Developer documentation:
2424
value: AddDevDoc_flag
2525
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
26+
GitHub Action to build documentation:
27+
value: AddGitHubActionDocumentation_flag
28+
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
2629

2730
# computed features
2831
AddLocalDocumentation:
2932
type: bool
30-
default: "{{ 'AddLocalDocumentation_flag' in SelectDocumentationFeatures or 'AddOnlineDocumentation_flag' in SelectDocumentationFeatures }}"
33+
default: "{{ 'AddLocalDocumentation_flag' in SelectDocumentationFeatures or 'AddOnlineDocumentation_flag' in SelectDocumentationFeatures or 'AddGitHubActionDocumentation_flag' in SelectDocumentationFeatures }}"
3134
when: false
3235
AddOnlineDocumentation:
3336
type: bool
@@ -37,3 +40,7 @@ AddDevDoc:
3740
type: bool
3841
default: "{{ 'AddDevDoc_flag' in SelectDocumentationFeatures }}"
3942
when: false
43+
AddGitHubActionDocumentation:
44+
type: bool
45+
default: "{{ 'AddGitHubActionDocumentation_flag' in SelectDocumentationFeatures }}"
46+
when: false

0 commit comments

Comments
 (0)