8000 Doc: Disable smartquotes for zh-tw, fr and ja translations by adrianliaw · Pull Request #9423 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Doc: Disable smartquotes for zh-tw, fr and ja translations #9423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 4, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Doc: Disable smartquotes for ja, fr and zh_TW translations
This is a replacement for #9337.

* Using conf.py to disable smartquotes through Sphinx instead of using docutils.conf
* Disable smartquotes for Japanese, French and Traditional Chinese translations

See:
* Suggesting to use conf.py: https://mail.python.org/pipermail/doc-sig/2018-September/004084.html
* Original smartquotes issue in ja translations: https://bugs.python.org/issue31793
* Disabling for ja: #4006
* Smartquotes issue in fr: python/python-docs-fr#303
* Smartquotes issue in zh_TW: https://mail.python.org/pipermail/doc-sig/2018-August/004079.html
  • Loading branch information
adrianliaw committed Oct 11, 2018
commit 9c176a9ce335d0e0007af1c0504dcbcdb68de73c
5 changes: 5 additions & 0 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
venvdir = os.getenv('VENVDIR', 'venv')
exclude_patterns = [venvdir+'/*', 'README.rst']

# Disable Docutils smartquotes for several translations
smartquotes_excludes = {
'languages': ['ja', 'fr', 'zh_TW'], 'builders': ['man', 'text'],
}


# Options for HTML output
# -----------------------
Expand Down
2 changes: 0 additions & 2 deletions Doc/docutils.conf

This file was deleted.

0