Takeshi KOMIYA
e0abf8ca54
Merge pull request #6842 from anntzer/ternary
...
Replace `a and b or c` by the more legible `b if a or c`.
2019-12-22 15:47:25 +09:00
Takeshi KOMIYA
960ca85fea
Merge pull request #6941 from tk0miya/6936_autogen_raises_AttributeError
...
Fix #6936 : sphinx-autogen: raises AttributeError
2019-12-22 13:22:26 +09:00
Takeshi KOMIYA
8a1994d940
Fix #6936 : sphinx-autogen: raises AttributeError
2019-12-22 10:39:46 +09:00
Antony Lee
814513ba9f
Replace a and b or c
by the more legible b if a or c
.
2019-12-21 11:50:18 +01:00
Takeshi KOMIYA
acdcf81599
Merge pull request #6934 from tk0miya/tests_with_docutils-0.16rc1
...
test: Testing with docutils-0.16rc1
2019-12-21 12:15:05 +09:00
Takeshi KOMIYA
6ed6f9bbcb
Merge branch '2.3.1' into 2.0
2019-12-21 12:03:21 +09:00
Takeshi KOMIYA
0cc01a1606
Merge pull request #6935 from tk0miya/mypy-0.761
...
Fix mypy violations (for mypy-0.761) (T/O)
2019-12-21 12:00:14 +09:00
Takeshi KOMIYA
56940b0d76
Fix mypy violations (for mypy-0.761)
2019-12-21 11:52:59 +09:00
Takeshi KOMIYA
0e0930d712
test: Testing with docutils-0.16rc1
2019-12-21 11:38:31 +09:00
kpnr
c4e60b5b9c
restore sys.path with <finally> statement
2019-12-16 21:17:16 +03:00
hkm
1ca9dacbfe
Added test case for non ASCII & non UTF8 encoding Windows-1251 in test_pycode section
2019-12-15 21:47:57 +03:00
hkm
264329079b
Test suite updated - encoding not detected when getting sources from native loader
2019-12-15 20:50:27 +03:00
hkm
fa5cf6fcdc
lost reference to source file name fixed. Test suit updated
2019-12-15 20:28:02 +03:00
Takeshi KOMIYA
de6184e43f
Merge pull request #6927 from tk0miya/6856_i18n_parser
...
Fix #6855 : Non-RST translated text should be parsed by the appropriate parser
2019-12-16 01:58:57 +09:00
Takeshi KOMIYA
00c30679cf
Deprecate sphinx.io.FiletypeNotFoundError and get_filetype()
2019-12-16 01:45:02 +09:00
James McKinney
2f768cf5a7
Fix #6855 : Non-RST translated text should be parsed by the appropriate parser
2019-12-16 01:38:22 +09:00
Takeshi KOMIYA
876fd40cea
Update CHANGES for PR #6925
2019-12-16 01:30:21 +09:00
Takeshi KOMIYA
9b958f9525
Merge pull request #6925 from jdufresne/text-js
...
Remove redundant type="text/javascript" from <script> elements
2019-12-16 01:29:46 +09:00
Takeshi KOMIYA
108372c7d7
Merge pull request #6922 from tk0miya/6446_sphinx_ext_durations
...
Close #6446 : Add sphinx.ext.durations to inspect durations of build
2019-12-16 01:28:40 +09:00
Jon Dufresne
e6915baae8
Remove redundant type="text/javascript" from <script> elements
...
In HTML5, <script> elements default to MIME type text/javascript. The
HTML5 living standard and MDN recommend against including the attribute.
From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-type
> The HTML5 specification urges authors to omit the attribute rather
> than provide a redundant MIME type.
From https://html.spec.whatwg.org/#the-script-element
> Authors should omit the type attribute instead of redundantly setting
> it.
2019-12-15 07:52:40 -08:00
Takeshi KOMIYA
29687a29f1
Close #6446 : Add sphinx.ext.durations to inspect durations of build
2019-12-16 00:47:23 +09:00
Takeshi KOMIYA
0f79bccb35
Update CHANGES for PR #6910
2019-12-16 00:46:17 +09:00
Takeshi KOMIYA
0b53356a76
Bump version
2019-12-16 00:06:27 +09:00
Takeshi KOMIYA
cb5fab5db9
Bump version
2019-12-16 00:03:44 +09:00
Takeshi KOMIYA
86143a54b8
Bump to 2.3.0 final
2019-12-16 00:01:29 +09:00
Takeshi KOMIYA
076013602b
Merge pull request #6891 from jfbu/latex_6890_curlyquote
...
LaTeX: avoid quotes and TeX ligature replacements in PDF output
2019-12-15 23:21:55 +09:00
jfbu
e49e98a9fa
Update CHANGES for PR #6891
2019-12-15 14:27:30 +01:00
Takeshi KOMIYA
d6f1351528
Merge pull request #6908 from tk0miya/6900_sphinx-build-D_accepts_boolean
...
Fix #6900 : sphinx-build: Allow to pass boolean value via ``-D`` option
2019-12-15 22:21:43 +09:00
Takeshi KOMIYA
dc8cf9eba3
Merge pull request #6919 from tk0miya/6781_custom_POT_headers
...
Close #6781 : gettext Add confvals to customize headers of POT file
2019-12-15 22:20:18 +09:00
jfbu
30b26dd6a1
LaTeX: avoid quotes and TeX ligature replacements in PDF output
...
Refs: #6890
The comma character is not TeX-escaped because it is frequent in general
text and escaping it would make the LaTeX output larger for only dealing
with the problem of the LaTeX-ligature of ,, into a single character.
And one there is problem with the commas in options to Verbatim from
PygmentsBridge.
The hyphen character is escaped (not in ids and URIs!) to
\sphinxhyphen{} for both Unicode and non-Unicode engines. This is needed
to work around hyperref transforming -- and --- from section titles into
EN DASH resp. EM DASH in PDF bookmarks.
https://github.com/latex3/hyperref/issues/112
Note to expert LaTeX users: if Sphinx latex user with xelatex has
- turned off Smart Quotes for some reason,
- but does want TeX ligatures and thus overrode Sphinx
latex_elements['fontenc'] default (since #6888 ) to this effect,
then this should be added to LaTeX preamble:
\def\sphinxhyphen#1{-}% (\protected is now not needed)
\let\sphinxhyphenforbookmarks\sphinxhyphen
2019-12-15 14:19:50 +01:00
Takeshi KOMIYA
ebdd210a6b
Fix #6900 : sphinx-build: -D option does not considers 0 and 1 as a boolean value
2019-12-15 22:07:05 +09:00
Takeshi KOMIYA
3e10cdb3d9
Close #6781 : gettext Add confvals to customize headers of POT file
...
* gettext_last_translator
* gettext_language_team
2019-12-15 22:06:18 +09:00
Takeshi KOMIYA
2ec6ce85ef
Merge pull request #6924 from tk0miya/pinning_coverage
...
CI: Pinning coverage < 5.0
2019-12-15 22:04:29 +09:00
Takeshi KOMIYA
42f6b91333
CI: Pinning coverage < 5.0
2019-12-15 20:40:59 +09:00
hkm
da5cf1b66e
maintainer suggested fixes
2019-12-14 22:08:44 +03:00
kpnr
4d2903e630
Non-ASCII & non utf-8 charset corruption fix
...
Prefer native loader against fileIO
2019-12-14 21:25:39 +03:00
Takeshi KOMIYA
24908e0fa9
Update CHANGES for PR #6632
2019-12-14 23:29:41 +09:00
Takeshi KOMIYA
344f9dcc70
Merge pull request #6923 from tk0miya/6632
...
Add get_secnumber to simplify add_secnumber
2019-12-14 23:25:33 +09:00
Takeshi KOMIYA
1642978cc9
Fix mypy violation
2019-12-14 23:18:27 +09:00
Takeshi KOMIYA
2ae2b0d98a
Merge branch '2.0' into 6632
2019-12-14 22:57:59 +09:00
Takeshi KOMIYA
5b53b74bd9
Fix mypy and flake8 violations
2019-12-14 22:56:24 +09:00
Takeshi KOMIYA
e14b86ef7d
html4: Wrap <span> around sectnum in HTML titles
2019-12-14 22:55:42 +09:00
Takeshi KOMIYA
0dc456fee1
refactor test: check_xpath()
2019-12-14 22:50:55 +09:00
Takeshi KOMIYA
871e0b58a8
Remove meaningless spaces
2019-12-14 22:26:17 +09:00
Takeshi KOMIYA
f279bacbeb
Merge pull request #6921 from tk0miya/6920_wrong_highlight
...
Fix #6920 : sphinx-build: A console message is wrongly highlighted
2019-12-14 22:13:31 +09:00
Takeshi KOMIYA
5e8da0fbcc
Fix #6920 : sphinx-build: A console message is wrongly highlighted
2019-12-14 16:40:53 +09:00
Takeshi KOMIYA
be789b4e9c
Merge pull request #6918 from tk0miya/6887_docutils-0.16
...
Fix #6887 : Sphinx crashes with docutils-0.16b0
2019-12-14 15:55:35 +09:00
Takeshi KOMIYA
faedcc48cc
Fix #6887 : Sphinx crashes with docutils-0.16b0
2019-12-14 13:33:12 +09:00
Damien Ayers
1a54a7229c
Fix documentation typo
...
(cherry picked from commit 937c684960
)
2019-12-13 23:27:04 +01:00
kpnr
4148207756
Update parser.py
...
encoding damages non-ASCII characters
2019-12-12 23:38:01 +03:00