]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423...
authorJulien Palard <julien@palard.fr>
Sun, 9 Dec 2018 05:56:59 +0000 (06:56 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 9 Dec 2018 05:56:59 +0000 (21:56 -0800)
(cherry picked from commit c03bf0ae794c3bec9b56f38164535fd1f5bfc04a)

Doc/conf.py
Doc/docutils.conf [deleted file]

index b7bb5a09c50aae00a99297d8b4a898ffca50079a..124cb7aff6b3bfb7f01b39f25a9b4cf1fbbc2910 100644 (file)
@@ -34,13 +34,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: ""''