Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow multi-line object description signatures (#11011) | TLouf | 2023-05-11 | 1 | -3/+14 |
| | | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com> Co-authored-by: TLouf <loufthomas@gmail.com> | ||||
* | Remove deprecated ``make_old_id`` functions (#11360) | Adam Turner | 2023-04-27 | 1 | -16/+0 |
| | |||||
* | Fix COM812 | Adam Turner | 2023-02-18 | 1 | -3/+3 |
| | |||||
* | Add ``content_offset`` parameter to ``nested_parse_with_titles`` (#11147) | Jeremy Maitin-Shepard | 2023-02-15 | 1 | -5/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | Previously, ``nested_parse_with_titles`` always passed ``0`` as the input offset when invoking ``nested_parse``. When parsing the content of a directive, as is a common use case for ``nested_parse_with_titles``, this leads to incorrect source file/line number information, as it does not take into account the directive's ``content_offset``, which is always non-zero. This issue affects *all* object descriptions due to GH-10887. It also affects the ``sphinx.ext.ifconfig`` extension. The ``py:module`` and ``js:module`` directives employed a workaround for this issue, by wrapping the calls to ``nested_parse_with_title`` with ``switch_source_input``. That worked, but was more complicated (and likely less efficient) than necessary. This commit adds an optional ``content_offset`` parameter to ``nested_parse_with_titles``, and fixes callers to pass the appropriate content offset when needed. This commit eliminates the now-unnecessary calls to ``switch_source_input`` and instead specifies the correct ``content_offset``. | ||||
* | De-glob mypy whitelist for 'sphinx.domains.*' (#11064) | danieleades | 2023-01-02 | 1 | -4/+11 |
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -2/+2 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -18/+18 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Finer grained control over domain ToC entries (#10886) | Adam Turner | 2022-09-30 | 1 | -1/+3 |
| | | | | | - Implement `:nocontentsentry:` flag - Use `:nocontentsentry:` in docs - Add domain object table of contents configuration option | ||||
* | Restore anchor links to top of module docstring | Adam Turner | 2022-09-27 | 1 | -1/+2 |
| | |||||
* | Add contents entries for domain objects (#10807) | Adam Turner | 2022-09-13 | 1 | -4/+41 |
| | | | | | | | | | - 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.0 | Adam Turner | 2022-04-17 | 1 | -14/+0 |
| | |||||
* | Collapse single line docstrings | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | |||||
* | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -2/+2 |
| | |||||
* | Fix module docstring first line | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove module titles in docstrings | Adam Turner | 2022-02-19 | 1 | -3/+0 |
| | |||||
* | address some unused loop control variables (B007) | Daniel Eades | 2022-01-12 | 1 | -2/+2 |
| | |||||
* | A happy new year! | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| | |||||
* | js nodes, nodes.Node -> Node | Jakob Lykke Andersen | 2021-10-03 | 1 | -2/+2 |
| | |||||
* | js nodes, update CHANGES and rename variable | Jakob Lykke Andersen | 2021-10-03 | 1 | -5/+5 |
| | |||||
* | js nodes, update name rendering | Jakob Lykke Andersen | 2021-10-03 | 1 | -1/+1 |
| | |||||
* | js nodes, update prefix rendering | Jakob Lykke Andersen | 2021-10-03 | 1 | -2/+11 |
| | |||||
* | js nodes, update display_prefix | Jakob Lykke Andersen | 2021-10-03 | 1 | -7/+12 |
| | |||||
* | js, use func role for exception field | Jakob Lykke Andersen | 2021-06-03 | 1 | -1/+1 |
| | | | | The err role doesn't exist and the rest are all equivalent. | ||||
* | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2021-05-10 | 1 | -2/+2 |
| | |||||
* | refactor: Use PEP-526 based variable annotation (sphinx.domains) | Takeshi KOMIYA | 2021-03-23 | 1 | -4/+4 |
| | |||||
* | refactor: Add a type alias for the option_spec of directives; OptionSpec | Takeshi KOMIYA | 2021-03-13 | 1 | -2/+3 |
| | |||||
* | refactor: Update typehints for ObjectDescription using Generic | Takeshi KOMIYA | 2021-01-03 | 1 | -1/+1 |
| | |||||
* | A happy new year! | Takeshi KOMIYA | 2021-01-01 | 1 | -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 isort | François Freitag | 2020-11-11 | 1 | -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. | ||||
* | fix typo | Tetsuo Koyama | 2020-07-19 | 1 | -1/+1 |
| | |||||
* | Add :noindexentry: option | Jakob Lykke Andersen | 2020-07-04 | 1 | -3/+9 |
| | | | | Fixes sphinx-doc/sphinx#7052 | ||||
* | refactor: js domain: Change make_old_*_id() to methods | Takeshi KOMIYA | 2020-03-01 | 1 | -20/+18 |
| | |||||
* | js domain: Generate node_id for objects in the right way | Takeshi KOMIYA | 2020-03-01 | 1 | -26/+39 |
| | |||||
* | js domain: Show better duplication warning message | Takeshi KOMIYA | 2020-03-01 | 1 | -2/+2 |
| | |||||
* | js domain: Generate node_id for modules in the right way | Takeshi KOMIYA | 2020-03-01 | 1 | -17/+32 |
| | |||||
* | refactor: Set source_info to nodes | Takeshi KOMIYA | 2020-02-29 | 1 | -2/+1 |
| | |||||
* | Deprecate desc_signature['first'] | Takeshi KOMIYA | 2020-02-09 | 1 | -1/+0 |
| | |||||
* | A happy new year! | Takeshi KOMIYA | 2020-01-01 | 1 | -1/+1 |
| | |||||
* | Replace `a and b or c` by the more legible `b if a or c`. | Antony Lee | 2019-12-21 | 1 | -2/+2 |
| | |||||
* | refactor: Add data accessors to JavaScriptDomain | Takeshi KOMIYA | 2019-06-30 | 1 | -24/+44 |
| | |||||
* | Migrate to py3 style type annotation: sphinx.domains.javascript | Takeshi KOMIYA | 2019-06-30 | 1 | -40/+30 |
| | |||||
* | Clean up import for annotations | Takeshi KOMIYA | 2019-03-06 | 1 | -1/+0 |
| | |||||
* | Merge branch '1.8' | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
|\ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
| | | |||||
* | | Remove unnecessary encoding cookie from Python source files | Jon Dufresne | 2018-12-16 | 1 | -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 KOMIYA | 2018-12-15 | 1 | -15/+14 |
| | | |||||
* | | Fix annotations of process_link() | Takeshi KOMIYA | 2018-12-03 | 1 | -1/+1 |
| | | |||||
* | | Fix annotations for Directives (Replace N_co with nodes.Node) | Takeshi KOMIYA | 2018-12-01 | 1 | -3/+3 |
| | |