Skip to content

Commit

Permalink
[1.8.x] Removed deprecated html_translator_class sphinx config option.
Browse files Browse the repository at this point in the history
Backport of bacdfbf and
e5d3f98 from master
  • Loading branch information
timgraham committed Jan 23, 2017
1 parent 0311b7e commit b248f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/_ext/djangodocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,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}


Expand Down
3 changes: 0 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ def django_release():
# 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 = ''

Expand Down

0 comments on commit b248f33

Please sign in to comment.