Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c03bf0a

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

File tree

Expand file treeCollapse file tree

2 files changed

+7
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-4
lines changed

‎Doc/conf.py

Copy file name to clipboardExpand all lines: Doc/conf.py
+7-2Lines 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

Copy file name to clipboardExpand all lines: Doc/docutils.conf
-2Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.