Skip to content

Commit e07e5cf

Browse files
authored
Documentation tweaks (#134)
2 parents 5a03fd8 + 272e146 commit e07e5cf

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Visit <https://dev-portal.diamond.ac.uk/create> and you will see a list of templ
4343

4444
## Create a new project from the commandline
4545

46-
You will need to `pip install copier` inside an activated `venv`, then you can create a new module via:
46+
You will need to `pip install copier` inside an activated `venv` from python3.8 or later, then you can create a new module via:
4747

4848
```
4949
mkdir /path/to/my-project

copier.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Project Details
22
package_name:
33
type: str
4-
help: Name of the python import package
4+
help: |
5+
Name of the python import package.
6+
Must be a valid python identifier, i.e. my_package
57
validator: >-
68
{% if not (package_name | regex_search('^[a-zA-Z][a-zA-Z_0-9]+$')) %}
79
{{package_name}} is not a valid python package name
@@ -29,7 +31,9 @@ github_org:
2931

3032
repo_name:
3133
type: str
32-
help: Name of the repository
34+
help: |
35+
Name of the repository.
36+
Generally the package name with underscores replaced by dashes.
3337
default: "{{ package_name | replace('_', '-') }}"
3438
validator: >-
3539
{% if not (repo_name | regex_search('^[a-zA-Z][a-zA-Z_\\.\\-0-9]+$')) %}
@@ -40,7 +44,8 @@ distribution_name:
4044
type: str
4145
help: |
4246
Name of the python distribution package that will be created.
43-
This is what people will `pip install`
47+
This is what people will `pip install`.
48+
Generally the same as the repo name unless there is a name clash on PyPI.
4449
default: "{{ repo_name }}"
4550

4651
author_name:

docs/how-to/dev-install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ pip install -e '.[dev]'
2222
:::
2323

2424
:::{tab-item} VSCode devcontainer
25+
If you are at DLS, then first [setup podman and its fix for devcontainer features](https://dev-portal.diamond.ac.uk/guide/containers/tutorials/podman/#enable-use-of-vscode-features)
26+
2527
```
2628
code .
2729
# Click on 'Reopen in Container' when prompted

docs/tutorials/create-new.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,35 @@ Once you have followed the [](./installation) tutorial, you can use `copier` to
44

55
```
66
$ mkdir /path/to/my-project
7-
$ copier copy gh:DiamondLightSource/python-copier-template /path/to/my-project
7+
$ copier copy --trust gh:DiamondLightSource/python-copier-template /path/to/my-project
88
```
99

1010
This will:
1111

1212
- Ask some questions about the project to be created
1313
- Expand the template with the answers give
1414
- Record the answers in the project so they can be used in later updates
15+
- Create a git repository if the directory is not already one
16+
17+
## Committing the results
18+
19+
You can now check what the template has created, tweak the results if desired, and commit the results:
20+
```
21+
$ cd /path/to/my-project
22+
$ git add .
23+
$ git commit -m "Expand from python-copier-template x.x.x"
24+
```
1525

1626
## Uploading to GitHub
1727

1828
You can now [create a new blank project on GitHub](https://github.com/new). Choose the same GitHub owner and repo name that you answered in the questions earlier. GitHub will now give you the commands needed to upload your repo from GitHub
1929

20-
## Setings
30+
## Settings
31+
32+
You can now go to the cogwheel on the main page next to the "About" header, and set the project description to match the answer you gave.
2133

22-
You can now go to the `Settings` and set:
34+
Then go to the `Settings` tab and set:
2335

24-
- The project description to match the answer you gave
2536
- Enable Pages if you chose to use sphinx for your documentation
2637

2738
## Getting started with your new repo

0 commit comments

Comments
 (0)