]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423)
authorAdrian Liaw <adrianliaw2000@gmail.com>
Sun, 4 Nov 2018 21:04:51 +0000 (05:04 +0800)
committerJulien Palard <julien@palard.fr>
Sun, 4 Nov 2018 21:04:51 +0000 (22:04 +0100)
Doc/conf.py
Doc/docutils.conf [deleted file]

index 6060ac176c95f3ea56bd75fc9426654d70f419a3..eb57ee0c93399efe32092df6c9bcd4d9d99f619a 100644 (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
 # -----------------------
diff --git a/Doc/docutils.conf b/Doc/docutils.conf
deleted file mode 100644 (file)
index bda4f5d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-[restructuredtext parser]
-smartquotes-locales: ja: ""''