summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-10-10 17:32:33 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-10-10 17:32:33 +0000
commitc61987d75ad9bc5233257f46a8246bb9d63bbbe1 (patch)
tree8effcabf40a7e1718973456c693d2decc5a8e8d3 /docs/_ext
parentaf244e47ccc88860fe928fec96c7873e3e4017fe (diff)
Removed use of non-standard indentation rules in docs, and the custom transform that supported them.
Doc writers should be aware that we are now back to normal ReST rules regarding blockquotes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/djangodocs.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 21c4716d18..d4a0512f71 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -62,7 +62,6 @@ def setup(app):
app.add_config_value('django_next_version', '0.0', True)
app.add_directive('versionadded', VersionDirective)
app.add_directive('versionchanged', VersionDirective)
- app.add_transform(SuppressBlockquotes)
app.add_builder(DjangoStandaloneHTMLBuilder)
@@ -99,27 +98,6 @@ class VersionDirective(Directive):
return ret
-class SuppressBlockquotes(transforms.Transform):
- """
- Remove the default blockquotes that encase indented list, tables, etc.
- """
- default_priority = 300
-
- suppress_blockquote_child_nodes = (
- nodes.bullet_list,
- nodes.enumerated_list,
- nodes.definition_list,
- nodes.literal_block,
- nodes.doctest_block,
- nodes.line_block,
- nodes.table
- )
-
- def apply(self):
- for node in self.document.traverse(nodes.block_quote):
- if len(node.children) == 1 and isinstance(node.children[0], self.suppress_blockquote_child_nodes):
- node.replace_self(node.children[0])
-
class DjangoHTMLTranslator(SmartyPantsHTMLTranslator):
"""
Django-specific reST to HTML tweaks.