mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
docs: news
Set dev_xx.txt help files to use "flow" layout.
This commit is contained in:
@ -4,27 +4,29 @@
|
||||
# changelog header
|
||||
header = """
|
||||
# Changelog\n
|
||||
All notable changes to this project will be documented in this file.\n
|
||||
For notable changes, see runtime/doc/news.txt (or `:help news` in Nvim).\n
|
||||
Following is a list of fixes/features commits.\n
|
||||
"""
|
||||
# template for the changelog body
|
||||
# https://github.com/Keats/tera
|
||||
# https://keats.github.io/tera/docs/
|
||||
body = """
|
||||
{% if version %}\
|
||||
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||
# [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
||||
{% else %}\
|
||||
## [unreleased]
|
||||
# [unreleased]
|
||||
{% endif %}\
|
||||
{% for group, commits in commits | group_by(attribute="group") %}
|
||||
### {{ group | striptags | upper_first }}
|
||||
{{ group | striptags | upper_first }}
|
||||
--------------------------------------------------------------------------------
|
||||
{% for commit in commits | sort(attribute="message")%}\
|
||||
{% if not commit.scope %}\
|
||||
- {{ commit.message }}
|
||||
- {{ commit.id | truncate(length=12, end="") }} {{ commit.message }}
|
||||
{% endif %}\
|
||||
{% endfor %}\
|
||||
{% for group, commits in commits | group_by(attribute="scope") %}\
|
||||
{% for commit in commits | sort(attribute="message") %}\
|
||||
- **{{commit.scope}}**: {{ commit.message }}
|
||||
- {{ commit.id | truncate(length=12, end="") }} {{commit.scope}}: {{ commit.message }}
|
||||
{% endfor %}\
|
||||
{% endfor %}
|
||||
{% endfor %}\n
|
||||
|
@ -63,10 +63,15 @@ local new_layout = {
|
||||
['channel.txt'] = true,
|
||||
['deprecated.txt'] = true,
|
||||
['develop.txt'] = true,
|
||||
['dev_style.txt'] = true,
|
||||
['dev_theme.txt'] = true,
|
||||
['dev_tools.txt'] = true,
|
||||
['dev_vimpatch.txt'] = true,
|
||||
['lua.txt'] = true,
|
||||
['luaref.txt'] = true,
|
||||
['news.txt'] = true,
|
||||
['news-0.9.txt'] = true,
|
||||
['news-0.10.txt'] = true,
|
||||
['nvim.txt'] = true,
|
||||
['pi_health.txt'] = true,
|
||||
['provider.txt'] = true,
|
||||
|
Reference in New Issue
Block a user