Skip to content

Commit e8527f8

Browse files
authored
Merge pull request #541 from NLeSC/467-devdoc
467-Add dev doc question
2 parents eae8aae + ce67b68 commit e8527f8

5 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## [Unreleased]
44

55
### Added
6-
6+
* Make developer documentation optional [#467](https://github.com/NLeSC/python-template/pull/541)
77
* Make Code of Conduct optional [#464](https://github.com/NLeSC/python-template/pull/530)
88
* New YAML files for copier questions [#529](https://github.com/NLeSC/python-template/pull/529)
99
* Make zenodo next step instructions optional [#520](https://github.com/NLeSC/python-template/pull/520)

copier/questions/features.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,8 @@ AddCodeConduct:
5050
type: bool
5151
default: "{{ template_profile != 'minimum' }}"
5252
help: Add code of conduct?
53+
AddDevDoc:
54+
when: "{{ template_profile == 'ask' }}"
55+
type: bool
56+
default: "{{ template_profile != 'minimum' }}"
57+
help: Add developer documentation?

template/CONTRIBUTING.md.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ The sections below outline the steps in each case.
3131
1. (**important**) announce your plan to the rest of the community *before you start working*. This announcement should be in the form of a (new) issue;
3232
1. (**important**) wait until some kind of consensus is reached about your idea being a good idea;
3333
1. if needed, fork the repository to your own Github profile and create your own feature branch off of the latest main commit. While working on your feature branch, make sure to stay up to date with the main branch by pulling in changes, possibly from the 'upstream' repository (follow the instructions [here](https://help.github.com/articles/configuring-a-remote-for-a-fork/) and [here](https://help.github.com/articles/syncing-a-fork/));
34+
{% if AddDevDoc -%}
3435
1. install dependencies (see the [development documentation](README.dev.md#development_install));
36+
{%- endif %}
3537
1. make sure the existing tests still work by running ``pytest``;
3638
1. add your own tests (if necessary);
3739
1. update or expand the documentation;

template/next_steps.md.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ A short while after you push your commits to GitHub for the first time, a few is
3838
automatically ([here]({{repository_url}}/issues?q=author%3Aapp%2Fgithub-actions)). Resolve them to complete the
3939
setup of your repository.
4040

41+
{% if AddDevDoc -%}
4142
## Project development documentation
4243

4344
The [README.dev.md](README.dev.md) contains developer documentation.
45+
{%- endif %}
4446

4547
## Project layout explained
4648

template/README.dev.md.jinja renamed to template/{% if AddDevDoc %}README.dev.md{% endif %}.jinja

File renamed without changes.

0 commit comments

Comments
 (0)