Skip to content

Commit 3f54dfb

Browse files
committed
docs: update several non reference links
1 parent 3c9b1f2 commit 3f54dfb

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

{{cookiecutter.project_name}}/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If your project defines command-line entry points in `pyproject.toml`:
5959
# {{ cookiecutter.project_name }} do-something --input file.txt
6060
```
6161

62-
For detailed API documentation and CLI command references, see the **[Documentation](https://{{ cookiecutter.project_name.replace('_', '-') }}.readthedocs.io/)**.
62+
For detailed API documentation and CLI command references, see the **[Documentation][documentation]**.
6363

6464
## Development Workflow
6565

@@ -87,4 +87,15 @@ Distributed under the terms of the **{{ cookiecutter.license }}** license. See [
8787
8888
---
8989
90-
**This project was generated from the [cookiecutter-robust-python template](https://github.com/56kyle/cookiecutter-robust-python).**
90+
**This project was generated from the [cookiecutter-robust-python template][cookiecutter-robust-python].**
91+
92+
<!-- Reference Links -->
93+
[cookiecutter-robust-python]: https://github.com/56kyle/cookiecutter-robust-python
94+
95+
{% if cookiecutter.repository_provider == 'github' %}
96+
[documentation]: https://{{ cookiecutter.repository_path.split('/')[0] }}.github.io/{{ cookiecutter.project_name.replace('_', '-') }}/
97+
{% elif cookiecutter.repository_provider == 'gitlab' %}
98+
[documentation]: https://{{ cookiecutter.repository_path.replace('/', '.') }}.gitlab.io/{{ cookiecutter.project_name.replace('_', '-') }}/
99+
{% else %}
100+
[documentation]: https://{{ cookiecutter.project_name.replace('_', '-') }}.readthedocs.io/
101+
{% endif %}

0 commit comments

Comments
 (0)