8000 [3.7] Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translatio… · python/cpython@b6b7795 · GitHub
[go: up one dir, main page]

Skip to content

Commit b6b7795

Browse files
JulienPalardmiss-islington
authored andcommitted
[3.7] Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423) (GH-10344)
(cherry picked from commit c03bf0a)
1 parent 2db96ae commit b6b7795

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Doc/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@
3434
# By default, highlight as Python 3.
3535
highlight_language = 'python3'
3636

37-
# Require Sphinx 1.2 for build.
38-
needs_sphinx = '1.2'
37+
# Require Sphinx 1.7 for build.
38+
needs_sphinx = '1.7'
3939

4040
# Ignore any .rst files in the venv/ directory.
4141
venvdir = os.getenv('VENVDIR', 'venv')
4242
exclude_patterns = [venvdir+'/*', 'README.rst']
4343

44+
# Disable Docutils smartquotes for several translations
45+
smartquotes_excludes = {
46+
'languages': ['ja', 'fr', 'zh_TW', 'zh_CN'], 'builders': ['man', 'text'],
47+
}
48+
4449

4550
# Options for HTML output
4651
# -----------------------

Doc/docutils.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0