summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* New year update.Georg Brandl2011-01-041-1/+1
|
* merge with trunkGeorg Brandl2010-01-171-0/+4
|\
| * Added ``needs_sphinx`` config value and ``Sphinx.require_sphinx`` ↵Georg Brandl2010-01-171-0/+4
| | | | | | | | application API function.
* | merge with trunkGeorg Brandl2010-01-171-0/+4
|\ \ | |/
| * Improve the handling of non-Unicode strings in the configuration:Georg Brandl2010-01-121-0/+4
| | | | | | | | | | warn about non-ascii bytestrings, and give nicer messages if unicode errors occur.
* | Move getting module source to util.Georg Brandl2010-01-131-0/+8
|/
* Happy new year!Georg Brandl2010-01-011-1/+1
|
* #155: Fix Python 2.4 compatibility: exceptions are old-style classes there.Georg Brandl2009-05-101-2/+2
|
* #109: fix circular import problems by moving exceptions into their own module.Georg Brandl2009-02-241-0/+48