diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-22 10:08:53 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-22 10:08:53 -0800 |
commit | aafa63cce69c446a0c4d713c8357c61d4a7a8f4e (patch) | |
tree | ee9151a940c3b2f8331494151cf06d411bce8ab4 /docs/cryptography-docs.py | |
parent | 43307c7b57b5d2cbee01f1a89eae212d2325ca40 (diff) | |
parent | 838ad7d2f5bb97242a9f75ac9055be5be75a7711 (diff) | |
download | cryptography-aafa63cce69c446a0c4d713c8357c61d4a7a8f4e.tar.gz cryptography-aafa63cce69c446a0c4d713c8357c61d4a7a8f4e.tar.bz2 cryptography-aafa63cce69c446a0c4d713c8357c61d4a7a8f4e.zip |
Merge branch 'master' into fernet
Diffstat (limited to 'docs/cryptography-docs.py')
-rw-r--r-- | docs/cryptography-docs.py | 9 |
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) |