summaryrefslogtreecommitdiff
path: root/sphinx/events.py
Commit message (Collapse)AuthorAgeFilesLines
* Run pyupgrade (#11070)Adam Turner2023-01-021-1/+1
|
* Use PEP 595 typesAdam Turner2023-01-011-4/+4
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Make `-P` (pdb) work better with exceptions triggered from eventsJeremy Maitin-Shepard2022-07-041-0/+3
| | | | | | | | | | | | Previously, if an exception was raised from an event listener, and the `-P` option was specified, the debugger would be started not for the original error but for the `ExtensionError` wrapping it that was raised by `EventManager.emit`. That made it difficult to debug the error. With this change, when `-P` is specified, wrapping of errors in `ExtensionError` is disabled, which allows pdb to debug the original error.
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Fix module docstring indentationAdam Turner2022-02-201-3/+3
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* refactor: Use PEP-526 based variable annotationTakeshi KOMIYA2021-04-081-1/+1
|
* Merge branch '3.x'Takeshi KOMIYA2021-02-071-1/+3
|\
| * Close #8813: Show what extension caused it on errors on event handlerTakeshi KOMIYA2021-02-041-1/+3
| | | | | | | | | | Show the module name of the event handler on the error inside it to let users know a hint of the error.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-011-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
* | Merge branch '3.x'Takeshi KOMIYA2020-12-141-2/+0
|\ \ | |/
| * refactor: Register events for HTML builders in the HTML builder moduleTakeshi KOMIYA2020-11-291-2/+0
| |
| * Sort imports with isortFrançois Freitag2020-11-111-0/+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.
* | Do isortTakeshi KOMIYA2020-11-121-2/+1
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-11-051-0/+1
|\ \ | |/
| * Fix #6914: Emit a detailed warning when failed to resolve :ref:Takeshi KOMIYA2020-11-031-0/+1
| | | | | | | | | | | | | | | | | | To be clear the ambiguous warning for missing-reference :ref:, this separates the warning to missing-label and missing-caption. To emit a warning dynamically, this also adds a new event: `warn-missing-reference` to customize warning messages via event handlers.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-1/+1
|\ \ | |/
| * Propagate original extension errorDavid Stansby2020-07-111-1/+1
| |
* | refactor: namedtuples with PEP 526Takeshi KOMIYA2020-07-161-3/+5
| | | | | | | | | | Apply PEP 526 based variable annotation style to namedtuples. It is available since python 3.6.
* | Merge branch '3.x'Takeshi KOMIYA2020-06-041-4/+9
|\ \ | |/
| * Add allowed_exceptions parameter to Sphinx.emit() (refs: #7683)Takeshi KOMIYA2020-05-171-4/+10
| | | | | | | | It allows handlers to raise specified exceptions.
* | Merge branch '3.x'Takeshi KOMIYA2020-05-171-2/+8
|\ \ | |/
| * Fix: handle errors on event handlers (refs: #7629)Takeshi KOMIYA2020-05-161-6/+12
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-11/+2
| |
* | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-2/+2
|/
* Support priority of event handlersTakeshi KOMIYA2020-01-161-10/+18
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-2/+2
|
* Migrate to py3 style type annotation: sphinx.eventsTakeshi KOMIYA2019-12-251-14/+9
|
* refactor: Make app argument for EventManager optional to keep compatibilityTakeshi KOMIYA2019-04-161-2/+11
|
* Make EventManager portableTakeshi KOMIYA2019-04-161-3/+25
| | | | | | So far, we need to bypass application object for modules to emit a event. This make EventManager portable and easy to pass event emitter. This brings modules less coupled with application object.
* 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-7/+6
| |
* | Remove print_function featureTakeshi KOMIYA2018-12-151-1/+0
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Replace all six.itervalues()/.iteritems() with .values()/.items()Jon Dufresne2018-09-231-4/+2
| |
* | 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.
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Add config-inited eventTakeshi KOMIYA2018-01-201-0/+1
|/
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Fix #3833: command line messages are translated unintentionallyTakeshi KOMIYA2017-06-251-3/+3
|