Commit Graph

16766 Commits

Author SHA1 Message Date
Takeshi KOMIYA
c25eff471f
Merge pull request #8890 from tk0miya/8886
Fix #8884: Include sphinx/search/minified-js in the tarball
2021-02-15 22:56:36 +09:00
Takeshi KOMIYA
84f5991e86 Merge branch '3.5.x' into 8886 2021-02-15 22:42:52 +09:00
Takeshi KOMIYA
e5bc028e4f
Merge pull request #8887 from jfbu/adapt_tests_to_pygments_2.8
Adapt our tests to Pygments 2.8.0
2021-02-15 22:41:30 +09:00
jfbu
19ea727f1b Adapt our tests to Pygments 2.8.0 2021-02-14 21:17:17 +01:00
Dmitry Shachnev
8aaea906a1 Fix #8884: Include sphinx/search/minified-js in the tarball 2021-02-14 20:41:19 +03:00
Takeshi KOMIYA
c60cc0c178 Bump version 2021-02-14 17:01:23 +09:00
Takeshi KOMIYA
32dad69a4f Bump to 3.5.0 final 2021-02-14 16:48:00 +09:00
Takeshi KOMIYA
ae16211823 Update CHANGES for PR #8867 2021-02-14 15:54:29 +09:00
Takeshi KOMIYA
52b5509bb2
Merge pull request #8867 from mitya57/update-stemmer-js
Update JavaScript stemmer code to the latest version of Snowball (v2.1.0)
2021-02-14 15:50:54 +09:00
Jean-François B
a1489099ec
Merge pull request #8877 from jfbu/latex_better_fix_8838
Fix #8838 by forcing horizontal mode before inserting the penalty
2021-02-12 21:26:26 +01:00
Dmitry Shachnev
bb819731e4 language_data.js_t: Move endif to the right place 2021-02-12 20:28:56 +03:00
Dmitry Shachnev
34553dc8dd Embed stemmer code into language_data.js by reading it from minified-js files 2021-02-12 20:28:56 +03:00
Dmitry Shachnev
5abbb40333 Remove old minified versions of JS code, embedded in Python files 2021-02-12 20:28:56 +03:00
Dmitry Shachnev
4ad6dd7b77 Add minified versions of libstemmer JS files
Generated from non-minified versions using uglifyjs (installed via npm),
with -m option to enable mangling.
2021-02-12 20:28:56 +03:00
Dmitry Shachnev
d9bf73dedc Update non-minified-js to the latest version from snowball v2.1.0
Generated using 'make dist_libstemmer_js' in a git checkout of
https://github.com/snowballstem/snowball.
2021-02-12 20:28:56 +03:00
Jakob Lykke Andersen
be6391fa0d
Merge pull request #8876 from jakobandersen/c_cpp_alias
C and C++, alias fixes and improvements
2021-02-12 17:46:44 +01:00
jfbu
683e64e8a3 Fix #8838 by forcing horizontal mode before inserting the penalty 2021-02-12 17:37:00 +01:00
Jakob Lykke Andersen
e46779ef15 mypy fixes 2021-02-12 17:34:35 +01:00
Jakob Lykke Andersen
a7fcc15683 C++, add noroot option to alias directive 2021-02-12 17:25:12 +01:00
Jakob Lykke Andersen
06a956200b C, add noroot option to alias directive 2021-02-12 17:25:12 +01:00
Jakob Lykke Andersen
d0a4d0147e C++, add recursiveness to alias
Fixes sphinx-doc/sphinx#8213 in the most basic way.
2021-02-12 17:25:12 +01:00
Jakob Lykke Andersen
de1cd95a75 C, fixes for alias directive 2021-02-12 17:25:12 +01:00
Takeshi KOMIYA
61af7f48ad
Merge pull request #8873 from tk0miya/8860_bad_example
Fix #8860: doc: Usage of recipe directive is wrong
2021-02-13 01:04:27 +09:00
Takeshi KOMIYA
73b2f94f48
Merge pull request #8839 from tk0miya/refactor_linkcheck9
refactor: linkcheck: Remove next_check from Hyperlink object
2021-02-13 00:58:32 +09:00
Takeshi KOMIYA
ee760f668b
Merge pull request #8858 from tk0miya/refactor_latex_writer
Refactor latex writer
2021-02-13 00:48:43 +09:00
Takeshi KOMIYA
13d475aa73
Merge pull request #8866 from tk0miya/8865_IndexInSectionTitleTransform
LaTeX: Restructure the index nodes inside title nodes only on LaTeX builds
2021-02-13 00:46:52 +09:00
Takeshi KOMIYA
725f74f5eb refactor: linkcheck: Remove next_check from Hyperlink object
To separate hyperlink itself and checking (intermediate) state, this
removes `next_check` attribute from Hyperlink object and add a new
named-tuple `CheckRequest`.  It was rejected idea on implementing
rate-limiting first (see #8467).  But it's better way to separate
large builder module into small components and make whole of linkcheck
builder simple.

After this change, `Hyperlink` object represents a hyperlink on the
document.  It has a URI and location info (docname and lineno).
2021-02-13 00:44:02 +09:00
Takeshi KOMIYA
3b451bbcde
Merge pull request #8835 from tk0miya/refactor_linkcheck7
refactor: linkcheck: Separate thread manager feature from builder class
2021-02-12 23:32:30 +09:00
Takeshi KOMIYA
7252abab1c refactor: linkcheck: Refine the constructor of Checker and CheckWorker
Make the constructors of Checker and CheckWorker classes less-coupled
with linkcheck builder.
2021-02-12 23:20:07 +09:00
Takeshi KOMIYA
5c223d20d6 refactor: linkcheck: Separate thread manager feature from builder class
To reduce the complexity of the linkcheck builder, this separates
the thread manager feature from the builder class as
HyperlinkAvailabilityChecker.
2021-02-12 23:19:01 +09:00
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
d5de7bf3cf Fix #8860: doc: Usage of recipe directive is wrong 2021-02-12 20:51:53 +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
7337317d7a refactor: LaTeX: replace \n\n by a constant BLANKLINE 2021-02-11 01:55:27 +09:00
Takeshi KOMIYA
8b98c5c088 refactor: LaTeX: replace \n by a constant CR 2021-02-11 01:55:27 +09: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
9411051131 LaTeX: Restructure the index nodes inside title nodes only on LaTeX builds
refs: #8865
2021-02-11 00:36:08 +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