Skip to content

Commit 761ad62

Browse files
committed
Add Contribution Guidelines page
1 parent 503a5c8 commit 761ad62

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/overrides/hooks/shortcodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files:
7777
# are referenced in the main page, but their content is not included in the
7878
# main page. This is done using the Snippets Notation: https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#snippets-notation
7979
# In this case, we will read the content of the source file and return it.
80-
short_referenced_pages: list[str] = ["overview", "changelog"]
80+
short_referenced_pages: list[str] = ["overview", "changelog", "contributing"]
8181
if page.file.name in short_referenced_pages:
8282
pattern = r'-*8<-*\s*"([^"]+)"'
8383
match = re.search(pattern, markdown)

docs/usage/contributing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--8<-- "CONTRIBUTING.md"

mkdocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ nav:
4747
- Home: index.md
4848
- Usage:
4949
- Overview: usage/overview.md
50+
- Contributing: usage/contributing.md
5051
- Change Log: usage/changelog.md
5152
- Modules:
5253
- code/index.md

src/utils/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def add_release_info(release: GitRelease, repo: Repository) -> str:
119119
f"{TAB}## **{release.title}**{BLANK_LINE}"
120120
f"{TAB}<!-- md:tag {release.tag_name} -->{LINE_BREAK}{NEW_LINE}"
121121
f"{TAB}<!-- md:date {release.created_at.date()} -->{LINE_BREAK}{NEW_LINE}"
122-
f"{TAB}<!-- md:link [{repo.full_name}/releases/tag/{release.tag_name}]({release.html_url}) -->{BLANK_LINE}"
122+
f"{TAB}<!-- md:link [{repo.full_name}/releases/{release.tag_name}]({release.html_url}) -->{BLANK_LINE}"
123123
)
124124

125125

0 commit comments

Comments
 (0)