Skip to content

Commit 70af1ea

Browse files
committed
include project slug variable in cookiecutter.json
1 parent 254258a commit 70af1ea

18 files changed

+27
-26
lines changed

cookiecutter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"email": "nullhack@users.noreply.github.com",
44
"github_username": "nullhack",
55
"project_name": "My Python Project",
6+
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '-') }}",
67
"package_name": "{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_').replace('project', 'package') }}",
78
"module_name": "{{ cookiecutter.package_name.lower().replace(' ', '_').replace('-', '_').replace('package', 'module') }}",
89
"project_short_description": "Python Project with some awesome tools to quickstart any Python project.",
File renamed without changes.
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
<p align="center">
2626
{{cookiecutter.project_short_description}}
2727
<br />
28-
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/main/docs/api/{{cookiecutter.project_name}}/index.html"><strong>Explore the docs »</strong></a>
28+
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/main/docs/api/{{cookiecutter.project_slug}}/index.html"><strong>Explore the docs »</strong></a>
2929
<br />
3030
<br />
31-
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/main/docs/pytest_report.html">Tests</a>
31+
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/main/docs/pytest_report.html">Tests</a>
3232
·
33-
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/main/docs/cov-report/index.html">Code Coverage</a>
33+
<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/main/docs/cov-report/index.html">Code Coverage</a>
3434
·
35-
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/issues">Report Bug</a>
35+
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/issues">Report Bug</a>
3636
·
37-
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/issues">Request Feature</a>
37+
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/issues">Request Feature</a>
3838
</p>
3939
</div>
4040

@@ -77,16 +77,16 @@
7777

7878
#### Packages
7979

80-
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/raw/main/docs/uml/diagrams/packages_new_package.png">
81-
<img src="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/raw/main/docs/uml/diagrams/packages_new_package.png" alt="uml-diagram-packages">
80+
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/raw/main/docs/uml/diagrams/packages_new_package.png">
81+
<img src="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/raw/main/docs/uml/diagrams/packages_new_package.png" alt="uml-diagram-packages">
8282
</a>
8383

8484
---
8585

8686
#### Classes
8787

88-
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/raw/main/docs/uml/diagrams/classes_new_package.png">
89-
<img src="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/raw/main/docs/uml/diagrams/classes_new_package.png" alt="uml-diagram-classes">
88+
<a href="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/raw/main/docs/uml/diagrams/classes_new_package.png">
89+
<img src="https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/raw/main/docs/uml/diagrams/classes_new_package.png" alt="uml-diagram-classes">
9090
</a>
9191

9292
<p align="right">(<a href="#top">back to top</a>)</p>
@@ -113,8 +113,8 @@ This Project depends on the following projects.
113113

114114
1. Clone the repo
115115
```sh
116-
git clone https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}
117-
cd {{cookiecutter.project_name}}
116+
git clone https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}
117+
cd {{cookiecutter.project_slug}}
118118
```
119119
2. Install NPM packages
120120
```sh
@@ -154,7 +154,7 @@ Some useful examples of how this project can be used:
154154
nox -s pre-commit
155155
```
156156

157-
_For more examples, please refer to the [Documentation](https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/main/docs/api/{{cookiecutter.project_name}}/index.html)_
157+
_For more examples, please refer to the [Documentation](https://htmlpreview.github.io/?https://raw.githubusercontent.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/main/docs/api/{{cookiecutter.project_slug}}/index.html)_
158158

159159
<p align="right">(<a href="#top">back to top</a>)</p>
160160

@@ -168,7 +168,7 @@ _For more examples, please refer to the [Documentation](https://htmlpreview.gith
168168
- [ ] Improve documentation
169169
- [ ] Include more tests
170170

171-
See the [open issues](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/issues) for a full list of proposed features (and known issues).
171+
See the [open issues](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/issues) for a full list of proposed features (and known issues).
172172

173173
<p align="right">(<a href="#top">back to top</a>)</p>
174174

@@ -195,7 +195,7 @@ Don't forget to give the project a star! Thanks again!
195195
<!-- LICENSE -->
196196
## License
197197

198-
Distributed under the {{cookiecutter.license}} License. See [`LICENSE.txt`](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/LICENSE.txt) for more information.
198+
Distributed under the {{cookiecutter.license}} License. See [`LICENSE.txt`](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/LICENSE.txt) for more information.
199199

200200
<p align="right">(<a href="#top">back to top</a>)</p>
201201

@@ -206,7 +206,7 @@ Distributed under the {{cookiecutter.license}} License. See [`LICENSE.txt`](http
206206

207207
{{cookiecutter.full_name}} - [@{{cookiecutter.github_username}}](https://github.com/{{cookiecutter.github_username}}) - {{cookiecutter.email}}
208208

209-
Project Link: [https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/)
209+
Project Link: [https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/](https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/)
210210

211211
<p align="right">(<a href="#top">back to top</a>)</p>
212212

@@ -231,14 +231,14 @@ References and sources of inspiration
231231

232232
<!-- MARKDOWN LINKS & IMAGES -->
233233
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
234-
[contributors-shield]: https://img.shields.io/github/contributors/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}.svg?style=for-the-badge
235-
[contributors-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/graphs/contributors
236-
[forks-shield]: https://img.shields.io/github/forks/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}.svg?style=for-the-badge
237-
[forks-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/network/members
238-
[stars-shield]: https://img.shields.io/github/stars/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}.svg?style=for-the-badge
239-
[stars-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/stargazers
240-
[issues-shield]: https://img.shields.io/github/issues/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}.svg?style=for-the-badge
241-
[issues-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/issues
242-
[license-shield]: https://img.shields.io/github/license/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}.svg?style=for-the-badge
243-
[license-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/blob/master/LICENSE.txt
234+
[contributors-shield]: https://img.shields.io/github/contributors/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}.svg?style=for-the-badge
235+
[contributors-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/graphs/contributors
236+
[forks-shield]: https://img.shields.io/github/forks/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}.svg?style=for-the-badge
237+
[forks-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/network/members
238+
[stars-shield]: https://img.shields.io/github/stars/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}.svg?style=for-the-badge
239+
[stars-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/stargazers
240+
[issues-shield]: https://img.shields.io/github/issues/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}.svg?style=for-the-badge
241+
[issues-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/issues
242+
[license-shield]: https://img.shields.io/github/license/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}.svg?style=for-the-badge
243+
[license-url]: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}/blob/master/LICENSE.txt
244244

{{cookiecutter.project_name}}/docs/uml/artifacts/classes_{{cookiecutter.package_name}}.dot renamed to {{cookiecutter.project_slug}}/docs/uml/artifacts/classes_{{cookiecutter.package_name}}.dot

File renamed without changes.

{{cookiecutter.project_name}}/docs/uml/artifacts/packages_{{cookiecutter.package_name}}.dot renamed to {{cookiecutter.project_slug}}/docs/uml/artifacts/packages_{{cookiecutter.package_name}}.dot

File renamed without changes.

{{cookiecutter.project_name}}/docs/uml/diagrams/classes_{{cookiecutter.package_name}}.png renamed to {{cookiecutter.project_slug}}/docs/uml/diagrams/classes_{{cookiecutter.package_name}}.png

File renamed without changes.

{{cookiecutter.project_name}}/docs/uml/diagrams/packages_{{cookiecutter.package_name}}.png renamed to {{cookiecutter.project_slug}}/docs/uml/diagrams/packages_{{cookiecutter.package_name}}.png

File renamed without changes.

0 commit comments

Comments
 (0)