From bacdfbf3d1eb23ff8e8110681728a5b467443446 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 5 Dec 2016 14:00:10 -0500 Subject: [PATCH] Removed deprecated html_translator_class sphinx config option. --- docs/_ext/djangodocs.py | 1 + docs/conf.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 8daca2bc6d..7d975f47c6 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -63,6 +63,7 @@ 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) return {'parallel_read_safe': True} diff --git a/docs/conf.py b/docs/conf.py index f25ea37158..5cba4e50ba 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 = ''