summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
Commit message (Collapse)AuthorAgeFilesLines
* Run pyupgrade (#11070)Adam Turner2023-01-021-1/+1
|
* Use PEP 595 typesAdam Turner2023-01-011-8/+8
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Increase minimum Docutils to 0.18Adam Turner2022-09-271-26/+2
|
* Increase minimum Docutils to 0.17Adam Turner2022-09-271-21/+20
|
* Remove deprecated items for Sphinx 6.0 (#10471)Adam Turner2022-06-161-40/+2
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-5/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-2/+2
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* Fix mypy violations (with mypy-0.931)Takeshi KOMIYA2022-01-091-1/+1
|
* Merge branch '4.3.x' into 4.xTakeshi KOMIYA2022-01-091-2/+2
|\
| * Fix mypy violations (with mypy-0.931)Takeshi KOMIYA2022-01-091-2/+2
| |
* | Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-031-1/+1
| | | | | | | | | | | | | | | | 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.
* | i18n: meta strings are not translated with docutils-0.18Takeshi KOMIYA2022-01-021-4/+3
|/ | | | | | | 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-011-1/+1
|
* Fix #9688: ImportError for set_classes()Takeshi KOMIYA2021-10-091-0/+1
|
* Merge branch '4.x' into class-option-for-code-directiveTakeshi KOMIYA2021-10-091-5/+14
|\
| * Support docutils-0.18; Meta directive and meta node has movedTakeshi KOMIYA2021-10-031-5/+14
| |
* | Fix bug of Sphinx's .. code:: directive not recognizing :class: optionLatosha Maltba2021-10-031-0/+1
|/ | | | | | | | | | Sphinx's own .. code:: directive (but not docutils') does not recognise the :class: option but only the :classes: option. This is probably due to an oversight that the user-visible option is called ``:class:`` while the Python attribute is called ``classes`` (to not collide with the keyword ``class``). Fix it by checking for the option ``class`` instead of ``classes``.
* refactor: Use PEP-526 based variable annotation (sphinx.directives)Takeshi KOMIYA2021-03-231-1/+1
|
* refactor: Add a type alias for the option_spec of directives; OptionSpecTakeshi KOMIYA2021-03-131-2/+3
|
* Close #8487: csv-table now considers abspath as relpath from srcdirTakeshi KOMIYA2021-03-091-12/+25
| | | | | | To make directives' behavior consistent, the :file: option for csv-table directive now recognizes an absolute path as a relative path from source directory.
* Fix wrong directive name in warning messagesTakeshi KOMIYA2021-03-071-2/+2
|
* Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | | | | | | | | .. 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-121-3/+2
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-111-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-3/+2
| |
* | Deprecate codes for docutils-0.13 or 0.14Takeshi KOMIYA2020-03-071-3/+17
|/
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* refactor: Add data accessors to MathDomainTakeshi KOMIYA2019-06-151-12/+10
|
* Migrate to py3 style type annotation: sphinx.directives.patchesTakeshi KOMIYA2019-06-091-22/+13
|
* Add :force: option to code directivesTakeshi KOMIYA2019-06-011-2/+2
|
* ``math`` directive does not support ``:class:`` optionTakeshi KOMIYA2019-03-231-0/+2
| | | | | | ``:class:`` option is a common options for all directives. But our implementation does not support it so far. This adds support for the option.
* Merge branch '2.0'Takeshi KOMIYA2019-03-101-0/+48
|\
| * Merge branch '2.0' into 2155_code_directiveTakeshi KOMIYA2019-03-101-3/+6
| |\
| * | Close #2155: Support ``code`` directiveTakeshi KOMIYA2019-03-031-0/+48
| | |
* | | Merge branch '2.0'Takeshi KOMIYA2019-03-071-3/+6
|\ \ \ | | |/ | |/|
| * | Merge branch '1.8' into 2.0Takeshi KOMIYA2019-03-071-3/+6
| |\ \ | | |/ | |/|
| | * Fix #6136: ``:name:`` option for ``math`` directive causes a crashTakeshi KOMIYA2019-03-061-3/+6
| | |
* | | Add a helper method ``SphinxDirective.set_source_info()``Takeshi KOMIYA2019-03-031-1/+1
|/ /
* | Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Merge pull request #5819 from jdufresne/coding-commentTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove unnecessary encoding cookie from Python source files
| * | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | | Pass exceptions directly to docutils reporterJon Dufresne2018-12-161-1/+1
|/ / | | | | | | | | The docutils reporter supports an exception as an argument. It is converted to a string internally.
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-5/+5
| | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-1/+0
| |
* | Add docutils-stubs to test depsTakeshi KOMIYA2018-12-151-2/+2
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-1/+1
| |