summaryrefslogtreecommitdiff
path: root/sphinx/util/nodes.py
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Fix mypy violations (with mypy-0.780)Takeshi KOMIYA2020-06-031-1/+2
| | |
* | | Merge branch '3.x'Takeshi KOMIYA2020-05-041-2/+2
|\ \ \ | |/ /
| * | Merge pull request #7602 from tk0miya/stacklevelTakeshi KOMIYA2020-05-031-1/+1
| |\ \ | | | | | | | | Add stacklevel parameter to warnings.warn() call
| | * | Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-1/+1
| | |/
| * | refactor: Rename parameter to avoid conflictTakeshi KOMIYA2020-05-021-2/+2
| |/
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-8/+0
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-04-061-3/+3
|\ \ | |/
| * Fix #7301: capital characters are not allowed for node_idTakeshi KOMIYA2020-03-291-3/+3
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-03-231-2/+76
|\ \ | |/
| * Fix #7301: Allow . and _ for node_idTakeshi KOMIYA2020-03-221-2/+76
| | | | | | | | | | | | | | | | | | | | | | | | In development of 3.0, Sphinx starts to obey to the rule of "Identifier Normalization" of docutils. This extends it to allow dots(".") and underscores("_") for node identifier. It allows Sphinx to generate node identifier from source string as possible as it is (bacause dots and underscores are usually used in many programming langauges). This change will keep not to break hyperlinks as possible.
* | Merge branch '3.x'Takeshi KOMIYA2020-03-121-1/+1
|\ \ | |/
| * Merge branch '2.x' into 3.xTakeshi KOMIYA2020-03-121-1/+1
| |\
| | * Fix mypy violations (with mypy-0.770)Takeshi KOMIYA2020-03-121-1/+1
| | |
* | | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-3/+2
| | |
* | | Deprecate codes for python 3.5Takeshi KOMIYA2020-03-071-2/+1
| | |
* | | Deprecate codes for docutils-0.13 or 0.14Takeshi KOMIYA2020-03-071-3/+5
|/ /
* | js domain: Generate node_id for objects in the right wayTakeshi KOMIYA2020-03-011-1/+5
|/
* Add sphinx.util.nodes:make_id() to generate better node_idTakeshi KOMIYA2020-01-021-0/+23
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-1/+1
|
* Fix #6887: Sphinx crashes with docutils-0.16b0Takeshi KOMIYA2019-12-141-1/+1
|
* Fix #6620: i18n: classifiers of definition list are not translated with ↵Takeshi KOMIYA2019-08-021-0/+3
| | | | docutils-0.15
* Fix type annotation for python 3.5.1Takeshi KOMIYA2019-07-131-2/+3
|
* Migrate to py3 style type annotation: sphinx.util.nodesTakeshi KOMIYA2019-06-051-60/+38
|
* Fix #6375: extlinks: Cannot escape angle brackets in link captionTakeshi KOMIYA2019-05-161-1/+1
|
* Update comment for patch to Element.copy()Takeshi KOMIYA2019-03-091-0/+1
|
* Merge branch '2.0'Takeshi KOMIYA2019-03-071-1/+1
|\
| * Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+1
| |
* | Add copy_source_info()Takeshi KOMIYA2019-03-031-0/+6
| |
* | refactor: Rename find_source_node() to get_node_source()Takeshi KOMIYA2019-03-031-2/+11
|/
* Merge branch '1.8'Takeshi KOMIYA2019-02-171-0/+9
|\
| * Fix #6026: LaTeX: A cross reference to definition list does not workTakeshi KOMIYA2019-02-111-0/+9
| |
* | Add a helper function; get_node_line()Takeshi KOMIYA2019-02-061-0/+8
| |
* | Give "nonl=True" value to logging.info() instead of intTakeshi KOMIYA2019-01-191-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-3/+2
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | 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.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-12/+11
| |
* | Add docutils-stubs to test depsTakeshi KOMIYA2018-12-151-2/+2
| |
* | Correct type signature of set_role_source_info()Jon Dufresne2018-12-091-1/+2
| |
* | Fix annotations for nested_parse_with_titles()Takeshi KOMIYA2018-12-041-1/+2
| |
* | refactor NodeMatcher for mypy friendlyTakeshi KOMIYA2018-12-041-11/+12
| |
* | Fix annotations for buildersTakeshi KOMIYA2018-12-021-3/+3
| |
* | Fix annotations for i18nTakeshi KOMIYA2018-12-011-1/+1
| |
* | Fix annotations (in some modules)Takeshi KOMIYA2018-12-011-6/+5
| |
* | Fix annotations for utilTakeshi KOMIYA2018-11-301-2/+1
| |
* | Merge pull request #5668 from tk0miya/5648_NodeMatcher_matches_to_Text_attrTakeshi KOMIYA2018-11-281-0/+3
|\ \ | | | | | | Fix #5648: NodeMatcher matches Text node on attribute match