summaryrefslogtreecommitdiff
path: root/sphinx/directives
Commit message (Collapse)AuthorAgeFilesLines
...
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-153-8/+8
| | | | | | | | | | | | 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-154-28/+25
| |
* | Add docutils-stubs to test depsTakeshi KOMIYA2018-12-151-2/+2
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-2/+1
| |
* | Simplify open() call by removing default modeJon Dufresne2018-12-111-1/+1
| | | | | | | | | | | | | | | | | | The open() function opens files in read-only text mode by default. Drop the mode argument to be slightly simpler and more idiomatic. https://docs.python.org/3/library/functions.html#open > The default mode is 'r' (open for reading text, synonym of 'rt').
* | Fix annotationsTakeshi KOMIYA2018-12-081-1/+2
| |
* | Add DirectiveOption type to an entry of Directive.option_specTakeshi KOMIYA2018-12-071-2/+2
| |
* | Use StringList for params to docutils because of expectedTakeshi KOMIYA2018-12-031-2/+2
| |
* | Fix annotations: Give Any type to state.memo to conceal errorsTakeshi KOMIYA2018-12-031-7/+8
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-1/+1
| |
* | Merge branch 'master' into refactor_docutils_manipulationTakeshi KOMIYA2018-12-024-53/+58
|\ \
| * | Fix annotations for Directives (Replace N_co with nodes.Node)Takeshi KOMIYA2018-12-014-53/+59
| | |
* | | Add role manipulator functions to sphinx.util.docutilsTakeshi KOMIYA2018-12-011-4/+4
|/ /
* | Fix annotations for utilTakeshi KOMIYA2018-11-301-1/+2
| |
* | Fix annotations for directivesTakeshi KOMIYA2018-11-294-36/+39
| |
* | refactor: Use super() to call methods of superclassTakeshi KOMIYA2018-11-283-8/+8
| |
* | Fix annotations of directives.patchesTakeshi KOMIYA2018-11-271-9/+13
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-244-0/+4
| |
* | Fix typehints: sphinx.directivesTakeshi KOMIYA2018-11-061-2/+2
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-11-011-1/+1
|\ \ | |/
| * Fix #5471: Show appropriate warning for deprecated APIsTakeshi KOMIYA2018-10-171-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-23/+1
|\ \ | |/
| * Revert "Improve warning messages during including (refs: #4818)"Takeshi KOMIYA2018-10-141-23/+1
| | | | | | | | This reverts commit a4dbb6e657bf86e5940e352a2935d1b3264d74e2.
* | Replace all six.itervalues()/.iteritems() with .values()/.items()Jon Dufresne2018-09-231-1/+1
| |
* | Remove uses of six.moves that did not cause any type errorsJon Dufresne2018-09-231-1/+0
| | | | | | | | | | Removal of the remaining imports may require passing "--python-version 3.5" to the mypy command.
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-2/+2
|\ \
| * | Prefer builtin open() over io.open() and codecs.open()Jon Dufresne2018-09-111-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Fix #4379: toctree shows confusible warning when document is excludedTakeshi KOMIYA2018-09-021-4/+9
|
* Move VersionChanges directive to sphinx.domains.changesetTakeshi KOMIYA2018-08-021-66/+2
|
* refactor: Move repository of changesets to domain from envTakeshi KOMIYA2018-08-021-2/+2
|
* Escape raw stringsStephen Finucane2018-06-201-1/+1
| | | | | | | | | | | These were resulting in the below warning messages when running flake8 under Python 3.6. :48: DeprecationWarning: invalid escape sequence \[ :143: DeprecationWarning: invalid escape sequence \- :250: DeprecationWarning: invalid escape sequence \s Signed-off-by: Stephen Finucane <stephen@that.guru>
* Merge branch '1.7'Takeshi KOMIYA2018-06-091-1/+1
|\
| * Fix mypy violationTakeshi KOMIYA2018-06-091-1/+1
| |
* | Fix #4927: Display a warning when invalid values are passed to ↵Takeshi KOMIYA2018-05-221-8/+2
| | | | | | | | linenothreshold option of highlight directive
* | Remove unused codeTakeshi KOMIYA2018-05-191-2/+0
| |
* | Enable math_block node rendering by default (without HTML builders)Takeshi KOMIYA2018-05-171-0/+59
| |
* | refactor: Replace Directive by SphinxDirectiveTakeshi KOMIYA2018-05-111-2/+2
| |
* | Merge branch 'master' into deprecate_highlightlang_directiveTakeshi KOMIYA2018-04-291-33/+65
|\ \
| * | Improve warning messages during including (refs: #4818)Takeshi KOMIYA2018-04-221-1/+23
| | |
| * | Merge branch '1.7'Takeshi KOMIYA2018-04-221-32/+42
| |\ \ | | |/
| | * Fix toctree directive tries to glob for URL having query_stringTakeshi KOMIYA2018-04-161-2/+3
| | |
| | * Refactor toctree directiveTakeshi KOMIYA2018-04-151-32/+42
| | |
* | | Deprecate highlightlang directiveTakeshi KOMIYA2018-04-151-1/+14
|/ / | | | | | | highlightlang directive is not documented, and marked as old in v0.2.
* | Merge branch '1.7'Takeshi KOMIYA2018-04-141-1/+1
|\ \ | |/
| * Fix #4812: autodoc ignores type annotated variablesTakeshi KOMIYA2018-04-081-1/+1
| |
* | Add SphinxDirective as a helperTakeshi KOMIYA2018-03-314-50/+45
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-03-184-10/+8
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-134-10/+8
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch 'master' into dont_stringify_exceptionsTakeshi KOMIYA2018-03-041-3/+3
|\ \