Skip to content

Commit e3bf1e4

Browse files
author
a.pirogov
committed
update documentation
1 parent 5827db7 commit e3bf1e4

3 files changed

Lines changed: 205 additions & 120 deletions

File tree

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,24 @@ recommendations on the state of software citation in academic practice.
8686

8787
## Getting Started
8888

89-
First, make sure that you have a recent version of
90-
[cookiecutter](https://www.cookiecutter.io/) (`cookiecutter>=2.1`).
91-
This template does not work with older versions, because they lack some needed features.
89+
To install the template, run `pip install fair-python-cookiecutter`.
9290

93-
To install `cookiecutter`, you can run `pip install fair-python-cookiecutter`.
94-
95-
To generate a new Python project from this template, you can run:
91+
Now you can run the tool to generate a new Python project:
9692

9793
```bash
9894
fair-python-cookiecutter YourProjectName
9995
```
10096

101-
This will spawn an interactive prompt, where you have to provide some information and select
102-
a starting skeleton for your software project. Don't worry, you can always adapt this
103-
information later on by hand. After this cookiecutter will initate your software project.
97+
This will spawn an interactive prompt, where you have to provide some information and
98+
make some choices for your new software project. Don't worry, you can always adapt
99+
everything later on by hand. After this, your software project will be created in
100+
a new directory.
104101

105102
To save you some time answering the questions, we recommend that you create an empty repository
106103
in GitHub or GitLab of your choice (i.e., the location where you plan to push your new project).
107-
In that case, you can provide the URL which already will provide many required inputs:
104+
105+
If you already have created an empty remote repository or know exactly its future
106+
location, you can provide the URL, which already will provide many required inputs:
108107

109108
```bash
110109
fair-python-cookiecutter --repo-url https://github.com/YourOrganization/YourProjectName
@@ -113,8 +112,11 @@ fair-python-cookiecutter --repo-url https://github.com/YourOrganization/YourProj
113112
Your new project repository will also include a copy of a
114113
[developer guide](https://materials-data-science-and-informatics.github.io/fair-python-cookiecutter-demo/latest/dev_guide),
115114
containing more information about the structure and features of the generated project.
116-
Feel free to either remove it, or keep (and possibly adjust) it as extended technical
117-
project documentation for yourself and other future project contributors.
115+
116+
**Please familiarize yourself with the generated structures, files and the contents of the
117+
developer guide.** Feel free to either remove the guide afterwards, or keep (and possibly
118+
adjust) it as extended technical project documentation for yourself and other future
119+
project contributors.
118120

119121
You can find a demo repository generated from this template [here](https://github.com/Materials-Data-Science-and-Informatics/fair-python-cookiecutter-demo).
120122

@@ -166,7 +168,7 @@ from this template, there are two main ways to do so:
166168
167169
If your project currently has no sophisticated setup of tools or strong preferences about
168170
them, option 1 might be the simplest way to adopt the template. Your code then needs to be
169-
moved into the `YOUR_PROJECT/src` subdirectory.
171+
moved into the `YOUR_PROJECT/src/YOUR_PACKAGE` subdirectory.
170172

171173
On the other hand, if you already have a working setup that you do not wish to replace
172174
completely, you can take a look at

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,10 @@ This is a Python project generated from the
2020
[fair-python-cookiecutter](https://github.com/Materials-Data-Science-and-Informatics/fair-python-cookiecutter)
2121
template.
2222

23-
**TODO:** To finalize the project setup, please follow the instructions in the
23+
**TODO:** To finalize the project setup, please carefully read and follow the instructions in the
2424
[developer guide](https://materials-data-science-and-informatics.github.io/fair-python-cookiecutter/latest/dev_guide).
25+
A copy of the guide is included in your project in `docs/dev_guide.md`.
2526

26-
- [ ] Inspect the generated project files and adjust them as needed
27-
- [ ] Take care of the TODOs in some of the files
28-
- [ ] Check that everything works for you locally (running tests, building documentation)
29-
- [ ] Create and add an empty remote repository (GitHub/GitLab) and push to it
30-
- [ ] Wait and check that the CI pipeline runs successfully
31-
* setup the deployment of your project documentation (to GitLab/GitHub Pages)
32-
* setup the deployment of your project releases (to GitLab/GitHub/PyPI)
33-
- [ ] Remove this section
3427
----
3528

3629
{{ cookiecutter.project_description.strip() }}
@@ -42,18 +35,17 @@ template.
4235

4336
## Installation
4437

45-
**:construction: TODO: check that the installation instructions work**
38+
**TODO: check that the installation instructions work**
4639

4740
This project works with Python > 3.8.
4841

49-
```
50-
$ pip install git+ssh://{{ cookiecutter.project_clone_url }}
42+
```bash
43+
pip install git+ssh://{{ cookiecutter.project_clone_url }}
5144
```
5245

5346
## Getting Started
5447

55-
56-
**:construction: TODO: provide a minimal working example**
48+
**TODO: provide a minimal working example**
5749

5850
<!-- --8<-- [end:quickstart] -->
5951

@@ -84,6 +76,6 @@ in the [repository]({{ cookiecutter.project_repo_url }}/blob/main/CITATION.cff).
8476
We kindly thank all
8577
[authors and contributors]({{ cookiecutter.project_pages_url }}/latest/credits).
8678

87-
**:construction: TODO: relevant organizational acknowledgements (employers, funders)**
79+
**TODO: relevant organizational acknowledgements (employers, funders)**
8880

8981
<!-- --8<-- [end:acknowledgements] -->

0 commit comments

Comments
 (0)