Commit Graph

19075 Commits

Author SHA1 Message Date
Jean-François B
6768577bd9
Merge pull request #10087 from marxin/vertical-spaces-for-cpp-functions
Latex: fix vertical spacing for cpp:function.
2022-02-14 20:52:07 +01:00
Jean-François B
6513b4f18e
Merge pull request #10190 from tk0miya/10175_named_footnotes_in_different_files
Fix #10175: LaTeX: named footnote ref is linked to an incorrect footnote
2022-02-13 20:49:38 +01:00
Takeshi KOMIYA
8b23f6db12 Merge commit '07110b7557a552ecfe702bdd6a2d2f9685cb1af9' 2022-02-14 03:03:40 +09:00
Takeshi KOMIYA
d7c6fa853c Merge commit '2be06309518d9401a42880bb5b4321dfdd1e5e90' 2022-02-14 03:02:31 +09:00
Takeshi KOMIYA
01d06f9ffe Fix #10175: LaTeX: named footnote ref is linked to an incorrect footnote
A named footnote reference will be converted to a hyperlink to an
incorrect footnote if the name is also used in the different document.
2022-02-13 20:20:42 +09:00
Takeshi KOMIYA
6f0a8f3516
Merge pull request #10189 from tk0miya/https_pep_role
The latest docutils converts :pep: role to the "https" URL (again)
2022-02-13 19:34:39 +09:00
Takeshi KOMIYA
9d29adb76c The latest docutils converts :pep: role to the "https" URL (again)
docutils-0.19 (unreleased) generates "https" URL from :pep: role.
2022-02-13 19:22:17 +09:00
Takeshi KOMIYA
9ea2b768b0
Merge pull request #10185 from tk0miya/10181_napoleon_use_ivar_corrupted
Fix #10181: napoleon_use_ivar adds unexpected prefix to vars
2022-02-13 18:46:14 +09:00
Takeshi KOMIYA
fc38564fbf
Merge pull request #10183 from tk0miya/9971_autodoc_unhashable_type
Fix #9971: autodoc: TypeError for annotation with unhashable object
2022-02-13 18:45:47 +09:00
Takeshi KOMIYA
b07ca9dbcc
Merge pull request #10170 from tk0miya/https_pep_role
The latest docutils converts :pep: role to the "https" URL
2022-02-13 18:44:55 +09:00
Takeshi KOMIYA
71b1c12167
Merge pull request #10187 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-02-13 18:44:29 +09:00
tk0miya
aefc4e2473 Update message catalogs 2022-02-13 00:14:10 +00:00
Yuge Zhang
7f660ab027 Patch rst get language in docutils 2022-02-11 16:14:06 +00:00
Takeshi KOMIYA
8224f6f44a Fix #10181: napoleon_use_ivar adds unexpected prefix to vars
Since 4.0, :ivar: items has not been rendered as hyperlinks.  So any
modules, classes and tilda are now harmful.  This removes the prefixing
filter for napoleon_use_ivar option.

refs: #5129 and #5977
2022-02-12 00:50:56 +09:00
Takeshi KOMIYA
4ba056870d
Merge pull request #10184 from sphinx-doc/dependabot/npm_and_yarn/karma-6.3.14
Bump karma from 4.2.0 to 6.3.14
2022-02-11 16:27:06 +09:00
dependabot[bot]
028fccf5ae
Bump karma from 4.2.0 to 6.3.14
Bumps [karma](https://github.com/karma-runner/karma) from 4.2.0 to 6.3.14.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v4.2.0...v6.3.14)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-11 05:21:16 +00:00
Takeshi KOMIYA
e1ea3bb53a Fix #9971: autodoc: TypeError for annotation with unhashable object
restify() and stringify() fails with TypeError when unhashable object is
given.
2022-02-11 13:40:35 +09:00
Takeshi KOMIYA
a32d609061
Merge pull request #10169 from tk0miya/9529_named_footnotes_in_latex
Fix #9529: LaTeX: named footnotes are converted to "?"
2022-02-11 13:18:59 +09:00
Takeshi KOMIYA
777b1fa105 Merge branch '4.x' into 9529_named_footnotes_in_latex 2022-02-11 13:08:26 +09:00
Takeshi KOMIYA
5125ae8316 latex: Update description of \sphinxexplicit 2022-02-11 13:07:11 +09:00
Takeshi KOMIYA
b6931acac6
Merge pull request #10168 from tk0miya/9529_testcase_for_named_footnote
test: Add testcase for named footnotes
2022-02-11 13:06:01 +09:00
Takeshi KOMIYA
041424643f
Merge pull request #10176 from dantownsend/dantownsend-patch-1
improve grammar in theming.rst
2022-02-11 03:21:23 +09:00
Daniel Townsend
bcb0a03f92
setup -> set up 2022-02-10 17:44:18 +00:00
Stephen Finucane
105c583f06 Revert "Close #9993: std domain: Allow to refer an inline target via ref role"
This reverts commit e3ee8b378a. This is a
breaking change that should not have been introduced in a minor release
(or arguably at all, given the impact).

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #10177
2022-02-08 16:00:01 +00:00
Daniel Townsend
03c8ceb85f
improve grammar in theming.rst 2022-02-08 13:05:18 +00:00
Santos Gallegos
a45e4d4482
Update sphinx/themes/basic/static/searchtools.js
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-02-07 10:31:50 -05:00
Takeshi KOMIYA
083b0b5207 The latest docutils converts :pep: role to the "https" URL
docutils-0.19 (unreleased) generates "https" URL from :pep: role.
2022-02-06 23:10:25 +09:00
Takeshi KOMIYA
680417a10d
Merge pull request #10150 from tk0miya/10146_autodoc_default_options_should_support_no-value
Close #10146: autodoc: autodoc_default_options does not support `no-value` option
2022-02-06 15:59:24 +09:00
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