summaryrefslogtreecommitdiff
path: root/sphinx/transforms
Commit message (Collapse)AuthorAgeFilesLines
...
* i18n: meta strings are not translated with docutils-0.18Takeshi KOMIYA2022-01-021-1/+6
| | | | | | | i18n feature for meta strings does not work if docutils-0.18 used. Note: Since docutils-0.18, patch for meta directive is no longer needed because it uses a picklable meta nodes; ``docutils.nodes.meta``.
* A happy new year!Takeshi KOMIYA2022-01-017-7/+7
|
* Fix #9947: i18n: topic directive having a bullet list can't be translatableTakeshi KOMIYA2021-12-101-1/+1
| | | | | | It seems docutils does not fill the topic node with the source info when a topic directive has a bullet list. As a workaround, This fills the source info of them.
* Support docutils-0.18: Consume generator of Element.traverse()Takeshi KOMIYA2021-10-311-15/+15
| | | | | The last fix in i18n module was incorrect because it compares the "already consumed" generators. It should compares the lists of nodes.
* Support docutils-0.18: Consume iterator of Element.traverse()Takeshi KOMIYA2021-10-273-4/+4
| | | | | | | 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.
* Set refdoc default to pending_xref nodes to be used by missing-referenceMatthijs van der Burgh2021-10-101-1/+2
|
* refactor: Node.traverse() will returns generator since 0.18Takeshi KOMIYA2021-10-101-5/+5
|
* Fix typos discovered by codespellChristian Clauss2021-09-082-2/+2
|
* Improve sphinx.transforms docstringsLouis Maddox2021-07-181-4/+4
|
* Improve sphinx.transforms.post_transforms.images docstringsLouis Maddox2021-07-181-7/+7
|
* Improve sphinx.transforms.post_transforms docstringsLouis Maddox2021-07-181-3/+3
|
* Fix typoEisuke Kawashima2021-07-081-1/+1
|
* Merge branch '4.0.x' into 4.xTakeshi KOMIYA2021-06-301-1/+2
|\
| * Fix #9322: KeyError is raised on PropagateDescDomain transformTakeshi KOMIYA2021-06-131-1/+2
| | | | | | | | | | | | | | | | | | PropageteDescDomain applies the domain name from the "domain" attribute of parent node (desc node) to the desc_signature node. The structure has longly generated by ObjectDescription. But it must not be a new rule. This allows to build document that contains non standard doctree.
* | Merge pull request #9239 from igo95862/https-linksTakeshi KOMIYA2021-05-191-1/+1
|\ \ | | | | | | Upgrade URLs to use HTTPS
| * | doc: Upgrade docutils.sourceforge.io links to HTTPSigo958622021-05-161-1/+1
| | | | | | | | | | | | | | | Also change any docutils.sourceforge.net link to io top level domain.
* | | Merge branch '4.0.x' into 4.xTakeshi KOMIYA2021-05-191-9/+19
|\ \ \ | |/ / |/| / | |/
| * Fix #9240: Unknown node error for pending_xref_condition is raisedTakeshi KOMIYA2021-05-181-9/+19
| | | | | | | | | | Unknown node error for pending_xref_condition is raised if an extension that does not support the node installs a missing-reference handler.
* | refactor: Add Optional to type annotationsTakeshi KOMIYA2021-05-101-2/+2
| |
* | Merge pull request #9131 from RuRo/feature/glob-nitpick-ignoreTakeshi KOMIYA2021-05-051-1/+15
|\ \ | | | | | | Ignore nitpick warnings with regular expressions using `nitpick_ignore_regex`
| * | implement nitpick_ignore_regexruro2021-05-021-1/+15
| |/
* | refactor: Add Optional to type annotationsTakeshi KOMIYA2021-05-031-3/+3
|/
* Fix #9103: LaTeX: imgconverter: conversion runs even if not neededTakeshi KOMIYA2021-04-171-1/+1
| | | | | | The imgconverter unexpectedly goes to convert even if the given image is supported by the target builder when the image globbing is not used. This enables format guess-ing on not globbed.
* Decl styling, fixes from reviewJakob Lykke Andersen2021-04-121-2/+2
|
* Decl styling, update writersJakob Lykke Andersen2021-04-121-8/+9
| | | | | | Add test objects so all builders gets exposed to the new nodes. Make the fallback node post-transform change desc_inline as well. Make the html4, latex, and text writers handle desc_inline.
* Decl styling, use a post-transform to get the domain name in the ↵Jakob Lykke Andersen2021-04-121-0/+10
| | | | desc_signature nodes
* Decl styling, more nodes and C++ conversionJakob Lykke Andersen2021-04-121-5/+1
|
* refactor: Use PEP-526 based variable annotation (sphinx.transforms)Takeshi KOMIYA2021-03-246-23/+23
|
* Merge pull request #8432 from tk0miya/7119_pending_xref_conditionTakeshi KOMIYA2021-03-061-3/+20
|\ | | | | Fix #7119: Show type hint names unqualified when resolving succeeded
| * Filter pending_xref_condition node on failed resolutionTakeshi KOMIYA2021-03-061-3/+20
| |
* | Merge pull request #8954 from askhl/safer-translatable-stringsTakeshi KOMIYA2021-03-041-6/+5
|\ \ | |/ |/| Safe formatting of translatable strings
| * format translatable strings in one go. This enables translation tools like ↵Ask Hjorth Larsen2021-03-031-6/+5
| | | | | | | | msgfmt to verify that an incorrect translation cannot crash sphinx-build. This will fix current crashes for Hungarian and Greek (Spanish was fixed in #8941)
* | Merge pull request #8899 from mcmtroffaes/patch-2Takeshi KOMIYA2021-02-171-1/+1
|\ \ | | | | | | fix potential getitem error in resolve_anyref
| * | fix potential getitem error in resolve_anyrefMatthias C. M. Troffaes2021-02-161-1/+1
| |/
* | Merge branch '3.x'Takeshi KOMIYA2021-02-091-1/+1
|\ \ | |/
| * i18n: Locale transform: Change heading syntax to work for both RST and MarkdownJames McKinney2021-02-081-1/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2021-01-281-0/+1
|\ \ | |/
| * Fix #8745: i18n: KeyError if a new auto footnote_ref in translationsTakeshi KOMIYA2021-01-251-0/+1
| | | | | | | | | | | | | | | | | | Some writers will be crashed by KeyError because of lack of the refid if a new auto footnote reference is added to the message catalog by translation misses. This detects the invalid footnote references and removes them on the translation phase.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-221-2/+2
|\ \ | |/
| * minor typing fixChris Sewell2021-01-201-2/+2
| |
* | Fix #4550: The align attribute of figure nodes becomes None by defaultTakeshi KOMIYA2021-01-161-1/+7
| | | | | | | | | | | | To keep compatibility with the standard doctree model of docutils, this stops to use 'default' value as a default value of the align attribute for figure and table nodes.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-081-3/+3
|\ \ | |/
| * Skip imgconverter availability check if builder supports the image typeStefan Wiehler2021-01-041-3/+3
| | | | | | | | | | Close #7973: ImgConverter runs is_available in HTML builder Close missinglinkelectronics/sphinxcontrib-svg2pdfconverter#8: Extension should only run on LaTeX builder
* | Merge branch '3.x'Takeshi KOMIYA2021-01-017-7/+7
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2021-01-017-7/+7
| | | | | | | | | | | | | | .. 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-12-201-2/+2
|\ \ | |/
| * Deprecate sphinx.util.osutil.movefile() in favor of os.replace()Jon Dufresne2020-12-131-2/+2
| | | | | | | | | | | | | | The utility function movefile() was added in 677d096393bca948eea8fad252bd859ed8142309 to handle existing files on Windows. Since Python 3.3, the stdlib function os.replace() fills this role.
* | Do isortTakeshi KOMIYA2020-11-123-6/+3
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-11-125-17/+10
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-116-21/+13
| | | | | | | | | | | | | | | | | | | | | | | | 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.