diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-05 14:00:10 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-23 10:21:36 -0500 |
| commit | e1b8ac5a37d685c3a320bea4446ec54d6d07167d (patch) | |
| tree | dba1bfb990e28c25e68801977fc89f97ab9ce7ce /docs | |
| parent | 29b3bdc25c0fe37c22931181ed19907005923fd6 (diff) | |
[1.9.x] Removed deprecated html_translator_class sphinx config option.
Backport of bacdfbf3d1eb23ff8e8110681728a5b467443446 and
e5d3f98abcdc20d64d99609bd0aa82331835b439 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_ext/djangodocs.py | 2 | ||||
| -rw-r--r-- | docs/conf.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index cce682e7b7..59db23c13c 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -63,6 +63,8 @@ def setup(app): man=(visit_snippet_literal, depart_snippet_literal), 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} diff --git a/docs/conf.py b/docs/conf.py index ad5bbe60c7..19170f1820 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -192,9 +192,6 @@ html_last_updated_fmt = '%b %d, %Y' # typographically correct entities. html_use_smartypants = True -# HTML translator class for the builder -html_translator_class = "djangodocs.DjangoHTMLTranslator" - # Content template for the index page. # html_index = '' |
