Skip to content

Commit

Permalink
Add support for warnings in the featuretoggles Sphinx extension
Browse files Browse the repository at this point in the history
  • Loading branch information
regisb committed Aug 25, 2020
1 parent 97cd339 commit 76ea9d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Change Log

.. There should always be an "Unreleased" section for changes pending release.
[0.5.1] - 2020-08-25
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Add support for warnings in the ``featuretoggles`` Sphinx extension

[0.5.0] - 2020-08-06
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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__ = '0.5.0'
__version__ = '0.5.1'
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ def iter_nodes(self):
),
)
yield nodes.paragraph(text=toggle.get(".. toggle_description:", ""))
if toggle.get(".. toggle_warnings:") not in (None, "None", "n/a", "N/A"):
yield nodes.warning(
"", nodes.paragraph("", toggle[".. toggle_warnings:"])
)


def quote_value(value):
Expand Down

0 comments on commit 76ea9d4

Please sign in to comment.