summaryrefslogtreecommitdiff
path: root/doc/_extensions/html_domain.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-07-03 11:45:55 +0200
committerXavier Morel <xmo@odoo.com>2017-07-03 11:49:03 +0200
commit9a07a4599ce08bd1e3a74579a982fa3a58dc6cb2 (patch)
tree4608699ce4d61cf5680f9406776c6a1daf287298 /doc/_extensions/html_domain.py
parent828c7c3da92970e3f0836a62f858ac2f5229947a (diff)
[FIX] doc warnings
* add Sphinx 1.6 compatibility (use app.set_translator when available as in that case programmatically setting html_translator_class is broken) * fix a bunch of code block lexers to avoid warnings & get better coloration * add a few options which were referred to without being actually defined * fix some rST formatting
Diffstat (limited to 'doc/_extensions/html_domain.py')
-rw-r--r--doc/_extensions/html_domain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/_extensions/html_domain.py b/doc/_extensions/html_domain.py
index 2ee896486b4..4b0f18a9b82 100644
--- a/doc/_extensions/html_domain.py
+++ b/doc/_extensions/html_domain.py
@@ -24,7 +24,7 @@ def setup(app):
app.add_node(address, html=(
lambda self, node: self.body.append(self.starttag(node, 'address')),
lambda self, node: self.body.append('</address>\n')
- ))
+ ), override=True) # docutils.nodes.address exists and is a bibliographic element
app.add_node(cite, html=(visit_cite, depart_cite))
for name, node in [('mark', mark), ('ins', insert), ('del', delete),
('s', strikethrough), ('u', underline), ('small', small),