summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix #8870: Use title node for the caption of toctreeTakeshi KOMIYA2021-04-092-10/+7
| | | | | Since docutils-0.17, the caption node should not use for the non-figure nodes. Therefore, this replaces it by the title node.
* test: Update testcase for docutils-0.17 (toctree caption)Takeshi KOMIYA2021-04-031-2/+5
| | | | | | Since v0.17, docutils starts to use <figcaption> for caption on HTML output. This modifies the expected value of our testcases to support it.
* test: Update testcase for docutils-0.17 (<section>)Takeshi KOMIYA2021-04-031-4/+13
| | | | | | Since v0.17, docutils starts to use <section> for section on HTML output. This modifies the expected value of our testcases to support it.
* test: Update testcase for docutils-0.17 (empty language)Takeshi KOMIYA2021-04-031-1/+1
| | | | | | | Since v0.17, docutils starts to load language module on parsing reST document using StateMachine directly. So far, our testcase uses invalid language code for testing autosummary. This fixes it to work with new docutils.
* test: Update testcase for docutils-0.17 (<figure> and <figcaption>)Takeshi KOMIYA2021-04-033-158/+175
| | | | | | Since v0.17, docutils starts to use <figure> and <figcaption> for figure and its caption on HTML output. This modifies the expected value of our testcases to support it.
* Fix testcase: the signature of Enum class has been changed since HEAD of 3.10Takeshi KOMIYA2021-04-031-1/+8
|
* Fix the testcase for linkcheck refers removed URLsTakeshi KOMIYA2021-03-272-4/+4
| | | | | Some public URLs are disabled now. For more details, see https://github.com/sphinx-doc/sphinx/issues/8309
* Fix #8959: using UNIX path separator confuses Sphinx on WindowsTakeshi KOMIYA2021-03-201-6/+4
| | | | | The first element of env.relfn2path() should be a POSIX path, not a OS dependent path.
* Adapt our tests to Pygments 2.8.0jfbu2021-02-142-63/+150
|
* refactor: linkcheck: Refine the constructor of Checker and CheckWorkerTakeshi KOMIYA2021-02-121-32/+13
| | | | | Make the constructors of Checker and CheckWorker classes less-coupled with linkcheck builder.
* refactor: linkcheck: Separate thread manager feature from builder classTakeshi KOMIYA2021-02-121-16/+26
| | | | | | To reduce the complexity of the linkcheck builder, this separates the thread manager feature from the builder class as HyperlinkAvailabilityChecker.
* Merge branch '3.x' into latex_hyperlinked_caption_footnotes_on_3.xjfbu2021-02-091-6/+17
|\
| * refactor: linkcheck: Separate worker feature from builder classTakeshi KOMIYA2021-02-051-6/+17
| | | | | | | | | | To reduce the complexity of the linkcheck builder, this separates the worker feature from the builder class.
* | Extra references to explicitly numbered footnote get page indicationjfbu2021-02-061-7/+20
| | | | | | | | | | | | | | 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.
* | Use \thesphinxscope mark-up (shorter, and may help trick for page scope)jfbu2021-02-061-14/+14
| |
* | Prepare for scope-limited footnote numberingjfbu2021-02-061-14/+28
| |
* | LaTeX footnotes from caption titles now hyperlinked in PDFjfbu2021-02-051-14/+28
|/ | | | This is fifth item of #2616
* refactor: Fix the right hand value of autodoc options should be NoneTakeshi KOMIYA2021-02-041-3/+3
|
* Merge pull request #8297 from pbudzyns/exclude-members-fixTakeshi KOMIYA2021-02-044-28/+183
|\ | | | | Local autodoc options override or extend autodoc_default_options.
| * rebase and fix testspbudzyns2021-02-014-8/+8
| |
| * Merge remote-tracking branch 'upstream/3.x' into exclude-members-fixpbudzyns2021-02-01188-581/+3601
| |\
| * | check if autodoc_defaults are str, fix testspbudzyns2021-02-012-20/+20
| | |
| * | redundant '+' has no effectpbudzyns2021-01-251-0/+9
| | |
| * | add more extendable options and testspbudzyns2021-01-251-34/+0
| | |
| * | add more extendable options and testspbudzyns2021-01-251-0/+4
| | |
| * | add more extendable options and testspbudzyns2021-01-251-0/+176
| | |
* | | Extend latex footnotes unit testjfbu2021-02-022-0/+9
| | |
* | | Merge pull request #8805 from tk0miya/8775_workaroundTakeshi KOMIYA2021-02-011-1/+1
|\ \ \ | | | | | | | | Fix #8775: Avoid the crash of autodoc caused by type union operator
| * | | Fix #8775: Avoid the crash of autodoc caused by type union operatorTakeshi KOMIYA2021-02-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The type union operator (PEP-604) causes autodoc crashed in python 3.9 or below because of the syntax is not suppoerted yet in the interpreters. Internally, `typing.get_type_hints()` raises TypeError on evaluating the annotation by BitOr operator for types. To avoid the crash, this adds a fallback not to evaluate the annotations and keep as is. As a side effect, `autodoc_type_aliases` will not work for the modules and classes that uses type union operator for their annotations.
* | | | Merge pull request #8802 from tk0miya/8775_pydomain_pep604Takeshi KOMIYA2021-02-011-0/+28
|\ \ \ \ | |/ / / |/| | | py domain: Support type union operator (PEP-604) (refs: #8775)
| * | | py domain: Support type union operator (PEP-604) (refs: #8775)Takeshi KOMIYA2021-02-011-0/+28
| | |/ | |/| | | | | | | | | | | | | Upgrade annotation parser for python domain to support type union operator introduced in PEP-604. It's available on all python interpreters.
* | | Merge pull request #8803 from tk0miya/8775_autodoc_type_union_operatorTakeshi KOMIYA2021-02-013-0/+74
|\ \ \ | | | | | | | | autodoc: Support type union operator (PEP-604) (refs: #8775)
| * | | autodoc: Support type union operator (PEP-604) (refs: #8775)Takeshi KOMIYA2021-01-313-0/+74
| | | | | | | | | | | | | | | | | | | | Upgrade autodoc to support type union operator introduced in PEP-604. It's available only with python 3.10+.
* | | | Fix #8800: autodoc: Uninitialized attributes in superclass are recognized as ↵Takeshi KOMIYA2021-02-012-0/+75
| |/ / |/| | | | | | | | | | | | | | | | | | | | undocumented Unintentionally, uninitialized attributes defined at superclasses are recognized as undocumented in the filtering step. Therefore, they are filtered if `:undoc-members:` option given.
* | | Merge branch '3.x' into 8446_escape_spaces_inside_desc_signaturesTakeshi KOMIYA2021-02-01152-258/+2210
|\ \ \
| * | | Let latex writer line trimming from depart_entry() work as before #8781jfbu2021-01-303-11/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This is cosmetic as the blank line starting varwidth environment used for merged table cells in latex output changed nothing to PDF. Nevertheless I extended a unit test to have a multi-paragraph merged cell using varwidth. What is important is that \sphinxAtStartPar line itself is never followed by blank line.
| * | Merge pull request #8781 from jfbu/latex_hyphenation_of_first_wordJean-François B2021-01-2925-40/+274
| |\ \ | | | | | | | | Fix #8780: long words in narrow columns may not be hyphenated
| | * | Fix suppression of needed whiteline, encapsulate into \sphinxAtStartParjfbu2021-01-2925-245/+453
| | | | | | | | | | | | | | | | Define it to do nothing with lualatex engine
| | * | Fix #8780: long words in narrow columns may not be hyphenatedjfbu2021-01-2925-238/+264
| | | | | | | | | | | | | | | | This is done by adding '\hskip0pt\relax\n' whenever a paragraph starts.
| * | | Merge pull request #8773 from francoisfreitag/app-buildTakeshi KOMIYA2021-01-281-22/+22
| |\ \ \ | | |/ / | |/| | Linkcheck: Use app.build() to trigger the test build
| | * | Linkcheck: Use app.build() to trigger the test buildFrançois Freitag2021-01-271-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using application members to access the builder and trigger a build, use the main app interface. It ensures the builder setup is realistic, builder cleanups are executed and the build-finished events are emitted.
| * | | Merge branch '8137_urldecode' into 3.xTakeshi KOMIYA2021-01-262-0/+36
| |\ \ \
| | * | | Closes #8123: Fix plus-handling (+) in search terms for basic html theme searchDaniel Hofmann2020-08-192-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | Note, that the default splitter will not index +, so this isn't of much of much use, unless the splitter of the search-language is reconfigured.
| * | | | Merge pull request #8752 from tk0miya/1638_permalinks_for_glossary_termsTakeshi KOMIYA2021-01-252-2/+7
| |\ \ \ \ | | | | | | | | | | | | Close #1638: html: Add permalink icons to glossary terms
| | * | | | Close #1638: html: Add permalink icons to glossary termsTakeshi KOMIYA2021-01-242-2/+7
| | | |/ / | | |/| |
| * | | | Merge pull request #8747 from tk0miya/8134_args_for_mock_decoratorTakeshi KOMIYA2021-01-252-8/+13
| |\ \ \ \ | | |/ / / | |/| | | Fix #8134: autodoc: crashes when mocked decorator takes arguments
| | * | | Fix #8134: autodoc: crashes when mocked decorator takes argumentsTakeshi KOMIYA2021-01-242-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | autodoc crashed when a decorator in mocked module takes arguments because mock system returns the first argument for the decorator as a decorated object. This changes the approach for mocking decorators that remembers arguments for each decoration, and fetch the latest argument on generating document.
| * | | | Close #6550: html: Allow to use HTML permalink textsTakeshi KOMIYA2021-01-241-0/+20
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new configuration variables: `html_permalinks` and `html_permalinks_icon`. This refines the settings around HTML permalinks. * html_add_permalinks * Deprecated. * html_permalinks * Enable or disable permalinks feature. * html_permalinks_icon * Change the icon for permalinks
| * | | Merge pull request #8733 from tk0miya/update_underscore.js-1.12.0Takeshi KOMIYA2021-01-241-1/+1
| |\ \ \ | | | | | | | | | | Update Underscore.js to 1.12.0
| | * | | Update Underscore.js to 1.12.0Takeshi KOMIYA2021-01-231-1/+1
| | | | |