Commit Graph

19455 Commits

Author SHA1 Message Date
Jean-François B
80198e82aa Merge branch '5.x' into master
Resolved merge conflicts:
    sphinx/ext/extlinks.py
    sphinx/ext/napoleon/docstring.py
    (and removed from the latter a now unused import for flake8 F401
    compliance)
2022-06-30 15:00:16 +02:00
Jean-François B
b9736f2348 Merge branch '5.0.x' into 5.x 2022-06-30 12:19:02 +02:00
Jean-François B
a7ef63a1fd LaTeX: fix #10506 (make Pygments \PYG macro \protected) 2022-06-30 12:01:36 +02:00
Jean-François B
c327f090d4 LaTeX: refactor \spx@fcolorbox to fix #10610 2022-06-30 09:49:30 +02:00
Jean-François B
52d8f3a3bc LaTeX: (cont'd) fix of code comments and slight refactoring 2022-06-30 00:00:16 +02:00
Jean-François B
2566f6e757 LaTeX: internal optimizations and comments 2022-06-29 23:18:58 +02:00
Jean-François B
d089b5c92d LaTeX: fix #10615 (relates: #10577) 2022-06-29 21:56:31 +02:00
Jean-François B
2e77290348 LaTeX: partially fix color issues for wrapped code lines with pagebreak
This does not fix entirely #10610 but it does sufficiently for it not to
require reverting #10577 which tried to solve #8686 conundrum.  In
extreme cases, the #8686 problem meant that some contents disappeared
at page bottom, so it is probably better to maintain #10577 which
will avoid any such overflow of code beyond its frame, even though in
some specific cases (a colored entity such as a long string is partly on
both pages), some syntax highlighting gets lost.

There are anyhow other issues with colors for wrapped code lines, even
with no pagebreaks involved, such as #10615.  This patch does not change
the situation there.
2022-06-29 18:48:40 +02:00
Jean-François B
9741d1341d LaTeX comments 2022-06-29 10:57:14 +02:00
Jean-François B
099d40805e
Merge pull request #10609 from jfbu/latex_comments_code-blocks
LaTeX: some code comments (technical) and minor changes
2022-06-28 00:01:32 +02:00
Jean-François B
d9681ab1b6 LaTeX: some code comments (technical) and minor changes 2022-06-27 23:37:52 +02:00
Adam Turner
ac0fc4b781
Remove more deprecated items in Sphinx 6.0 (#10562) 2022-06-26 15:01:09 +01:00
danieleades
12e86ff0e1
Use the flake8-comprehensions lint plugin (#10601) 2022-06-26 14:43:05 +01:00
Joachim Jablon
663a5b7781
py domain: Ignore aliases for resolving :any: cross-references (#10089)
Co-authored-by: Joachim Jablon <joachim.jablon@people-doc.com>
2022-06-26 13:04:15 +01:00
Antony Lee
03c1e1b15c
Replace napoleon.iterators by simpler stack implementation (#9856) 2022-06-26 12:40:42 +01:00
jfbu
d730c55f13 [DOC] Fix sectioning level in usage/configuration.rst
The conf.py example ended up as sub-section of previous one
2022-06-26 11:36:38 +02:00
Jean-François B
40841ae80c
LaTeX: fix #8686 Text can fall out of code-block at end of page (#10577)
When wrapping long code lines, recover the TeX "hbox"es and trick fancyvrb into considering each as an input code line.  This way, pagebreaks are allowed.  No change to existing output (in particular, codeline number is printed only once) when the wrapped line had place on current page.
2022-06-26 10:19:44 +02:00
jfbu
f74cc3fcaa Minor cross-linking improvements in usage/restructuredtext/roles.rst 2022-06-26 09:51:39 +02:00
jfbu
8ecbe8a15a Improve mark-up in docs (follow-up to PR #10366) 2022-06-26 09:30:22 +02:00
jfbu
d4aba4b935 Fix markup in CHANGES for a 5.1.0 Features added entry 2022-06-26 09:12:06 +02:00
Takeshi KOMIYA
26982d50bd
Merge pull request #10581 from tk0miya/10579_i18n_UnboundLocalError
Fix #10579: i18n: UnboundLocalError is raised on translating raw directive
2022-06-26 14:14:36 +09:00
Takeshi KOMIYA
d5aa0f4ab7
Merge pull request #10600 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-06-26 14:14:10 +09:00
tk0miya
e8b9bb857e Update message catalogs 2022-06-26 00:23:54 +00:00
Adam Turner
68bc916cf4
Test with Docutils 0.19 prereleases (#10598) 2022-06-25 22:15:30 +01:00
Jean-François B
5a24fec8de
Fix build failure for Docutils 0.18.0 (#10597) 2022-06-25 21:15:04 +01:00
Jean-François B
4b482334a2
Fix duplicated field term colons for Docutils 0.18+ (#10595)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-06-25 20:10:34 +01:00
Hugo van Kemenade
20f52d9fa5
Replace deprecated logging.warn with logging.warning (#10592) 2022-06-25 12:31:11 +01:00
Pradyun Gedam
852534312e
Reduce content in the sphinx-quickstart conf.py file (#10571) 2022-06-25 12:28:35 +01:00
Jeremy Maitin-Shepard
1198fbe7f9
Ensure ObjectDescription signature nodes include line numbers (#10249)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-06-23 21:48:32 +01:00
Brecht Machiels
7b0787485e
Fix link to rinohtype manual (#10593) 2022-06-22 19:35:42 +01:00
jfbu
1786e989ca Fix another whitespace issue in CHANGES 2022-06-20 10:37:44 +02:00
jfbu
d94e7deb5a Fix mark-up in CHANGES 2022-06-20 10:31:59 +02:00
Julien Palard
4a67ea1da3
doc linting: Re-enable a check (#10573) 2022-06-19 23:29:00 +01:00
Adam Turner
b26bf0320c
Add underscore.js to the sphinx13 theme (#10588) 2022-06-19 23:12:38 +01:00
Martin Liška
ea46202565
Fix parsing of options with enabled option_emphasise_placeholders (#10565) 2022-06-19 22:51:48 +01:00
Takeshi KOMIYA
0796f7065a
Merge pull request #10584 from tk0miya/10574_rtd_search_3
Fix #10574: Failed to search on sphinx-doc.org (again)
2022-06-19 22:56:11 +09:00
Takeshi KOMIYA
4292630965 Fix #10574: Failed to search on sphinx-doc.org (again) 2022-06-19 22:47:41 +09:00
Takeshi KOMIYA
b4278d6ffa
Merge pull request #10583 from tk0miya/10574_rtd_search_2
Fix #10574: Failed to search on sphinx-doc.org (again)
2022-06-19 22:35:24 +09:00
Takeshi KOMIYA
521a47b033 Fix #10574: Failed to search on sphinx-doc.org (again)
To make RtD search available, this adds jQuery patches on old Sphinx to
sphinx-doc.org.
2022-06-19 19:26:18 +09:00
Takeshi KOMIYA
e081194d1d
Merge pull request #10582 from tk0miya/10574_rtd_search
Fix #10574: Failed to search on sphinx-doc.org
2022-06-19 18:46:37 +09:00
Takeshi KOMIYA
a06c49105b Fix #10574: Failed to search on sphinx-doc.org
Since 6.0, jQuery has not been loaded by default.  It affects to the
search feature of RtD.  This loads jQuery again to make it available.
2022-06-19 18:35:45 +09:00
Takeshi KOMIYA
ec596de871
Merge pull request #10580 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-06-19 18:28:41 +09:00
Takeshi KOMIYA
de0ce29372 Fix #10579: i18n: UnboundLocalError is raised on translating raw directive 2022-06-19 17:33:22 +09:00
Takeshi KOMIYA
9e6a3900e6 Update CHANGES for PR #10566 2022-06-19 16:56:04 +09:00
Takeshi KOMIYA
95b81831b1
Merge pull request #10566 from marxin/fix-theme-config-usage
Fix usage of enable_search_shortcuts theme config value.
2022-06-19 16:55:01 +09:00
tk0miya
a3340efcf9 Update message catalogs 2022-06-19 06:31:44 +00:00
Takeshi KOMIYA
854ff556f9
Merge pull request #10558 from mitya57/remove-ru-ru
Remove `ru_RU` translation, it is empty and duplicates `ru`
2022-06-19 15:27:33 +09:00
marxin
3a269ee590 Fix usage of enable_search_shortcuts theme config value.
The option value is not properly propagated to Java script.
2022-06-17 21:21:27 +02:00
Adam Turner
c40bb7281e
requests.packages is deprecated, import from urllib3 (#10563) 2022-06-17 00:06:06 +01:00
Adam Turner
fcc238a21d Merge branch '5.x' 2022-06-16 23:17:42 +01:00