-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #584 from oasisprotocol/mz/changeLogFragments
Init Change Log fragments
- Loading branch information
Showing
12 changed files
with
1,589 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json | ||
|
||
# markdownlint configuration for Change Log fragments. | ||
|
||
# For more information, see: | ||
# https://github.com/DavidAnson/markdownlint#optionsconfig. | ||
|
||
# Extend project's main configuration. | ||
extends: ../.markdownlint.yml | ||
|
||
line-length: | ||
# Line length checking is not strict by default. | ||
strict: true | ||
# Change Log fragments will be listed as bullets indented by 2 spaces so they | ||
# should be 2 characters shorter than ordinary lines. | ||
line_length: 78 | ||
|
||
# Change Log fragments should not have a heading as the first line. | ||
first-line-heading: false | ||
|
||
ul-style: | ||
# Enforce a uniform symbol for unordered lists across all Change Log | ||
# fragments. | ||
style: dash |
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,8 @@ | ||
Add Change Log and the Change Log fragments process for assembling it | ||
|
||
This follows the same Change Log fragments process as is used by [Oasis Core]. | ||
|
||
For more details, see [Change Log fragments]. | ||
|
||
[Oasis Core]: https://github.com/oasisprotocol/oasis-core | ||
[Change Log fragments]: .changelog/README.md |
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 @@ | ||
# Change Log Fragments | ||
|
||
This directory collects Change Log fragments: | ||
short files that each contain a snippet of Markdown formatted text that will | ||
be assembled using [towncrier] to form the [Change Log] section for the next | ||
release. | ||
|
||
This repository follows the same Change Log fragments style as the | ||
[Oasis Core] repository. | ||
Please, see [its Change Log fragments documentation] for more details. | ||
|
||
[Change Log]: ../CHANGELOG.md | ||
[towncrier]: https://github.com/oasisprotocol/towncrier | ||
[Oasis Core]: https://github.com/oasisprotocol/oasis-core | ||
[its Change Log fragments documentation]: | ||
https://github.com/oasisprotocol/oasis-core/blob/master/.changelog/README.md |
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,39 @@ | ||
{# This a Jinja2 template for preparing a new section of the Change Log with the towncrier utility.#} | ||
## {{ versiondata.version }} ({{ versiondata.date }}) | ||
{% for section, _ in sections.items() %} | ||
|
||
{% if sections[section] %} | ||
{% for category, val in definitions.items() if category in sections[section] %} | ||
{% if definitions[category]['showcontent'] %} | ||
{{ "### " + definitions[category]['name'] }} | ||
|
||
{% for text, values in sections[section][category].items() %} | ||
{% set lines = text.splitlines() %} | ||
{% set referenced_issues = "(" + values | join(',\n ') + ")" %} | ||
{% if lines | length > 2 and lines[1] == "" %} | ||
- {{ lines[0] }} | ||
{{ referenced_issues }} | ||
|
||
{{ lines[2:] | join('\n') }} | ||
{% else %} | ||
- {{ text }} | ||
{{ referenced_issues }} | ||
{% endif %} | ||
{% if not loop.last %} | ||
|
||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% if sections[section][category]|length == 0 %} | ||
No significant changes. | ||
|
||
{% else %} | ||
{% endif %} | ||
|
||
{% endfor %} | ||
{% else %} | ||
No significant changes. | ||
|
||
|
||
{% endif %} | ||
{% 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
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,20 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json | ||
|
||
# markdownlint configuration. | ||
|
||
# For more information, see: | ||
# https://github.com/DavidAnson/markdownlint#optionsconfig. | ||
|
||
# Enable all rules. | ||
default: true | ||
|
||
line-length: | ||
# Line length checking is not strict by default. | ||
strict: true | ||
line_length: 80 | ||
# Allow longer lines for code blocks. | ||
code_block_line_length: 100 | ||
|
||
# Do not always require language specifiers with fenced code blocks since they | ||
# are not part of the Markdown spec. | ||
fenced-code-language: false |
Oops, something went wrong.