Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423)

This commit is contained in:
Adrian Liaw 2018-11-05 05:04:51 +08:00 committed by Julien Palard
parent 0edc7b1b1a
commit c03bf0ae79
2 changed files with 7 additions and 4 deletions

View File

@ -41,13 +41,18 @@ today_fmt = '%B %d, %Y'
# By default, highlight as Python 3.
highlight_language = 'python3'
# Require Sphinx 1.2 for build.
needs_sphinx = '1.2'
# Require Sphinx 1.7 for build.
needs_sphinx = '1.7'
# Ignore any .rst files in the venv/ directory.
venvdir = os.getenv('VENVDIR', 'venv')
exclude_patterns = [venvdir+'/*', 'README.rst']
# Disable Docutils smartquotes for several translations
smartquotes_excludes = {
'languages': ['ja', 'fr', 'zh_TW', 'zh_CN'], 'builders': ['man', 'text'],
}
# Options for HTML output
# -----------------------

View File

@ -1,2 +0,0 @@
[restructuredtext parser]
smartquotes-locales: ja: ""''