Skip to content

Commit c03bf0a

Browse files
adrianliawJulienPalard
authored andcommitted
Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423)
1 parent 0edc7b1 commit c03bf0a

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
@@ -41,13 +41,18 @@
4141
# By default, highlight as Python 3.
4242
highlight_language = 'python3'
4343

44-
# Require Sphinx 1.2 for build.
45-
needs_sphinx = '1.2'
44+
# Require Sphinx 1.7 for build.
45+
needs_sphinx = '1.7'
4646

4747
# Ignore any .rst files in the venv/ directory.
4848
venvdir = os.getenv('VENVDIR', 'venv')
4949
exclude_patterns = [venvdir+'/*', 'README.rst']
5050

51+
# Disable Docutils smartquotes for several translations
52+
smartquotes_excludes = {
53+
'languages': ['ja', 'fr', 'zh_TW', 'zh_CN'], 'builders': ['man', 'text'],
54+
}
55+
5156

5257
# Options for HTML output
5358
# -----------------------

Doc/docutils.conf

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

0 commit comments

Comments
 (0)