summaryrefslogtreecommitdiffstats
path: root/Doc/conf.py
diff options
context:
space:
mode:
authorAdrian Liaw <adrianliaw2000@gmail.com>2018-11-04 21:04:51 (GMT)
committerJulien Palard <julien@palard.fr>2018-11-04 21:04:51 (GMT)
commitc03bf0ae794c3bec9b56f38164535fd1f5bfc04a (patch)
tree85dbe58c00e19f3ef8e31812026c4e69886be02d /Doc/conf.py
parent0edc7b1b1a2b22d4d200f80995454d01927bf93e (diff)
downloadcpython-c03bf0ae794c3bec9b56f38164535fd1f5bfc04a.zip
cpython-c03bf0ae794c3bec9b56f38164535fd1f5bfc04a.tar.gz
cpython-c03bf0ae794c3bec9b56f38164535fd1f5bfc04a.tar.bz2
Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423)
Diffstat (limited to 'Doc/conf.py')
-rw-r--r--Doc/conf.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 6060ac1..eb57ee0 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -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
# -----------------------