summaryrefslogtreecommitdiff
path: root/sphinx/util/docutils.py
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Fix mypy violations (for mypy-0.720)Takeshi KOMIYA2019-07-131-8/+8
| | |
* | | Merge branch '2.0'Takeshi KOMIYA2019-06-151-10/+10
|\ \ \ | |/ /
| * | Fix #6486: UnboundLocalError is raised if broken extension installedTakeshi KOMIYA2019-06-151-1/+1
| | |
| * | refactor: correct interface of directive() and role() to docutils'Takeshi KOMIYA2019-06-091-9/+9
| | |
* | | Merge branch '2.0'Takeshi KOMIYA2019-06-091-92/+57
|\ \ \ | |/ /
| * | Migrate to py3 style type annotation: sphinx.util.docutilsTakeshi KOMIYA2019-06-031-94/+58
| |/
* | Drop features and APIs deprecated in 1.8Takeshi KOMIYA2019-03-301-24/+2
|/
* Merge branch '2.0'Takeshi KOMIYA2019-03-071-1/+0
|\
| * Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+0
| |
* | Add a helper method ``SphinxDirective.set_source_info()``Takeshi KOMIYA2019-03-031-0/+5
|/
* docs: Add SphinxRole and ReferenceRoleTakeshi KOMIYA2019-02-161-1/+14
|
* refactor: Rename the first argument of roles to `name`Takeshi KOMIYA2019-02-161-9/+9
| | | | | In docutils' document, it is called as name. So our base class should call it as "name" also.
* Replace :pep: and :rfc: roles by class based implementationTakeshi KOMIYA2019-02-161-2/+11
|
* Replace :index: role by class based implementationTakeshi KOMIYA2019-02-161-0/+33
|
* Add SphinxRoleTakeshi KOMIYA2019-02-061-2/+41
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-131-1/+1
|\
| * Fix #5928: KeyError: 'DOCUTILSCONFIG' when running buildTakeshi KOMIYA2019-01-121-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Reorder the arguments for translatorsTakeshi KOMIYA2018-12-171-2/+2
| |
* | Merge pull request #5509 from stephenfin/remove-future-importsTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove future imports
| * | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | 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.
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-6/+6
| | | | | | | | | | | | 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-17/+17
| |
* | Add docutils-stubs to test depsTakeshi KOMIYA2018-12-151-14/+15
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-3/+3
| |
* | Remove SphinxTranslator.get_settings()Takeshi KOMIYA2018-12-121-10/+1
| | | | | | | | | | | | | | | | | | It was introduced to fake its type information and make mypy silent. But the warnings had came from wrong typing of docutils-stubs. (see https://github.com/tk0miya/docutils-stubs/pull/28) After the fix, the helper method is not needed for us. So this removes it right away.
* | Merge branch 'master' into refactor_SphinxTranslatorTakeshi KOMIYA2018-12-031-2/+2
|\ \
| * | Use StringList for params to docutils because of expectedTakeshi KOMIYA2018-12-031-2/+2
| | |
* | | Add SphinxTranslator as an abstract classTakeshi KOMIYA2018-12-031-0/+27
|/ /
* | Add role manipulator directives to sphinx.util.docutilsTakeshi KOMIYA2018-12-011-0/+16
| |
* | Add role manipulator functions to sphinx.util.docutilsTakeshi KOMIYA2018-12-011-0/+22
| |
* | Fix annotations (in some modules)Takeshi KOMIYA2018-12-011-4/+4
| |
* | Fix annotations for utilTakeshi KOMIYA2018-11-301-3/+4
| |
* | refactor: Use super() to call methods of superclassTakeshi KOMIYA2018-11-281-1/+1
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Fix annotations for app.add_nodes() and related functionsTakeshi KOMIYA2018-11-241-4/+4
| |
* | Use super() to call parent class's methodJon Dufresne2018-11-111-4/+4
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-3/+3
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-3/+3
| |
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-2/+1
|\ \
| * | Prefer builtin open() over io.open() and codecs.open()Jon Dufresne2018-09-111-2/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | In Python3, the functions io.open() is an alias of the builtin open() and codecs.open() is functionally equivalent. To reduce indirection, number of imports, and number of patterns, always prefer the builtin. https://docs.python.org/3/library/io.html#high-level-module-interface > io.open() > > This is an alias for the builtin open() function.
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-2/+2
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Fix #4362: latex: Don't overwrite .tex file if document not changedTakeshi KOMIYA2018-06-141-0/+22
|
* docs: Update docstring of SphinxDirective (add notice)Takeshi KOMIYA2018-06-071-3/+5
|
* Give better default settings for LoggingReporterTakeshi KOMIYA2018-05-121-2/+3
|
* Let docutils know the location of ``docutils.conf`` for SphinxTakeshi KOMIYA2018-04-221-13/+38
|
* Add SphinxDirective as a helperTakeshi KOMIYA2018-03-311-1/+22
|
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\