-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add release notes to website, create custom changelog template
- Loading branch information
1 parent
093b9bd
commit 2f8de9e
Showing
13 changed files
with
124 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# CHANGELOG | ||
|
||
<!--start-docs--> | ||
|
||
## v0.2.1 (2024-10-21) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Release Notes | ||
|
||
{% | ||
include-markdown "./../../../CHANGELOG.md" | ||
start="<!--start-docs-->" | ||
%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CHANGELOG | ||
|
||
<!--start-docs--> | ||
|
||
{% if ctx.changelog_mode == "update" | ||
%}{# # IMPORTANT: add insertion flag for next version update | ||
#}{{ | ||
insertion_flag ~ "\n" | ||
|
||
}}{% endif | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{# | ||
This changelog template initializes a full changelog for the project, | ||
it follows the following logic: | ||
1. Header | ||
2. Any Unreleased Details (uncommon) | ||
3. all previous releases | ||
#}{# | ||
# Header | ||
#}{% include ".changelog_header.md.j2" | ||
-%}{# | ||
# Any Unreleased Details (uncommon) | ||
#}{% include ".unreleased_changes.md.j2" | ||
-%}{# | ||
# Since this is initialization, we are generating all the previous | ||
# release notes per version. | ||
#}{% for release in context.history.released.values() | ||
%}{{ "\n" | ||
}}{% include ".versioned_changes.md.j2" | ||
-%}{{ "\n" | ||
}}{% endfor | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{# | ||
#}{% for type_, commits in commit_objects | ||
%}{{ | ||
"\n### %s\n" | format(type_ | title) | ||
|
||
}}{% for commit in commits | ||
%}{{ | ||
"\n* %s ([`%s`](%s))\n" | format( | ||
commit.message.rstrip(), | ||
commit.short_hash, | ||
commit.hexsha | commit_hash_url, | ||
) | ||
|
||
}}{% endfor | ||
%}{% endfor | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% if unreleased_commits | length > 0 | ||
%}{{ "\n## Unreleased\n" | ||
}}{% set commit_objects = unreleased_commits | ||
%}{% include ".changes.md.j2" | ||
-%}{{ "\n" | ||
}}{% endif | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{# | ||
## **vX.X.X** (YYYY-MMM-DD) | ||
#}{{ | ||
|
||
"## %s (%s)\n" | format( | ||
release.version.as_semver_tag(), | ||
release.tagged_date.strftime("%Y-%m-%d") | ||
) | ||
|
||
}}{% set commit_objects = release["elements"] | dictsort | ||
%}{% include ".changes.md.j2" | ||
-%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{# | ||
This changelog template controls which changelog creation occurs | ||
based on which mode is provided. | ||
Modes: | ||
- init: Initialize a full changelog from scratch | ||
- update: Insert new version details where the placeholder exists in the current changelog | ||
#}{% set insertion_flag = ctx.changelog_insertion_flag | ||
%}{% set unreleased_commits = ctx.history.unreleased | dictsort | ||
%}{# | ||
#}{% if ctx.changelog_mode == "init" | ||
%}{% include ".changelog_init.md.j2" | ||
%}{# | ||
#}{% elif ctx.changelog_mode == "update" | ||
%}{% set prev_changelog_file = ctx.prev_changelog_file | ||
%}{% set new_releases = [] | ||
%}{% if ctx.history.released.values() | length > 0 | ||
%}{% set new_releases = [ctx.history.released.values() | first] | ||
%}{% endif | ||
%}{% include ".changelog_update.md.j2" | ||
%}{# | ||
#}{% endif | ||
%} |