summaryrefslogtreecommitdiff
path: root/docs/_ext/djangodocs.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-14 14:31:29 -0500
committerTim Graham <timograham@gmail.com>2016-12-14 14:31:29 -0500
commite5d3f98abcdc20d64d99609bd0aa82331835b439 (patch)
tree5faf58793bc5fd4422672ea6b652e9cfe5c83ebb /docs/_ext/djangodocs.py
parentef889d5b10c02c8f0c19f7384fbb51d291240bee (diff)
downloaddjango-e5d3f98abcdc20d64d99609bd0aa82331835b439.tar.gz
Fixed missing versionadded/changed annotations on docs.djangoproject.com.
Fixed a regression in bacdfbf3d1eb23ff8e8110681728a5b467443446.
Diffstat (limited to 'docs/_ext/djangodocs.py')
-rw-r--r--docs/_ext/djangodocs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index 7d975f47c6..a5d545f46b 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -64,6 +64,7 @@ def setup(app):
text=(visit_snippet_literal, depart_snippet_literal),
texinfo=(visit_snippet_literal, depart_snippet_literal))
app.set_translator('djangohtml', DjangoHTMLTranslator)
+ app.set_translator('json', DjangoHTMLTranslator)
return {'parallel_read_safe': True}