summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert ``html_codeblock_linenos_style`` removal (#10922)Adam Turner2022-10-161-2/+15
|
* Merge branch '5.x'Adam Turner2022-10-1637-206/+528
|\ | | | | | | | | | | | | | | # Conflicts: # .github/workflows/main.yml # CHANGES # sphinx/__init__.py # sphinx/domains/c.py
| * Allow sections in object description directives (#10919)Adam Turner2022-10-153-0/+51
| |
| * URI-escape image filenames (#10268)Eric Wieser2022-10-135-2/+16
| | | | | | | | | | | | | | | | Without this change, local images with `#` in their name result in incorrect URLs There is already a similar call to `urllib.parse.quote` for file downloads, suggesting this is a sensible approach. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Takeshi KOMIYA <i.tkomiya@gmail.com>
| * Revert "Fix detection for out of date files (#9360)" (#10908)Martin Liška2022-10-134-3/+5
| | | | | | | | | | | | | | This reverts commit b1390c4191319e75d14ce3e6e73ef43c31d981b4. The change is reverted because some builders don't have fine-grained support for outdated docs: https://github.com/sphinx-doc/sphinx/issues/10903#issuecomment-1273199352
| * LaTeX: support for booktabs-style and zebra-striped tables (#10759)Jean-François B2022-10-1227-203/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combination of 2 + 28 + 7 + and some more commits... * Cherry-pick: Add support for booktabs-style tables to LaTeX builder * Cherry-pick: Add support for zebra-striped tables to LaTeX builder Co-authored-by: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com> Above work originally initiated by @sephalon (thanks!) Development refactored and continued by @jfbu * latex_table_style configuration, support booktabs, colorrows, borderless Some details: - Simplify a bit a conditional in the longtable template This also puts the target for a longtable with a label but no caption above the toprule for better hyperlinking (testing shows hyperlink target can not end up alone at bottom of previous page). - Extend allowed syntax for colour assignments via 'sphinxsetup' - latex_table_style new configuration value and coloured rows For the user interface I tried to look for inspiration in https://docutils.sourceforge.io/docs/user/config.html#table-style which mentions booktabs and borderless. They also mention captionbelow which we can implement later, now that architecture is here. They don't mention coloured rows. - Test on our own document... looks fine! - Work-around an incompatibility of \cline with row colours - Reverse priority of classes to allow overruling booktabs by standard after parsing source but before letting LaTeX writer act - Closes #8220 Commit https://github.com/sphinx-doc/sphinx/commit/bb859c669679baebd8cc8d10c99382478c0d1647 already improved a bit, this finishes it (as :rst:dir:`rst-class` was actually not linking to anywhere). - Let booktabs style defaults to *not* using \cmidrule. They actually don't make much sense there, as all \hline's are removed. - Add \sphinxnorowcolor which allows construct such as this one in a tabularcolumns directive: >{\columncolor{blue}\sphinxnorowcolor} else LaTeX always overrides column colour by row colour - Add TableMergeColorHeader, TableMergeColorOdd, TableMergeColorEven so single-row merged cells can be styled especially - Extend row colours to all header rows not only the first one (all header rows will share same colour settings) - Auto-adjust to a no '|'-colspec for optimal handling of merged cell - Add \sphinxcolorblend - Workaround LaTeX's \cline features and other grid tables matters - Add \sphinxbuildwarning for important warnings - Fix some white gaps in merged cells of tables with vlines and colorrows - Work around LaTeX's \cline serious deficiencies for complex grid tables This commit corrects \cline badly impacting vertical spacing and making tables look even more cramped as they usually are in LaTeX (although one sees it clearly only with \arrarrulewidth a bit more than the LaTeX default of 0.4pt). Most importantly this commit solves the problem that \cline's got masked by colour panels from the row below. - Update CHANGES for PR #10759 - Improve documentation of new latex_table_style regarding colours
| * Don't display 'replaceable hardcoded link' when link has a slash (#10137)Anthony Sottile2022-10-052-0/+3
| |
| * Fix detection for out of date files (#9360)Martin Liška2022-10-054-5/+3
| | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
| * Extend cross referencing options with values (#10883)Martin Liška2022-10-022-1/+5
| | | | | | | | | | | | | | | | This change means that text following `=`, `[=`, or ` ` is ignored when searching for a corresponding option directive to an option cross reference role. These are commonly used options, for example `--profile=path`, `--profile[=path]` or `--profile path`. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* | Merge branch '5.x'Adam Turner2022-09-303-0/+28
|\ \ | |/ | | | | | | # Conflicts: # sphinx/locale/__init__.py
| * Merge branch '5.2.x' into 5.xAdam Turner2022-09-301-0/+6
| |\ | | | | | | | | | | | | | | | # Conflicts: # CHANGES # sphinx/__init__.py
| | * imgmath: Fix embed mode (#10878)Julien Schueller2022-09-291-0/+6
| | |
| * | extend option directive syntaxMartin Liska2022-09-272-0/+22
| | | | | | | | | | | | One can cross-reference an option value: :option:`--module=foobar`.
* | | Increase minimum Docutils to 0.18Adam Turner2022-09-273-50/+2
| | |
* | | Increase minimum Docutils to 0.17Adam Turner2022-09-276-137/+56
| | |
* | | Drop Python 3.7Adam Turner2022-09-2711-96/+58
| | |
* | | Clean up after dropping Python 3.6Adam Turner2022-09-2710-50/+50
| | |
* | | Merge branch '5.x'Adam Turner2022-09-271-2/+2
|\ \ \ | |/ /
| * | Use path2doc rather than reinventing the wheelStephen Finucane2022-09-261-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | We already have a helper function that allows us to convert a filename to a "docname". Don't reinvent the wheel and simply use this when building specific files with Sphinx. Note that this does change behavior slightly, insofar as filenames that don't resolve to valid docnames will now be ignored rather than being passed with their suffix and silently ignored later, but that seems sane. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | Merge branch '5.x'Adam Turner2022-09-2510-13/+56
|\ \ | |/ | | | | | | | | | | | | | | | | # Conflicts: # CHANGES # doc/conf.py # sphinx/__init__.py # sphinx/builders/html/__init__.py # sphinx/domains/python.py # tests/test_build_html.py
| * Fix highlighting lexersAdam Turner2022-09-252-10/+19
| | | | | | | | - Ensure `pycon3` is always normalised to `pycon`
| * Split out `sphinx_highlight.js`Adam Turner2022-09-243-3/+3
| |
| * Clear `record_dependencies` for each document (#10855)Adam Turner2022-09-245-0/+24
| |
| * Deprecate HTML 4 support (#10843)Adam Turner2022-09-231-0/+10
| |
* | Merge branch '5.x'Adam Turner2022-09-2310-4/+144
|\ \ | |/ | | | | | | | | # Conflicts: # setup.py # sphinx/__init__.py
| * imgmath: Allow embedding images in HTML as base64 (#10816)Julien Schueller2022-09-231-0/+18
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
| * Support searching for index entries (#10819)Adam Turner2022-09-201-2/+4
| |
| * Add contents entries for domain objects (#10807)Adam Turner2022-09-135-2/+85
| | | | | | | | | | | | | | | | | | - Add entries in the table of contents for domain objects (e.g. `py:function`, `rst:role`, etc). Supported domains are Javascript, Python, and reStructuredText. - Support content in `py:module` and `js:module` directives. - Add the `noindexentry` and `noindex` flags to more domains. - Add `toc_object_entries_show_parents` configuration setting - Update documentation and tests
| * Make toctree accept special docnames (#10673)Brecht Machiels2022-09-124-0/+37
| | | | | | | | | | | | The `.. toctree::` directive now supports the reserved special docnames 'genindex', 'modindex', and 'search'. Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* | Merge branch '5.x'Adam Turner2022-09-0923-69/+105
|\ \ | |/ | | | | | | | | | | | | | | # Conflicts: # setup.py # sphinx/application.py # sphinx/environment/__init__.py # sphinx/ext/autodoc/directive.py # tests/test_build_html.py
| * Remove Pygments compatability code (#10812)Adam Turner2022-09-092-33/+11
| |
| * search: support searching for (sub)titles (#10717)Martin Liška2022-09-091-2/+4
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
| * Allow `:ref:` role to be used with definitions and fields (#10781)Jeremy Maitin-Shepard2022-09-061-0/+40
| |
| * Remove unneeded `noqa` lint suppression comments (#10772)danieleades2022-08-2817-36/+36
| |
| * Further improve type annotations, reduce mypy whitelist (#10770)danieleades2022-08-281-1/+1
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
| * linkcheck: Check the source URL of raw directivesn-peugnet2022-08-172-4/+17
| | | | | | | | | | | | Add raw directives' source URL to the list of links to check with linkcheck. By the way, refactor HyperlinkCollector by adding `add_uri` function. Add test for linkcheck raw directives source URL
* | Merge branch '5.x'Jean-François B2022-08-065-10/+218
|\ \ | |/
| * Properly support `of` in docstring type specifiers (#10738)ProGamerGov2022-08-022-0/+117
| | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
| * Merge branch '5.1.x' into 5.xJean-François B2022-08-012-7/+13
| |\
| | * Fix flake8 5.0.0 reported formatting errorsdaniel.eades2022-08-012-7/+13
| | |
| * | C++, restructure testsJakob Lykke Andersen2022-07-291-34/+32
| | |
| * | C++, fix parsing of certain non-type template parametersJakob Lykke Andersen2022-07-291-3/+4
| | | | | | | | | | | | Specifically 'template<int (X::*)(bool)...>'
| * | C++, ensure merging case is as assumedJakob Lykke Andersen2022-07-291-8/+8
| | |
| * | [C++] Ensure consistent non-specialization template argument representationJeremy Maitin-Shepard2022-07-291-3/+89
| | | | | | | | | | | | | | | Previously, in certain cases the template arguments of non-specializations were retained, leading to incorrect merging of symbols.
* | | Merge branch '5.x'Adam Turner2022-07-261-0/+25
|\ \ \ | |/ /
| * | [C++] Allow template prefix on union declarationsJeremy Maitin-Shepard2022-07-241-0/+3
| | |
| * | [C++] Allow trailing requires-clause on constructorsJeremy Maitin-Shepard2022-07-241-0/+2
| | |
| * | [C++] Allow trailing-requires-clause on functions without a template prefixJeremy Maitin-Shepard2022-07-241-0/+2
| | |
| * | [C++] Support requires-clause in more placesJeremy Maitin-Shepard2022-07-241-0/+18
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously a C++20 requires-clause was only supported on `function` declarations. However, the C++ standard allows a require-clause on class/union templates, alias templates, and variable templates, and also allows a requires clause after each template parameter list, not just the final one. This moves the requiresClause to be a property of `ASTTemplateParams` rather than `ASTDeclaration` to better match the C++ grammar and allows requires clauses in many places that are supported by C++20 but were not previously allowed by Sphinx, namely: - On class templates, alias templates, and variable templates - After each template parameter list, not just the last one. - After the template parameter list in template template parameters. When encoding the id, the requires clause of the last template parameter list is treated specially in order to preserve compatibility with existing v4 ids.
* | Merge branch '5.x'Adam Turner2022-07-241-8/+8
|\ \ | |/ | | | | | | | | # Conflicts: # CHANGES # sphinx/__init__.py