summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-01-24 08:52:43 -0500
committerTim Graham <timograham@gmail.com>2014-01-24 09:05:55 -0500
commit60054e6e31abbe8ec17631f1afff77c947a05fad (patch)
tree8817f58b70e6542fe75707561474cabc2e66e357 /docs/_ext
parentc539a4490f8c49bcd264d3d08c8686624cca6698 (diff)
[1.5.x] Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.
Thanks tragiclifestories for the report. Backport of e1d18b9d2e from master
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/djangodocs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 29ff50546b..3605270824 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -99,11 +99,13 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
self.compact_p = self.context.pop()
self.body.append('</table>\n')
- # <big>? Really?
def visit_desc_parameterlist(self, node):
- self.body.append('(')
+ self.body.append('(') # by default sphinx puts <big> around the "("
self.first_param = 1
+ self.optional_param_level = 0
self.param_separator = node.child_text_separator
+ self.required_params_left = sum([isinstance(c, addnodes.desc_parameter)
+ for c in node.children])
def depart_desc_parameterlist(self, node):
self.body.append(')')