summaryrefslogtreecommitdiff
path: root/sphinx/environment
Commit message (Collapse)AuthorAgeFilesLines
* Resolve ``flake8-return`` errorsAdam Turner2023-02-182-2/+2
|
* Unescape quotation marks where possibleAdam Turner2023-02-182-2/+2
|
* Fix COM812Adam Turner2023-02-184-6/+6
|
* Resolve Ruff SIM114 violationsAdam Turner2023-02-152-2/+2
|
* Collapse ``.startswith`` and ``.endswith`` testsAdam Turner2023-02-091-1/+1
|
* Cache doctrees between reading and writing phasesAdam Turner2023-01-041-1/+9
|
* Cache doctrees more efficientlyAdam Turner2023-01-042-10/+15
|
* Rewrite IndexBuilder loadingAdam Turner2023-01-021-0/+19
|
* Cosmetic refactor of ``_entries_from_toctree``Adam Turner2023-01-021-29/+22
|
* Don't re-read doctrees from disk unnecessarilyAdam Turner2023-01-021-5/+12
| | | | Cache the loaded doctree and deepcopy on return
* Add faster ``TocTree._toctree_copy`` method (#10988)hofmandl12023-01-021-25/+28
| | | | | | | | | | | | | As in the standalone html builder the navigation is flattened out for every single html page, the code needs to create a specialised toctree for every html page. Previously this was done by deep-copying the complete navigation toctree and then stripping out the parts not needed on the particular page. With this change the code only (deep)-copies the needed parts of the toctree avoiding unnecessary copying and throwing-away. The performance improvements seems to be smaller for smaller page counts and get bigger the more pages are involved. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Run pyupgrade (#11070)Adam Turner2023-01-023-22/+22
|
* Use PEP 604 typesAdam Turner2023-01-015-26/+26
|
* Use PEP 595 typesAdam Turner2023-01-019-96/+94
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-019-0/+18
|
* Allow line breaks before binary operatorsAdam Turner2022-12-291-1/+1
|
* remove blanket 'noqas'Daniel Eades2022-12-161-1/+1
|
* Update typing ignores for mypy 0.990Adam Turner2022-11-131-1/+1
|
* Run the ``pyupgrade`` toolAdam Turner2022-10-171-1/+2
|
* Merge branch '5.x'Adam Turner2022-09-301-1/+4
|\ | | | | | | | | # Conflicts: # sphinx/locale/__init__.py
| * Finer grained control over domain ToC entries (#10886)Adam Turner2022-09-301-1/+4
| | | | | | | | | | - Implement `:nocontentsentry:` flag - Use `:nocontentsentry:` in docs - Add domain object table of contents configuration option
* | Increase minimum Docutils to 0.18Adam Turner2022-09-271-3/+0
| |
* | Drop Python 3.7Adam Turner2022-09-272-3/+3
| |
* | Merge branch '5.x'Adam Turner2022-09-233-32/+149
|\ \ | |/ | | | | | | | | # Conflicts: # setup.py # sphinx/__init__.py
| * Fix section numbering in domain object contents entries (#10830)Adam Turner2022-09-201-1/+4
| |
| * Fix nesting in domain object contents entries (#10828)Adam Turner2022-09-201-2/+1
| |
| * Add contents entries for domain objects (#10807)Adam Turner2022-09-131-27/+71
| | | | | | | | | | | | | | | | | | - 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-122-1/+17
| | | | | | | | | | | | 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>
| * Privatise type (`DomainsType` -> `_DomainsType`)Adam Turner2022-09-121-5/+5
| |
| * More precise typing for `BuildEnvironment.domains` (#10813)Adam Turner2022-09-092-4/+59
| |
* | Merge branch '5.x'Adam Turner2022-09-093-14/+25
|\ \ | |/ | | | | | | | | | | | | | | # Conflicts: # setup.py # sphinx/application.py # sphinx/environment/__init__.py # sphinx/ext/autodoc/directive.py # tests/test_build_html.py
| * search: support searching for (sub)titles (#10717)Martin Liška2022-09-091-1/+1
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
| * Further improve type annotations, reduce mypy whitelist (#10770)danieleades2022-08-283-14/+25
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* | Merge branch '5.x'Adam Turner2022-07-241-1/+4
|\ \ | |/ | | | | | | | | # Conflicts: # CHANGES # sphinx/__init__.py
| * Update include_patterns implementation (#10680)Adam Turner2022-07-231-1/+4
| |
* | Merge branch '5.x'Adam Turner2022-07-182-4/+4
|\ \ | |/ | | | | | | | | # Conflicts: # sphinx/ext/autodoc/__init__.py # sphinx/writers/html5.py
| * Improve static typing strictness (#10569)danieleades2022-07-182-4/+4
| |
* | Merge branch '5.x'Adam Turner2022-07-172-2/+2
|\ \ | |/
| * Add `include_patterns` as the opposite of `exclude_patterns` (#10518)Adam Turner2022-07-172-2/+2
| |
* | Merge branch '5.x' into masterJean-François B2022-06-301-2/+2
|\ \ | |/ | | | | | | | | | | | | 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)
| * Use the `flake8-comprehensions` lint plugin (#10601)danieleades2022-06-261-2/+2
| |
* | Remove deprecated items for Sphinx 6.0 (#10471)Adam Turner2022-06-161-8/+2
|/
* Prefer `image_loading` over `embed_images`Adam Turner2022-04-221-1/+4
|
* Merge branch '4.x'Takeshi KOMIYA2022-03-1911-100/+12
|\
| * environment: Update default value for pep_base_urlMichal Čihař2022-03-161-1/+1
| | | | | | | | | | | | This matches docutils change in https://sourceforge.net/p/docutils/code/9045/ Fixes #10253
| * Collapse single line docstringsAdam Turner2022-02-2011-22/+11
| |
| * Remove copyright and licence fieldsAdam Turner2022-02-2011-33/+0
| |
| * Fix module docstring indentationAdam Turner2022-02-2011-22/+22
| |
| * Fix module docstring first lineAdam Turner2022-02-2011-22/+11
| |
| * Remove module titles in docstringsAdam Turner2022-02-1911-33/+0
| |