Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Change Log
Unreleased
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[1.4.0] - 2022-05-23
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Rename toggle_warnings to toggle_warning

[1.3.0] - 2022-02-07
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion code_annotations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Extensible tools for parsing annotations in codebases.
"""

__version__ = '1.3.0'
__version__ = '1.4.0'
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ annotations:
- ".. toggle_creation_date:":
- ".. toggle_target_removal_date:":
optional: true
- ".. toggle_warnings:":
- ".. toggle_warning:":
optional: true
- ".. toggle_tickets:":
optional: true
Expand Down
4 changes: 2 additions & 2 deletions code_annotations/contrib/sphinx/extensions/featuretoggles.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ def iter_nodes(self):
toggle_section += nodes.paragraph(
text=toggle.get(".. toggle_description:", "")
)
if toggle.get(".. toggle_warnings:") not in (None, "None", "n/a", "N/A"):
if toggle.get(".. toggle_warning:") not in (None, "None", "n/a", "N/A"):
toggle_section += nodes.warning(
"", nodes.paragraph("", toggle[".. toggle_warnings:"])
"", nodes.paragraph("", toggle[".. toggle_warning:"])
)
yield toggle_section

Expand Down