Commit Graph

16732 Commits

Author SHA1 Message Date
Takeshi KOMIYA
f0eb2cca87
Merge pull request #8869 from tk0miya/8860_recipe_tutorial
Fix #8860: doc: recipe directive crashes with AttributeError
2021-02-12 22:33:27 +09:00
Takeshi KOMIYA
30bc4d450a Update CHANGES for PR #8868 2021-02-11 22:28:38 +09:00
Takeshi KOMIYA
fbe5f43ccd
Merge pull request #8868 from emilio/long-result-list-fix
searchtools: Don't use slideDown to show search results.
2021-02-11 22:25:37 +09:00
Takeshi KOMIYA
f17ab57b64 Fix #8860: doc: recipe directive crashes with AttributeError
The pre check in the `ReceipeDirective.add_target_and_index() was wrong.
It checkes non-existing option "noindex", but it should check "contains"
option instead.
2021-02-11 22:13:07 +09:00
Emilio Cobos Álvarez
b6aaf07df1
searchtools: Don't use slideDown to show search results.
Fixes a performance issue with massive lists like #8562.

jQuery.slideDown is pretty bad perf-wise since it thrashes layout
multiple times.

The 5ms animation is unnoticeable (it last less than an animation
frame!) and just burns CPU cycles unnecessarily in all browsers.

On Firefox this is specially bad because it hits a performance cliff
with list items / CSS counters
(https://bugzilla.mozilla.org/show_bug.cgi?id=1683910#c26 for all the
gory details) where it causes tons of counter recalc.

An alternative fix for the Firefox cliff would be to set overflow:
hidden on the list item, but I think removing the animation is probably
more sensible, given that as I said it's just burning CPU.

Fixes #8562
2021-02-10 20:28:06 +01:00
Takeshi KOMIYA
f11592eb32
Merge pull request #8861 from tk0miya/refactor_latex_writer3
refactor: LaTeX: Assign node_ids to footnotemark and footnotetext
2021-02-11 00:41:11 +09:00
Takeshi KOMIYA
674831cf10 Update CHANGES for PR #8865 2021-02-11 00:33:25 +09:00
Takeshi KOMIYA
52e90483fc
Merge pull request #8865 from brechtm/pr/fix_transforms
[bugfix] SubstitutionDefinitionsRemove: only run for LaTeX builder
2021-02-11 00:30:54 +09:00
Brecht Machiels
ebc3c68b78 SubstitutionDefinitionsRemove: only run for LaTeX builder 2021-02-10 12:04:50 +01:00
jfbu
e4ba80f92d Minor style issue in texinputs/sphinx.sty 2021-02-09 19:34:09 +01:00
Jean-François B
15209223ac
Merge pull request #8862 from jfbu/latex_docs_minor_refactoring
Minor refactoring in doc/latex.rst
2021-02-09 18:42:09 +01:00
jfbu
87d0b15eab Also indent warning to not interrupt description list 2021-02-09 18:29:56 +01:00
jfbu
a310c4c5b6 Indent note directive inside list item 2021-02-09 18:25:37 +01:00
jfbu
32d8b4e445 Minor refactoring in doc/latex.rst 2021-02-09 18:11:24 +01:00
jfbu
52fc9bdd86 s/node.attributes/node/ at one other location 2021-02-09 17:51:55 +01:00
Jean-François B
a164d4c12c
Merge pull request #8832 from jfbu/latex_hyperlinked_caption_footnotes_on_3.x
Latex hyperlinked caption footnotes on 3.x
2021-02-09 17:45:41 +01:00
Takeshi KOMIYA
124edda281 refactor: LaTeX: Assign node_ids to footnotemark and footnotetext
On converting footnote nodes for the LaTeX writer, node_ids for footnote
nodes are almost cleared.  This copies the original node_id to the
footnotemark node (as refid) and footnotetext node (as node_id).  It's
useful to improve footnote features.
2021-02-10 01:42:20 +09:00
Jean-François B
e759bd14c8
Update sphinx/writers/latex.py
Co-authored-by: Takeshi KOMIYA <i.tkomiya@gmail.com>
2021-02-09 16:45:49 +01:00
jfbu
0c89c85a39 Merge branch '3.x' into latex_hyperlinked_caption_footnotes_on_3.x 2021-02-09 16:39:55 +01:00
Jean-François B
1c08467040
Merge pull request #8851 from jfbu/latex_enhance_docs_about_index
LaTeX: improve docs of 'printindex' and 'makeindex'
2021-02-09 16:16:26 +01:00
Jean-François B
86ea2a93e0
Merge pull request #8854 from jfbu/latex_longstringsincodeblocks
LaTeX: optionally apply a second forceful wrapping of long code lines
2021-02-09 16:14:48 +01:00
jfbu
aaac721104 Typo 2021-02-09 16:04:01 +01:00
jfbu
035d13fd24 Update CHANGES and docs relative to new verbatimforcewraps 2021-02-09 15:47:15 +01:00
Takeshi KOMIYA
5935a4b152
Merge pull request #8843 from tk0miya/8837_sphinx_html_title
Fix #8837: doc: Remove version info from html_title
2021-02-09 22:42:57 +09:00
Takeshi KOMIYA
138b0dbe8b
Merge pull request #8836 from tk0miya/refactor_latex_writer2
refactor: LaTeX: separate self.body.append() call to single line output
2021-02-09 22:26:07 +09:00
Takeshi KOMIYA
71df21dd4f Update CHANGES for PR #8853 2021-02-09 22:19:05 +09:00
Takeshi KOMIYA
3207da1fa8
Merge pull request #8853 from jpmckinney/markdown-locale-heading-3.x
i18n: Locale transform: Change heading syntax to work for both RST and Markdown
2021-02-09 22:15:51 +09:00
jfbu
7175d11f05 Add forgotten minwidth computation 2021-02-09 13:16:12 +01:00
jfbu
eee17ff61a Fix forgotten link to Pygments home site, mmmmpf 2021-02-09 12:33:16 +01:00
jfbu
abddafa98a Fix inexistent directive "notice", it is "note"... 2021-02-09 12:28:03 +01:00
jfbu
c6a8fb1625 Add verbatimmaxoverfull and verbatimmaxunderfull 2021-02-09 12:18:31 +01:00
jfbu
dffb819ec4 Support Unicode input when forcefully wrapping code lines
This needs special coding only for pdflatex, Unicode TeX engines already
handle Unicode characters as one token.

The utf8x LaTeX input encoding is not supported, only utf8.
2021-02-09 11:24:24 +01:00
jfbu
0076ad3fd3 Indicated force wrapping code lines is fragile with Unicode input 2021-02-09 00:01:39 +01:00
jfbu
702545da1c LaTeX: optionally apply a second forceful wrapping of long code lines
Closes #8849
2021-02-08 23:13:46 +01:00
James McKinney
4917dd5f84
i18n: Locale transform: Change heading syntax to work for both RST and Markdown 2021-02-08 13:47:41 -05:00
jfbu
a984f5f7cc LaTeX: improve docs of 'printindex' and 'makeindex'
Closes #8055
2021-02-08 14:59:20 +01:00
Takeshi KOMIYA
4cbb2925fd Fix #8837: doc: Remove version info from html_title 2021-02-07 21:24:15 +09:00
jfbu
4a239bb886 Extra references to explicitly numbered footnote get page indication
To achieve this the simplest was to use also the \label/\ref mechanism
as for footnotes typeset using footnotetext. Removing the hack into
footnotehyper internal macro, we use an enriched scope, which will
enable references with same number to each generate correct links.
2021-02-06 22:00:47 +01:00
Takeshi KOMIYA
d0785e549d
Merge pull request #8834 from tk0miya/refactor_linkcheck6
refactor: linkcheck: Deprecate attributes of linkcheck builders
2021-02-07 02:53:24 +09:00
Takeshi KOMIYA
899ccfd40e refactor: linkcheck: Deprecate attributes of linkcheck builders
Move anchors_ignore, auth and to_ignore to
HyperlinkAvailabilityCheckWorker and become deprecated.
2021-02-07 02:39:35 +09:00
Takeshi KOMIYA
94885c894c
Merge pull request #8833 from tk0miya/refactor_linkcheck8
refactor: linkcheck: Remove unused attribute HyperlinkAvailabilityCheckWorker.app
2021-02-07 02:29:19 +09:00
Jean-François B
a565e74039
Merge pull request #8840 from jfbu/latex_fix_table_spacing_broken
Revert "Add \nobreak inside \sphinxAtStartPar"
2021-02-06 16:55:32 +01:00
jfbu
38b14bbfef Revert "Add \nobreak inside \sphinxAtStartPar"
This reverts commit 17642a5e6b.

Fixes #8838. For some reason the \nobreak causes breakage in table
vertical spacing for merge cells in tabular and longtable, and regarding
tabulary for all cells...

Reverting this will cause as described in the reverted commit message
some much less annoying problem in certain circumstances when a long
word has no hyphenation point.
2021-02-06 16:35:16 +01:00
jfbu
ff305ec258 Be extra cautious to not use \@arabic in \thesphinxscope 2021-02-06 13:57:07 +01:00
jfbu
6275a7756f Use \thesphinxscope mark-up (shorter, and may help trick for page scope) 2021-02-06 13:43:12 +01:00
Takeshi KOMIYA
f076335598 refactor: LaTeX: separate self.body.append() call to single line output 2021-02-06 21:26:43 +09:00
jfbu
c55216858e Abstract \stepcounter{sphinxscope} into macro for flexibility 2021-02-06 11:38:24 +01:00
jfbu
628c58abef Prepare for scope-limited footnote numbering 2021-02-06 10:45:50 +01:00
jfbu
9c823478e0 Update CHANGES 2021-02-05 20:39:32 +01:00
jfbu
98f4732a98 LaTeX: make all references to explicitly numbered footnote clickable 2021-02-05 20:26:17 +01:00