Skip to content

Commit dcdc18d

Browse files
committed
version: Support :break: option
1 parent e760cfa commit dcdc18d

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/sphinxnotes/project/anyobjtypes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def _read_template_file(name: str) -> str:
4141
'version': {
4242
'schema': {
4343
'attrs': {
44-
'date': 'date, required, ref, index by year',
44+
'date': 'date, ref, index by year',
45+
'break': 'flag',
4546
},
4647
},
4748
'templates': {
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
1+
{% if date -%}
22
:Date: :version.date+by-year:`📅{{ date }} <{{ date }}>`
33
:Download: :tag:`{{ name }}`
4-
5-
{% if not date -%}
4+
{% else -%}
65
.. note:: This version is still under development and has not been released yet.
76
{%- endif%}
87

8+
{% if break -%}
9+
.. warning:: **This version contains INCOMPATIBLE changes.**
10+
{%- endif%}
11+
912
{% for line in content.split('\n') -%}
1013
{{ line }}
1114
{% endfor %}

0 commit comments

Comments
 (0)