diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6c30823..4cb1048 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,11 @@ Change Log Unreleased ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +[1.4.0] - 2022-05-23 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +* Rename toggle_warnings to toggle_warning for consistency with setting_warning. + [1.3.0] - 2022-02-07 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/code_annotations/__init__.py b/code_annotations/__init__.py index 3ae765c..7cc8293 100644 --- a/code_annotations/__init__.py +++ b/code_annotations/__init__.py @@ -2,4 +2,4 @@ Extensible tools for parsing annotations in codebases. """ -__version__ = '1.3.0' +__version__ = '1.4.0' diff --git a/code_annotations/contrib/config/feature_toggle_annotations.yaml b/code_annotations/contrib/config/feature_toggle_annotations.yaml index a937d47..2860517 100644 --- a/code_annotations/contrib/config/feature_toggle_annotations.yaml +++ b/code_annotations/contrib/config/feature_toggle_annotations.yaml @@ -17,7 +17,7 @@ annotations: - ".. toggle_creation_date:": - ".. toggle_target_removal_date:": optional: true - - ".. toggle_warnings:": + - ".. toggle_warning:": optional: true - ".. toggle_tickets:": optional: true diff --git a/code_annotations/contrib/sphinx/extensions/featuretoggles.py b/code_annotations/contrib/sphinx/extensions/featuretoggles.py index 93996c9..df5ae8f 100644 --- a/code_annotations/contrib/sphinx/extensions/featuretoggles.py +++ b/code_annotations/contrib/sphinx/extensions/featuretoggles.py @@ -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