summaryrefslogtreecommitdiff
path: root/sphinx/domains/rst.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated ``make_old_id`` functions (#11360)Adam Turner2023-04-271-16/+0
|
* Fix COM812Adam Turner2023-02-181-2/+2
|
* De-glob mypy whitelist for 'sphinx.domains.*' (#11064)danieleades2023-01-021-5/+7
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Use PEP 604 typesAdam Turner2023-01-011-2/+2
|
* Use PEP 595 typesAdam Turner2023-01-011-10/+10
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Finer grained control over domain ToC entries (#10886)Adam Turner2022-09-301-0/+1
| | | | | - Implement `:nocontentsentry:` flag - Use `:nocontentsentry:` in docs - Add domain object table of contents configuration option
* Add contents entries for domain objects (#10807)Adam Turner2022-09-131-6/+42
| | | | | | | | | - Add entries in the table of contents for domain objects (e.g. `py:function`, `rst:role`, etc). Supported domains are Javascript, Python, and reStructuredText. - Support content in `py:module` and `js:module` directives. - Add the `noindexentry` and `noindex` flags to more domains. - Add `toc_object_entries_show_parents` configuration setting - Update documentation and tests
* Remove deprecated code for Sphinx 5.0Adam Turner2022-04-171-14/+0
|
* Collapse single line docstringsAdam Turner2022-02-201-2/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-2/+2
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* address some unused loop control variables (B007)Daniel Eades2022-01-121-1/+1
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* refactor: Add Optional to type annotationsTakeshi KOMIYA2021-05-101-2/+2
|
* refactor: Use PEP-526 based variable annotation (sphinx.domains)Takeshi KOMIYA2021-03-231-3/+3
|
* refactor: Add a type alias for the option_spec of directives; OptionSpecTakeshi KOMIYA2021-03-131-1/+2
|
* refactor: Update typehints for ObjectDescription using GenericTakeshi KOMIYA2021-01-031-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
* Sort imports with isortFrançois Freitag2020-11-111-3/+1
| | | | | | | | | | | | 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.
* rst domain: Generate node_id for objects in the right wayTakeshi KOMIYA2020-03-011-37/+66
|
* refactor: Set source_info to nodesTakeshi KOMIYA2020-02-291-2/+2
|
* Deprecate desc_signature['first']Takeshi KOMIYA2020-02-091-2/+0
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Migrate to py3 style type annotation: sphinx.domains.rstTakeshi KOMIYA2019-06-301-49/+31
|
* Make directive option unique using directive nameTakeshi KOMIYA2019-05-201-3/+5
|
* Add :type: option for rst:directive:option directiveTakeshi KOMIYA2019-05-131-2/+13
|
* Add rst:directive:option directiveTakeshi KOMIYA2019-05-131-0/+61
|
* Merge pull request #6302 from tk0miya/refactor_rst_domain5Takeshi KOMIYA2019-04-151-4/+8
|\ | | | | refactor: separate ReSTMarkup.get_index_text() to subclasses
| * refactor: separate ReSTMarkup.get_index_text() to subclassesTakeshi KOMIYA2019-04-141-4/+8
| | | | | | | | | | According to the principle, the parent class; ReSTMarkup should not know about children.
* | Merge pull request #6301 from tk0miya/refactor_rst_domainTakeshi KOMIYA2019-04-141-21/+32
|\ \ | | | | | | refactor: rst domain: Add objects property and note_object() method
| * | refactor: rst domain: Add objects property and note_object() methodTakeshi KOMIYA2019-04-141-21/+32
| |/
* | Fix #6299: rst:directive directive generates waste spaceTakeshi KOMIYA2019-04-141-1/+4
|/
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | 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-14/+13
| |
* | Update type annotationsTakeshi KOMIYA2018-12-081-1/+1
| |
* | Fix annotations for domainsTakeshi KOMIYA2018-11-301-5/+4
| |
* | Merge pull request #5665 from tk0miya/fix_typehintsTakeshi KOMIYA2018-11-261-0/+1
|\ \ | | | | | | Add sphinx.util.typing:unicode to help mypy-3 migration
| * | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| | |
* | | Fix annotations for Domain.resolve_xref()Takeshi KOMIYA2018-11-241-2/+2
|/ /
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-1/+1
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-1/+1
| |
* | Remove use of six.iteritems()Jon Dufresne2018-09-111-3/+1
|/ | | | In Python 3, dict.items() is always an iterator.
* Merge branch '1.7'Takeshi KOMIYA2018-04-261-7/+1
|\
| * Revert f4f693eff7b081785cc5704a6ff22cf0371355f3Takeshi KOMIYA2018-04-261-7/+1
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-04-231-1/+7
|\ \ | |/