mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix dependency errors
This commit is contained in:
parent
4de4fd060a
commit
b9b982d5f0
@ -9,8 +9,6 @@
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
|
||||
from sphinxcontrib.websupport.builder import WebSupportBuilder
|
||||
|
||||
if False:
|
||||
# For type annotation
|
||||
from typing import Any, Dict # NOQA
|
||||
@ -19,7 +17,11 @@ if False:
|
||||
|
||||
def setup(app):
|
||||
# type: (Sphinx) -> Dict[unicode, Any]
|
||||
app.add_builder(WebSupportBuilder)
|
||||
try:
|
||||
from sphinxcontrib.websupport.builder import WebSupportBuilder
|
||||
app.add_builder(WebSupportBuilder)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
return {
|
||||
'version': 'builtin',
|
||||
|
@ -7,4 +7,8 @@
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
|
||||
from sphinxcontrib.websupport.utils import is_commentable # NOQA
|
||||
try:
|
||||
from sphinxcontrib.websupport.utils import is_commentable # NOQA
|
||||
except ImportError:
|
||||
def is_commentable(node):
|
||||
raise RuntimeError
|
||||
|
Loading…
Reference in New Issue
Block a user