Skip to content

Commit

Permalink
Merge pull request #23 from tbekolay/set_translator
Browse files Browse the repository at this point in the history
Use Sphinx.set_translator
  • Loading branch information
mtdowling committed Jan 16, 2017
2 parents 932d5b1 + 59685c4 commit 06a0a1d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ Add the following to your conf.py:
import guzzle_sphinx_theme
# Adds an HTML table visitor to apply Bootstrap table classes
html_translator_class = 'guzzle_sphinx_theme.HTMLTranslator'
html_theme_path = guzzle_sphinx_theme.html_theme_path()
html_theme = 'guzzle_sphinx_theme'
Expand All @@ -45,8 +43,6 @@ example shows:
import guzzle_sphinx_theme
# Adds an HTML table visitor to apply Bootstrap table classes
html_translator_class = 'guzzle_sphinx_theme.HTMLTranslator'
html_theme_path = guzzle_sphinx_theme.html_theme_path()
html_theme = 'guzzle_sphinx_theme'
Expand Down
1 change: 0 additions & 1 deletion demo/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import guzzle_sphinx_theme

extensions.append("guzzle_sphinx_theme")
html_translator_class = 'guzzle_sphinx_theme.HTMLTranslator'
html_theme_path = guzzle_sphinx_theme.html_theme_path()
html_theme = 'guzzle_sphinx_theme'

Expand Down
1 change: 1 addition & 0 deletions guzzle_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def setup(app):
"""Setup conntects events to the sitemap builder"""
app.connect('html-page-context', add_html_link)
app.connect('build-finished', create_sitemap)
app.set_translator('html', HTMLTranslator)
app.sitemap_links = []


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sphinx>=1.1.3,<1.3
Sphinx>1.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>=1.2b1'],
install_requires=['Sphinx>1.3'],
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
Expand Down

0 comments on commit 06a0a1d

Please sign in to comment.