Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Sphinx.set_translator #23

Merged
merged 1 commit into from
Jan 16, 2017
Merged

Conversation

tbekolay
Copy link
Contributor

Hi! Thanks for this Sphinx theme, it looks beautiful.

I tried it with the most recent version of Sphinx and got a deprecation warning on account of the use of the html_translator_class config option. The recommended way to do this now is to call the set_translator method on the Sphinx app, so this PR does that. I believe this method is available in any version of Sphinx >= 1.3, but since the current requirements had < 1.3 I assumed there was an issue with that release and so set the required version to be > 1.3.

This allows us to always register the `HTMLTranslator` instead of
informing users to add the translator to their configuration files.
The `html_translator_class` config option was recently deprecated,
so now seems a good time to switch.
@mtdowling
Copy link
Member

Looks good, thanks!

@mtdowling mtdowling merged commit 06a0a1d into guzzle:master Jan 16, 2017
@carlos-jenkins carlos-jenkins mentioned this pull request Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants