summaryrefslogtreecommitdiff
path: root/_exts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-25 13:50:10 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-25 13:50:10 +0200
commitc42f3ee33d1baee1ca74a071bbbef343799ecfd8 (patch)
tree7ddee1ef9e4bf4125923dbb047e8cc79004560ab /_exts
parent4d46659141131eb2a32cf7992faa9b4a4541aa1d (diff)
downloaddocs-c42f3ee33d1baee1ca74a071bbbef343799ecfd8.tar.gz
docs-c42f3ee33d1baee1ca74a071bbbef343799ecfd8.tar.bz2
docs-c42f3ee33d1baee1ca74a071bbbef343799ecfd8.zip
output warning
Diffstat (limited to '_exts')
-rw-r--r--_exts/tsref.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/_exts/tsref.py b/_exts/tsref.py
index daeb08c..9ff5893 100644
--- a/_exts/tsref.py
+++ b/_exts/tsref.py
@@ -37,6 +37,7 @@ from pygments.formatters import HtmlFormatter
from docutils import nodes
from docutils.nodes import make_id
import re
+import sys
_escape_html_table = {
@@ -118,6 +119,9 @@ class MyHtmlBuilder(StandaloneHTMLBuilder):
self._current_docname = docname
super(MyHtmlBuilder, self).write_doc(docname, doctree)
+ def warn(self, msg):
+ print("warning:", msg, file=sys.stderr)
+
def get_annotation(tok, key):
if not hasattr(tok, "kv"):