summaryrefslogtreecommitdiff
path: root/sphinx/environment/adapters
Commit message (Collapse)AuthorAgeFilesLines
* Unescape quotation marks where possibleAdam Turner2023-02-181-1/+1
|
* Fix COM812Adam Turner2023-02-182-2/+2
|
* Cache doctrees more efficientlyAdam Turner2023-01-041-1/+1
|
* Cosmetic refactor of ``_entries_from_toctree``Adam Turner2023-01-021-29/+22
|
* 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-021-4/+4
|
* Use PEP 604 typesAdam Turner2023-01-012-7/+7
|
* Use PEP 595 typesAdam Turner2023-01-012-18/+18
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-012-0/+4
|
* Update typing ignores for mypy 0.990Adam Turner2022-11-131-1/+1
|
* Drop Python 3.7Adam Turner2022-09-271-2/+2
|
* Make toctree accept special docnames (#10673)Brecht Machiels2022-09-121-1/+12
| | | | | | 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>
* 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>
* Update include_patterns implementation (#10680)Adam Turner2022-07-231-1/+4
|
* Improve static typing strictness (#10569)danieleades2022-07-182-4/+4
|
* Add `include_patterns` as the opposite of `exclude_patterns` (#10518)Adam Turner2022-07-171-1/+1
|
* Collapse single line docstringsAdam Turner2022-02-204-8/+4
|
* Remove copyright and licence fieldsAdam Turner2022-02-204-12/+0
|
* Fix module docstring indentationAdam Turner2022-02-204-8/+8
|
* Fix module docstring first lineAdam Turner2022-02-204-8/+4
|
* Remove module titles in docstringsAdam Turner2022-02-194-12/+0
|
* address some unused loop control variables (B007)Daniel Eades2022-01-121-1/+1
|
* Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-031-6/+6
| | | | | | | | Node.traverse() was marked as deprecated since docutils-0.18. Instead of it, Node.findall() has been added as successor of traverse(). This applies a patch to docutils-0.17 or older to be available Node.findall() and use it.
* A happy new year!Takeshi KOMIYA2022-01-014-4/+4
|
* Support docutils-0.18: Consume iterator of Element.traverse()Takeshi KOMIYA2021-10-271-2/+2
| | | | | | | Since 0.18, Element.traverse() returns an iterator instead of intermediate object. As a result, the return value is always considered as truthy value. And it becomes fragile when the caller modifies the doctree on the loop.
* Fix typos discovered by codespellChristian Clauss2021-09-081-1/+1
|
* Fix typoEisuke Kawashima2021-07-081-1/+1
|
* refactor: Add Optional to type annotationsTakeshi KOMIYA2021-05-101-1/+1
|
* refactor: Add Optional to type annotationsTakeshi KOMIYA2021-05-031-2/+2
|
* Merge pull request #9053 from tk0miya/title_node_for_toctree_captionTakeshi KOMIYA2021-04-091-1/+1
|\ | | | | Fix #8870: Use title node for the caption of toctree
| * Fix #8870: Use title node for the caption of toctreeTakeshi KOMIYA2021-04-091-1/+1
| | | | | | | | | | Since docutils-0.17, the caption node should not use for the non-figure nodes. Therefore, this replaces it by the title node.
* | refactor: Use PEP-526 based variable annotation (sphinx.environment)Takeshi KOMIYA2021-03-252-6/+6
| |
* | Close #8326: Rename master_doc to root_docTakeshi KOMIYA2021-02-281-1/+1
| | | | | | | | | | | | To describe the purpose more accurately, the `master_doc` is now renamed to `root_doc`. The old name is still available. But it is recommeneded to use new one from now on.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-161-1/+3
|\ \ | |/
| * Deal with empty string case.Jean Kossaifi2021-01-091-1/+1
| |
| * Cast maxdepth to int in toctreeJean Kossaifi2021-01-091-0/+2
| | | | | | | | When specifying the max-depth for the toctree in theme.conf that isn't automatically cast to int, causing a hard to locate error.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-014-4/+4
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2021-01-014-4/+4
| | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* | Merge branch '3.x'Takeshi KOMIYA2020-11-122-7/+4
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-112-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-5/+9
|\ \ | |/
| * Fix #2050: Symbols sections are appeared twice in the index pageTakeshi KOMIYA2020-07-181-5/+9
| | | | | | | | | | | | Multibyte symbols are categorized to independent symbols section different to single byte symbols. This integrate them to a single section.
* | Merge branch '3.x'Takeshi KOMIYA2020-04-131-1/+1
|\ \ | |/
| * Fix #7410: Allow to suppress "circular toctree references detected" warningsTakeshi KOMIYA2020-04-121-1/+1
| |
* | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-3/+2
|/
* refactor: Sorting index entriesTakeshi KOMIYA2020-03-011-2/+2
|
* Close #7220: genindex: Show "main" index entries at firstTakeshi KOMIYA2020-02-291-3/+12
|
* refactor: Rename var keyword argument to "**kwargs"Takeshi KOMIYA2020-01-081-7/+7
|
* A happy new year!Takeshi KOMIYA2020-01-014-4/+4
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-3/+3
|