aboutsummaryrefslogtreecommitdiffstats
path: root/docs/cryptography-docs.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-19 14:06:18 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-19 14:06:18 -0800
commit69f5ee4a703a52d09799b0a9978cb35a05ab18c6 (patch)
treec46cf50744f522c9f30729219c4bb53e4c2b927f /docs/cryptography-docs.py
parent9359d9b243696649492a6a5bc9162f0c117e6169 (diff)
downloadcryptography-69f5ee4a703a52d09799b0a9978cb35a05ab18c6.tar.gz
cryptography-69f5ee4a703a52d09799b0a9978cb35a05ab18c6.tar.bz2
cryptography-69f5ee4a703a52d09799b0a9978cb35a05ab18c6.zip
Fix latex compilation (needed for pdf on read the docs)
Diffstat (limited to 'docs/cryptography-docs.py')
-rw-r--r--docs/cryptography-docs.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/cryptography-docs.py b/docs/cryptography-docs.py
index 4ed5526a..ea7e8eef 100644
--- a/docs/cryptography-docs.py
+++ b/docs/cryptography-docs.py
@@ -31,10 +31,14 @@ class Hazmat(nodes.Admonition, nodes.Element):
pass
-def visit_hazmat_node(self, node):
+def html_visit_hazmat_node(self, node):
return self.visit_admonition(node, "danger")
+def latex_visit_hazmat_node(self, node):
+ return self.visit_admonition(node)
+
+
def depart_hazmat_node(self, node):
return self.depart_admonition(node)
@@ -42,6 +46,7 @@ def depart_hazmat_node(self, node):
def setup(app):
app.add_node(
Hazmat,
- html=(visit_hazmat_node, depart_hazmat_node)
+ html=(html_visit_hazmat_node, depart_hazmat_node),
+ latex=(latex_visit_hazmat_node, depart_hazmat_node),
)
app.add_directive("hazmat", HazmatDirective)