Skip to content

Commit

Permalink
Merge pull request #47 from regisb/regisb/featuretoggle-warnings
Browse files Browse the repository at this point in the history
[BD-21] Add support for warnings in the `featuretoggles` Sphinx extension
  • Loading branch information
robrap authored Aug 25, 2020
2 parents b263c6c + 76ea9d4 commit 12dc1a7
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 12dc1a7

Please sign in to comment.