mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
moved NullSearchException to sphinx.websupport.errors
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
"""
|
||||
|
||||
__all__ = ['DocumentNotFoundError', 'SrcdirNotSpecifiedError',
|
||||
'UserNotAuthorizedError', 'CommentNotAllowedError']
|
||||
'UserNotAuthorizedError', 'CommentNotAllowedError',
|
||||
'NullSearchException']
|
||||
|
||||
class DocumentNotFoundError(Exception):
|
||||
pass
|
||||
@@ -26,3 +27,7 @@ class UserNotAuthorizedError(Exception):
|
||||
|
||||
class CommentNotAllowedError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class NullSearchException(Exception):
|
||||
pass
|
||||
|
||||
@@ -10,11 +10,12 @@
|
||||
"""
|
||||
|
||||
from sphinx.websupport.search import BaseSearch
|
||||
|
||||
class NullSearchException(Exception):
|
||||
pass
|
||||
from sphinx.websupport.errors import *
|
||||
|
||||
class NullSearch(BaseSearch):
|
||||
"""A search adapter that does nothing. Used when no search adapter
|
||||
is specified.
|
||||
"""
|
||||
def feed(self, pagename, title, doctree):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user