99# Message to show after generating or regenerating the project successfully
1010_message_after_copy : |
1111
12- Your project "{{ package_name }}" has been created successfully!
12+ Your project "{{ github_repo }}" has been created successfully!
1313
1414 Next steps:
1515
@@ -40,43 +40,26 @@ _message_after_copy: |
4040 $ just list-todos
4141
4242# Questions:
43- package_github_repo :
44- type : str
45- help : " What is or will be the GitHub repository spec for the project?"
46- placeholder : " user/repo"
47- validator : |
48- {% if package_github_repo and not (package_github_repo | regex_search('^[\w.-]+\/[\w.-]+$')) %}
49- Must be in the format `user/repo` and contain only alphanumeric characters and `_`, `-`, or `.`.
50- {% endif %}
43+ is_seedcase_project :
44+ type : bool
45+ help : " Is this package part of the Seedcase Project?"
46+ default : true
5147
5248github_user :
5349 type : str
54- default : " {{ package_github_repo.split('/')[0] if package_github_repo else '' }}"
55- when : false
50+ help : " What is the name of the GitHub user or organization where the website repository will be or is stored?"
5651
57- package_name :
52+ hosting_provider :
5853 type : str
59- help : " What is the name of the package?"
60- default : " {{ _copier_conf.dst_path | basename }}"
61- validator : |
62- {% if package_name and not (package_name | regex_search('^[\w.-]+$')) %}
63- Must contain only alphanumeric characters and `_`, `-`, or `.`.
64- {% endif %}
65-
66- package_name_snake_case :
67- type : str
68- default : " {{package_name | replace('-', '_') | replace('.', '_')}}"
69- when : false
70-
71- is_seedcase_project :
72- type : bool
73- help : " Is this package part of the Seedcase Project?"
74- default : " {{ github_user == 'seedcase-project' }}"
54+ help : " What hosting provider will you use for the documentation website?"
55+ choices :
56+ - netlify
57+ - gh-pages
7558
7659homepage :
7760 type : str
7861 help : " What is the homepage of your project?"
79- default : " {{ 'https://%s.seedcase-project.org' % package_name if is_seedcase_project else '' }}"
62+ default : " {{ 'https://%s.seedcase-project.org' % github_repo if is_seedcase_project else '' }}"
8063
8164author_given_name :
8265 type : str
@@ -103,6 +86,23 @@ github_board_number:
10386 The board number must be an integer.
10487 {% endif %}
10588
89+ # Configurations not asked
90+
91+ github_repo :
92+ type : str
93+ default : " {{ _copier_conf.dst_path | realpath | basename }}"
94+ when : false
95+
96+ github_repo_snake_case :
97+ type : str
98+ default : " {{github_repo | replace('-', '_') | replace('.', '_')}}"
99+ when : false
100+
101+ github_repo_spec :
102+ type : str
103+ default : " {{ github_user }}/{{ github_repo }}"
104+ when : false
105+
106106copyright_year :
107107 type : str
108108 default : " {{ copyright_year | default('%Y' | strftime) }}"
0 commit comments