Skip to content

Commit 89c82d5

Browse files
committed
docs: adjust how files are referenced in docs to allow for both the generated sphinx and github files to link correctly
1 parent 85a88c9 commit 89c82d5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

{{cookiecutter.project_name}}/CONTRIBUTING.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Thank you for considering contributing to the `cookiecutter-robust-python` template! We welcome contributions that help improve the template, keep its tooling current, and enhance its documentation.
44

5-
By participating in this project, you are expected to uphold our [Code of Conduct](CODE_OF_CONDUCT.md).
5+
By participating in this project, you are expected to uphold our [Code of Conduct].
66

77
## How to Contribute
88

@@ -38,3 +38,7 @@ If your contribution involves updating a major tool version or suggesting a diff
3838
For questions or discussion about contributions, open an issue or a discussion on the [GitHub repository](https://github.com/56kyle/cookiecutter-robust-python).
3939

4040
---
41+
42+
<!-- github-only -->
43+
44+
[code of conduct]: CODE_OF_CONDUCT.md
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Code of Conduct
2-
31
```{include} ../CODE_OF_CONDUCT.md
42
53
```

{{cookiecutter.project_name}}/docs/contributing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Contributing
22

33
```{include} ../CONTRIBUTING.md
4+
---
5+
start-after: # Contributing to {{cookiecutter.package_name}}
6+
end-before: <!-- github-only -->
7+
---
48
59
```
610

0 commit comments

Comments
 (0)