diff options
author | Jonathan Corbet <corbet@lwn.net> | 2023-04-20 09:34:35 -0600 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2023-04-20 17:53:18 -0600 |
commit | eaae75754d8192623a33a2d29bf1892c12965113 (patch) | |
tree | 7bf8367ec6e0445b484f0813acb7d7fb6fa4dfc9 /Documentation/conf.py | |
parent | b645fc696bec7653f3396e933015dd8728bbb10f (diff) | |
download | linux-rpi-eaae75754d8192623a33a2d29bf1892c12965113.tar.gz linux-rpi-eaae75754d8192623a33a2d29bf1892c12965113.tar.bz2 linux-rpi-eaae75754d8192623a33a2d29bf1892c12965113.zip |
docs: turn off "smart quotes" in the HTML build
We have long disabled the "html_use_smartypants" option to prevent Sphinx
from mangling "--" sequences (among others). Unfortunately, Sphinx changed
that option to "smartquotes" in the 1.6.6 release, and seemingly didn't see
fit to warn about the use of the obsolete option, resulting in the
aforementioned mangling returning. Disable this behavior again and hope
that the option name stays stable for a while.
Reported-by: Zipeng Zhang <zhangzipeng0@foxmail.com>
Link: https://lore.kernel.org/lkml/tencent_CB1A298D31FD221496FF657CD7EF406E6605@qq.com
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r-- | Documentation/conf.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index db16814f182f..37314afd1ac8 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -343,9 +343,10 @@ sys.stderr.write("Using %s theme\n" % html_theme) # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['sphinx-static'] -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -html_use_smartypants = False +# If true, Docutils "smart quotes" will be used to convert quotes and dashes +# to typographically correct entities. This will convert "--" to "—", +# which is not always what we want, so disable it. +smartquotes = False # Custom sidebar templates, maps document names to template names. # Note that the RTD theme ignores this |