Skip to content

Commit eee723c

Browse files
committed
TL: allowed link to main page for documentation
1 parent 1531a70 commit eee723c

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
:arrow_left: [Back to main page](./README.md)
4+
35
- October 7, 2022: Version 5 comes with many changes, both visible and
46
invisible ones. Some of those break the existing API, but if you are
57
using tests, you should be fine. Major changes include:
@@ -224,3 +226,5 @@
224226
expected
225227
- Reworked many of the internal structures for consistency and
226228
simplicity
229+
230+
:arrow_left: [Back to main page](./README.md)

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Contributor Covenant Code of Conduct
22

3+
:arrow_left: [Back to main page](./README.md)
4+
35
## Our Pledge
46

57
We as members, contributors, and leaders pledge to make participation in our
@@ -126,3 +128,5 @@ enforcement ladder](https://github.com/mozilla/diversity).
126128
For answers to common questions about this code of conduct, see the FAQ at
127129
https://www.contributor-covenant.org/faq. Translations are available at
128130
https://www.contributor-covenant.org/translations.
131+
132+
:arrow_left: [Back to main page](./README.md)

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ This follows a specific OOP framework, you can look at the page on [custom imple
1313
2. [Pull Requests Recommendations](./docs/contrib/01_pull_requests.md)
1414
3. [Continuous Integration](./docs/contrib/02_continuous_integration.md)
1515
4. [Naming Conventions](./docs/contrib/03_naming_conventions.md)
16-
5. [Custom Implementations](./docs/contrib/04_custom_implementations.md)
16+
5. [Custom Implementations](./docs/contrib/04_custom_implementations.md)
17+
18+
:arrow_left: [Back to main page](./README.md)

docs/convert_markdown.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def setImgPath(rst):
7878
i += 16
7979
return rst
8080

81+
def linkReadmeToIndex(rst):
82+
return rst.replace('<./README>', '<./index>')
83+
8184
def convert(md, orphan=False, sectionRefs=True):
8285
baseName = os.path.splitext(md)[0]
8386
rst = m2r2.parse_from_file(md, parse_relative_links=True)
@@ -88,6 +91,7 @@ def convert(md, orphan=False, sectionRefs=True):
8891
if orphan:
8992
rst = addOrphanTag(rst)
9093
rst = setImgPath(rst)
94+
rst = linkReadmeToIndex(rst)
9195
with open(f'{docSources}/{baseName}.rst', 'w') as f:
9296
f.write(rst)
9397
print(f'Converted {md} to {docSources}/{baseName}.rst')

0 commit comments

Comments
 (0)