Skip to content

Commit

Permalink
add warning when visiting transition nodes (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Oct 19, 2020
1 parent 71297ac commit d1e8b4c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sphinx_tomyst/writers/translator.py
Expand Up @@ -1673,6 +1673,19 @@ def depart_topic(self, node):
# docutils.elements.transition
# https://docutils.sourceforge.io/docs/ref/doctree.html#transition

def visit_transition(self, node):
docname = self.builder.current_docname
msg = """
SKIP {} [transition] objects are not supported by sphinx-tomyst
""".format(
docname
).strip()
logger.warning(msg)
pass

def depart_transition(self, node):
pass

# docutils.elements.version
# https://docutils.sourceforge.io/docs/ref/doctree.html#version

Expand Down

0 comments on commit d1e8b4c

Please sign in to comment.