Commit Graph

19097 Commits

Author SHA1 Message Date
Takeshi KOMIYA
1546b21f89 Fix #9529: LaTeX: named footnotes are converted to "?"
Named auto numbered footnote (ex. ``[#named]``) that is referred
multiple times was rendered to a question mark.

This calls `\sphinxstepexplicit` for every footnote node that is
referred multiple times.
2022-02-06 15:59:01 +09:00
Takeshi KOMIYA
1d68973f20 Merge branch '4.4.x' into 4.x 2022-02-06 15:57:00 +09:00
Takeshi KOMIYA
7469096e0a
Update doc/usage/extensions/autodoc.rst 2022-02-06 15:30:54 +09:00
Takeshi KOMIYA
73f980641c
Merge pull request #10149 from tk0miya/9876_catch_PycodeError
Fix #9876: autodoc: Failed to document a class on binary module
2022-02-06 15:30:06 +09:00
Takeshi KOMIYA
9b142f15e6 test: Add testcase for named footnotes 2022-02-06 14:33:29 +09:00
Takeshi KOMIYA
399cf3b37d
Merge pull request #10167 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-02-06 13:55:28 +09:00
tk0miya
d31f61db63 Update message catalogs 2022-02-06 00:13:25 +00:00
Takeshi KOMIYA
6515af256e
Merge pull request #10162 from AA-Turner/use-settings-default-overrides
Use `settings_default_overrides` in `sphinx.writers.html`
2022-02-06 02:40:52 +09:00
Takeshi KOMIYA
66ed82854b
Merge pull request #10156 from noahsprent/4.x
Remove commas when describing characters for section headings
2022-02-05 22:20:35 +09:00
Takeshi KOMIYA
a10f733811 CI: Test with Windows Server 2019
In nearly days, `windows-latest` image on GHA was changed to Windows
Server 2022.  That causes build errors on building a cython script.

To avoid the problem, this pins the image for testing on GHA to Windows
Server 2019.
2022-02-05 22:04:32 +09:00
Takeshi KOMIYA
9ab02f04e1 CI: Test with Windows Server 2019
In nearly days, `windows-latest` image on GHA was changed to Windows
Server 2022.  That causes build errors on building a cython script.

To avoid the problem, this pins the image for testing on GHA to Windows
Server 2019.
2022-02-05 22:00:47 +09:00
Takeshi KOMIYA
b4638eaeee
Merge pull request #10163 from tk0miya/test-with-windows-2019
CI: Test with Windows Server 2019
2022-02-05 21:59:57 +09:00
Takeshi KOMIYA
8b1ff8876b CI: Test with Windows Server 2019
In nearly days, `windows-latest` image on GHA was changed to Windows
Server 2022.  That causes build errors on building a cython script.

To avoid the problem, this pins the image for testing on GHA to Windows
Server 2019.
2022-02-05 21:48:43 +09:00
Takeshi KOMIYA
8c1671bd35
Merge pull request #10094 from tk0miya/9777_new_html_structure_of_du18
test: Follow the new HTML structure of docutils-0.18
2022-02-05 21:25:03 +09:00
Adam Turner
5d14bbf169 Appease flake8 2022-02-05 00:46:00 +00:00
Adam Turner
b84ba3a7d1 Use settings_default_overrides 2022-02-05 00:19:07 +00:00
Noah Sprent
25c4287da5
Remove commas when describing characters for section headings 2022-02-02 10:52:06 +01:00
Santos Gallegos
6605bfbf7c
Searchtools: don't assume that all themes define some elements
When retrieving a non-existent element, jQuery would still return an
object (kind of empty one, so method calls won't raise a null
exception), but now `getElementById` will return null and raise an
exception when trying to call a method on that value.

This mainly affects the rtd theme,
which completely overrides the search page
d64dadf1ce/sphinx_rtd_theme/search.html
2022-01-31 19:07:51 -05:00
Adam Turner
3b01fbe2ad
Drop JavaScript Frameworks (#10028)
* Delete jQuery and underscore.js

* Move underscores.js setup to searchtools.js

* Update jQuery.url(en|de)code

* Update jQuery.getQueryParameters

* Firefox bug is no longer present

xref https://bugzilla.mozilla.org/show_bug.cgi?id=645075#c49

* Update jQuery.fn.highlightText

* Use enum instead of magic number

* Update test descriptions to remove obsolete jQuery reference

* Update Documentation.getCurrentURL

* Revert accidental fix of Documentation.getCurrentURL

* Update Documentation.initOnKeyListeners

* Update Documentation.hideSearchWords

* Update Documentation.highlightSearchWords

* Update Documentation.initDomainIndexTable

* Use arrow functions and const

* Replace $(document).ready

* Strict mode

* Move Documentation.hideSearchWords next to Documentation.highlightSearchWords

* Update translation functions in Documentation

* Replace $(document).ready in searchtools.js

* Update Scorer

* Update Search.hasIndex, Search.deferQuery, Search.stopPulse

* Prefer window.location

* Update Search.init

* Update Search.loadIndex

* Update Search.setIndex

* Update Search.startPulse

* Add _escapeRegExp

* Update Search.makeSearchSummary

* Update Search.htmlToText

* Update Search.performSearch

* Factor out _displayNextItem

* Update Search.query

* Update Search.performObjectSearch

* Update Search.performTermsSearch

* Remove underscores.js setup

* Use Sets

* Update test configuration

* Fix test failures

* Drop unused make/get URL functions

* Strict mode in searchtools.js

* Remove outmoded check for jQuery and underscore.js

* Ran prettier

prettier --print-width 120 --no-semi --quote-props as-needed --no-bracket-spacing --arrow-parens avoid --write sphinx/themes/basic/static

* Remove more references to jQuery and underscore.js

* Remove jQuery and underscore.js licences

* Update classic theme for no jQuery

* Update all other themes for no jQuery

* Restore jQuery & underscores.js to Sphinx themes

Enables a more gradual deprecation

* Added deprecation note to CHANGES

* Run prettier with defaults

* Update deprecation message to include extensions, note that sources must be copied

* oops

* Address Pradyun's feedback

* Forgot this one

* `let` doesn't work, as it is scoped to the block...

* Remove missed jQuery in sphinx13 theme
2022-01-30 20:27:12 +01:00
Takeshi KOMIYA
b0b51cecc2 Close #10146: autodoc: autodoc_default_options does not support no-value option 2022-01-31 01:51:37 +09:00
Takeshi KOMIYA
799385f555
Merge pull request #9337 from marxin/new-shortcuts
Implement new search shortcuts.
2022-01-31 00:11:45 +09:00
Takeshi KOMIYA
07110b7557
Merge pull request #10132 from tk0miya/10122_install_check_in_make.bat
Fix #10122: make.bat should check the installation before help
2022-01-30 23:54:37 +09:00
Takeshi KOMIYA
8d82b9cd22
Merge pull request #10148 from tk0miya/order_of_CHANGES
Fix the order of CHANGES
2022-01-30 23:54:15 +09:00
Takeshi KOMIYA
eaefbef1eb Fix #9876: autodoc: ocument a class on binary module 2022-01-30 23:52:12 +09:00
Takeshi KOMIYA
f97ca41cfd Fix the order of CHANGES 2022-01-30 23:37:24 +09:00
Takeshi KOMIYA
13011703ea Fix #10122: make.bat should check the installation before help 2022-01-30 23:36:52 +09:00
Takeshi KOMIYA
c75e43a321
Merge pull request #10136 from tk0miya/10133_autodoc_mocked_module
Fix #10133: autodoc: Crashed when mocked module is used for type annotation
2022-01-30 23:35:54 +09:00
Takeshi KOMIYA
3007fe49b1
Merge pull request #10131 from tk0miya/10125_improve_extlinks_suggestion
Close #10125: extlinks: Improve suggestion message for a reference having title
2022-01-30 23:20:29 +09:00
Takeshi KOMIYA
444e27865d Fix #10133: autodoc: Crashed when mocked module is used for type annotation 2022-01-30 23:19:55 +09:00
Takeshi KOMIYA
65c6684a83
Merge pull request #10135 from tk0miya/10121_depart_admonitions
Fix #10121: html: <div> tag for admonition is not closed w/ docutils-0.18
2022-01-30 23:16:33 +09:00
Takeshi KOMIYA
0aa2c92b41
Merge pull request #10140 from tcmetzger/autosummary_fix_typos
Docs: Fix typos in autosummary.rst
2022-01-30 23:09:19 +09:00
Takeshi KOMIYA
affbc4f223
Merge pull request #10144 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-01-30 17:01:08 +09:00
tk0miya
cf2f6ec69e Update message catalogs 2022-01-30 00:12:06 +00:00
Timo Cornelius Metzger
8f39f29725 Update autosummary.rst 2022-01-27 20:22:45 -08:00
Takeshi KOMIYA
5be4f47d85 Fix #10121: html: <div> tag for admonition is not closed w/ docutils-0.18
Since v0.18, docutils has output <aside> tag to represent admonitions.
On the other hand, our custom HTML Writer overrides the handler for
admonition nodes halfly.  As a result, the opening and closing tags
become mismatched.  This fully overrides the handler to use <div> tag to
represent admonitions.
2022-01-26 22:59:52 +09:00
Takeshi KOMIYA
e54b63d3ee
Merge pull request #10129 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-01-23 20:21:49 +09:00
Takeshi KOMIYA
d8a398bbdd Close #10125: extlinks: Improve suggestion message for a reference having title 2022-01-23 20:09:47 +09:00
tk0miya
88f69f9187 Update message catalogs 2022-01-23 00:11:31 +00:00
Martin Liska
8cf3179ad2 Implement new shortcuts:
- "/" for Focus search bar
- "ESC" - clear highlighted text

Fixes #691.

Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
2022-01-22 16:16:35 +01:00
Takeshi KOMIYA
0cc338f9c5
Merge pull request #10119 from Bibo-Joshi/elaborate-docs-on-nitpick_ignore
Documentation: Mention `nitpick_ignore(_regex)` in docs of `warn-missing-reference`
2022-01-22 11:59:34 +09:00
Hinrich Mahler
84a6270685 Mention nitpick_ignore(_regex) in docs of warn-missing-reference 2022-01-18 22:01:52 +01:00
Matthias Geier
6f221be933 ImageConverter: ignore '?' image URIs 2022-01-18 21:28:06 +01:00
Takeshi KOMIYA
2be0630951
Merge pull request #10108 from tk0miya/9456_html_show_search_summary
Close #9456: html search: Add a config variable; html_show_search_summary
2022-01-18 02:24:34 +09:00
Takeshi KOMIYA
d44ea70272
Merge pull request #10109 from kianmeng/revert-typo-change
Revert typo change
2022-01-18 01:26:06 +09:00
Kian-Meng Ang
6b47019b31 Revert typo change 2022-01-17 03:16:34 +08:00
Takeshi KOMIYA
72bb5c998f Close #9456: html search: Add a config variable; html_show_search_summary
refs: #9494
2022-01-17 01:44:42 +09:00
Takeshi KOMIYA
444dfc50aa Merge branch '4.x' 2022-01-17 00:22:09 +09:00
Takeshi KOMIYA
bd55cce6e6 Bump version 2022-01-17 00:21:22 +09:00
Takeshi KOMIYA
99947d9b18 Bump version 2022-01-17 00:19:41 +09:00
Takeshi KOMIYA
88f9647a22 Bump to 4.4.0 final 2022-01-17 00:17:38 +09:00