Skip to content

Commit 3984e44

Browse files
committed
docs: swap urls in CONTRIBUTING.md to use new cookiecutter kwargs
1 parent c423ae1 commit 3984e44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

{{cookiecutter.project_name}}/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ We welcome pull requests! For significant changes, it's best to open an issue fi
4141

4242
1. **Fork and clone the repository:**
4343
```bash
44-
git clone https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.project_name.replace('_', '-') }}.git
44+
git clone https://{{ cookiecutter.repository_host }}/{{ cookiecutter.repository_path }}.git
4545
cd {{ cookiecutter.project_name }}
4646
```
4747

@@ -180,7 +180,7 @@ uvx nox -t ci # All CI checks
180180

181181
## Getting Help
182182

183-
- Check existing [issues][issues] and [discussions][discussions]
183+
- Check existing [issues][issues]{% if cookiecutter.repository_provider == 'github' %} and [discussions][discussions]{% endif %}
184184
- Open a new issue for bugs or feature requests
185185
- Start a discussion for questions or ideas
186186

@@ -194,8 +194,8 @@ Contributors will be recognized in our release notes and documentation. Thank yo
194194

195195
<!-- Reference Links -->
196196
[code-of-conduct]: CODE_OF_CONDUCT.md
197-
[issues]: https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}/issues
198-
[discussions]: https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}/discussions
197+
[issues]: https://{{ cookiecutter.repository_host }}/{{ cookiecutter.repository_path }}/issues
198+
{% if cookiecutter.repository_provider == 'github' %}[discussions]: https://{{ cookiecutter.repository_host }}/{{ cookiecutter.repository_path }}/discussions{% endif %}
199199
[uv-documentation]: https://docs.astral.sh/uv/
200200
[ruff-documentation]: https://docs.astral.sh/ruff/
201201
[pyright-documentation]: https://github.com/microsoft/pyright

0 commit comments

Comments
 (0)