summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix COM812Adam Turner2023-02-181-1/+1
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-4/+3
|
* Use PEP 604 typesAdam Turner2023-01-011-2/+2
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Improve static typing strictness (#10569)danieleades2022-07-181-2/+4
|
* Collapse single line docstringsAdam Turner2022-02-201-2/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Conform to PEP 257 summary line conventionsAdam Turner2022-02-201-2/+1
|
* 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
|
* Use triple quote docstrings consistentlyLouis Maddox2021-07-181-1/+1
|
* Close #8813: Show what extension caused it on errors on event handlerTakeshi KOMIYA2021-02-041-2/+9
| | | | | Show the module name of the event handler on the error inside it to let users know a hint of the error.
* 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
* Allow NoUri from 'missing-reference' handlers.Jakob Lykke Andersen2020-05-171-1/+2
| | | | Also extend documentation of 'missing-reference'.
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Migrate to py3 style type annotation: sphinx.errorsTakeshi KOMIYA2019-12-251-15/+7
|
* Fix #6855: Non-RST translated text should be parsed by the appropriate parserJames McKinney2019-12-161-0/+5
|
* refactor: move NoUri to sphinx.errorsTakeshi KOMIYA2019-03-021-0/+5
|
* 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.
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-2/+2
| | | | | | | | | | | | 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-151-2/+1
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Use super() to call parent class's methodJon Dufresne2018-11-111-2/+2
|/
* Fix AttributeError in ExtensionErrorJon Dufresne2018-09-091-0/+1
| | | | | | | | | | | | | | In Python 3, the attribute BaseException.message doesn't exist. $ python3 >>> from sphinx.errors import ExtensionError >>> e = ExtensionError('foo') >>> repr(e) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "sphinx/sphinx/errors.py", line 65, in __repr__ return '%s(%r)' % (self.__class__.__name__, self.message) AttributeError: 'ExtensionError' object has no attribute 'message'
* Handle errors on scanning documents (refs: #5114)Takeshi KOMIYA2018-07-161-0/+5
|
* Add BuildEnvironment.setup() to re-initialize (after unpickle)Takeshi KOMIYA2018-05-211-0/+5
|
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-3/+2
|\
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-3/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+3
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+3
| |
* | Merge pull request #4436 from stephenfin/directory-validationTakeshi KOMIYA2018-01-211-0/+5
|\ \ | | | | | | app: Centralize directory validation
| * | app: Centralize directory validationStephen Finucane2018-01-201-0/+5
| |/ | | | | | | | | | | | | | | | | | | This allows us to avoid duplication of code and ensure validation happens regardless of who's initializing the class. We introduce a new exception - ApplicationError - to indicate these kinds of issues. This subclasses SphinxError, meaning we don't need to modify our exception handling code. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | doc: Move sphinx.errors API docs to codeStephen Finucane2018-01-201-14/+35
|/ | | | | | | This allows us to do something like 'help(sphinx.errors)' in code. We reword the exception descriptions per Python stdlib conventions. Signed-off-by: Stephen Finucane <stephen@that.guru>
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Fix mypy violationsTakeshi KOMIYA2017-02-081-0/+10
|/
* Fix flake8 violationTakeshi KOMIYA2017-01-081-2/+0
|
* Fix Sphinx crashes on parallel build with an extension which raises ↵Takeshi KOMIYA2017-01-081-4/+3
| | | | unserializable exception
* Derive SphinxParallelError from SphinxErrorMatthias Geier2016-05-201-1/+4
|
* Obligatory copyright update.Georg Brandl2016-01-141-1/+1
|
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | Factor out parallel building into a utility class. Better error handlingGeorg Brandl2014-09-221-0/+13
|/ | | | with traceback of the parallel process saved in the error log.
* Update copyright year.Georg Brandl2014-03-011-1/+1
|
* Copyright update.Georg Brandl2013-01-011-1/+1
|