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
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
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
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
2ae2b0d98a
Merge branch '2.0' into 6632
2019-12-14 22:57:59 +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
faedcc48cc
Fix #6887 : Sphinx crashes with docutils-0.16b0
2019-12-14 13:33:12 +09:00
jfbu
a0fe0aba1b
Update longtable latex template
2019-12-07 00:37:33 +01:00
Takeshi KOMIYA
7292ab7eef
Merge branch '2.2.2' into 2.0
2019-12-03 01:19:02 +09:00
Takeshi KOMIYA
6f529f01ed
Fix #6803 : Disable parallel build on macOS and py38+
2019-12-01 16:01:19 +09:00
Takeshi KOMIYA
5a05cabd6a
Fix #6867 : text: extra spaces are inserted to hyphenated words on folding lines
2019-11-30 22:44:13 +09:00
Jonas Haag
df2f80c755
Add linkcheck_auth option
2019-11-25 09:53:45 +01:00
Takeshi KOMIYA
c65243325c
Merge branch '2.0' into 6798_autosummary_emits_skip_member_event
2019-11-21 00:45:57 +09:00
Jean-François B
9f7c7a34db
Merge pull request #6845 from jfbu/latex_do_not_escape_verticalbarchar
...
LaTeX: stop escaping | to LaTeX macro, except if in an index entry
2019-11-18 21:39:43 +01:00
Takeshi KOMIYA
aa882e947c
Merge pull request #6834 from tk0miya/6738_deprecated_tex_escape_map
...
Reconsider public APIs of sphinx.util.texescape
2019-11-19 02:02:37 +09:00
jfbu
e720f0a1a2
LaTeX: stop escaping | to LaTeX macro, except if in an index entry
2019-11-18 01:57:07 +01:00
Takeshi KOMIYA
76c7e07e8d
Merge branch '2.0' into 4683_more_translatable_toctree
2019-11-17 01:32:25 +09:00
Takeshi KOMIYA
f3469bcc8f
Make escape() and hlescape() as public APIs of texescape
2019-11-16 19:42:06 +09:00
Takeshi KOMIYA
491b19d6bb
autosummary: Allows to document a member forcedly if skip-member handler returns False
2019-11-16 18:19:33 +09:00
Takeshi KOMIYA
66c3dd3adb
Close #6798 : autosummary: emit `autodoc-skip-member` event on generating stub file
2019-11-16 18:19:31 +09:00
Takeshi KOMIYA
660e746cf8
Fix #6738 : latex: literal_block does not support raw unicode characters
2019-11-16 16:47:20 +09:00
Jean-François B
b070e5be52
Merge branch '2.0' into 6738_new_escape_for_unicode_latex_engine
2019-11-15 19:09:16 +01:00
Thomas Robitaille
fa1cca1fee
Improve variable names and code style
2019-11-12 14:29:20 +00:00
Thomas Robitaille
0a437bc9d6
Give a warning when extensions are explicitly not parallel safe
2019-11-12 14:22:21 +00:00
Takeshi KOMIYA
4ec563fcff
Close #6762 : latex: Allow to load additonal LaTeX packages
2019-11-05 22:25:41 +09:00
Takeshi KOMIYA
5aee836dc1
Close #4683 : i18n: make explicit titles in toctree translatable
2019-11-01 22:01:06 +09:00
Takeshi KOMIYA
39b166b6b9
Fix #6742 : end-before option of literalinclude skips first line
2019-10-28 19:16:20 +09:00
Takeshi KOMIYA
56bbb08b2c
Do not replace unicode characters by LaTeX macros on unicode supported LaTeX engines
2019-10-20 22:54:21 +09:00
Takeshi KOMIYA
93d659568d
Fix #5070 : epub: Wrong internal href fragment links
2019-10-20 14:32:08 +09:00
Takeshi KOMIYA
cb22be80c2
Merge branch '2.2.1' into 2.0
2019-10-20 13:42:10 +09:00
Takeshi KOMIYA
a20c7e6eb5
Merge branch '2.0' into 6709_mock_class_decorators
2019-10-14 11:00:24 +09:00
Takeshi KOMIYA
a750371641
Fix #6652 : Run tests with wrong latex_documents setting
2019-10-12 22:46:45 +09:00
Takeshi KOMIYA
59336da8bd
Fix #6709 : autodoc: mock object does not work as a class decorator
2019-10-06 23:31:07 +09:00
Jakob Lykke Andersen
9671267009
C++, support bit-fields
...
Fixes sphinx-doc/sphinx#6707
2019-10-06 11:23:47 +02:00
jfbu
7be68b7c4b
Add latexpdf support for Greek as main language (via xelatex use)
...
Closes : #6710
2019-10-01 10:27:43 +02:00
Takeshi KOMIYA
a5d8e3d457
Merge pull request #6419 from larsoner/config
...
ENH: Explain rebuilds
2019-08-18 22:04:27 +09:00
Jon Dufresne
ecb1e763ad
Switch uses of __import__ to importlib.get_module()
...
The Python docs for __import__ recommend using importlib.get_module().
https://docs.python.org/3/library/functions.html#__import__
> Note: This is an advanced function that is not needed in everyday
> Python programming, unlike importlib.import_module().
As importlib.get_module() uses the Python module cache and returns the
module, this also allows simplifying many module cache checks of use of
sys.modules.
importlib.get_module() has been available since Python 3.3.
2019-08-17 11:45:39 -07:00
Yves Chevallier
06648a3157
Fix annotations
2019-08-08 09:03:29 +02:00
Eric Larson
c0e46adc07
ENH: Explain rebuilds
2019-08-06 09:59:35 -04:00
Takeshi KOMIYA
b43676011e
Merge branch '2.0' into 6574_annotation_for_varidic_params
2019-08-03 02:19:29 +09:00
Takeshi KOMIYA
04fbd51b4e
Merge pull request #6592 from tk0miya/6589_autodoc_typehints_none
...
Fix #6589 : autodoc: Formatting issues with autodoc_typehints='none'
2019-08-02 22:36:43 +09:00
Takeshi KOMIYA
ace7b4ded7
Fix #6589 : autodoc: Formatting issues with autodoc_typehints='none'
2019-08-02 01:55:53 +09:00
Takeshi KOMIYA
d9d8ba5e7f
Fix #6606 : Update jQuery to 3.4.1
2019-08-02 01:53:32 +09:00
Takeshi KOMIYA
b3eb853680
Merge branch '2.0' into 6574_annotation_for_varidic_params
2019-08-02 01:29:39 +09:00
Takeshi KOMIYA
8c924f1b3d
Fix autodoc: autodoc_member_order_does not refer order of imports (refs: #6574 )
2019-07-13 22:02:49 +09:00
Takeshi KOMIYA
0bc530f1b7
Merge pull request #6563 from tk0miya/6561_glossary_hyperrer_for_alphanumeric_term
...
Fix #6561 : glossary: Wrong hyperlinks are generated for non alphanumeric terms
2019-07-13 21:16:31 +09:00
Takeshi KOMIYA
a252636333
Merge branch '2.0' into 6561_glossary_hyperrer_for_alphanumeric_term
2019-07-13 20:59:48 +09:00