mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9719 from tk0miya/9718_intersphinx
Fix #9718: intersphinx: Failed to invoke sphinx.ext.intersphinx module
This commit is contained in:
commit
56f97d71a2
@ -13,8 +13,6 @@ from typing import TYPE_CHECKING, Any, Dict, List, Sequence
|
||||
from docutils import nodes
|
||||
from docutils.nodes import Element
|
||||
|
||||
from sphinx.util import docutils
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from sphinx.application import Sphinx
|
||||
|
||||
@ -530,6 +528,8 @@ class manpage(nodes.Inline, nodes.FixedTextElement):
|
||||
|
||||
|
||||
def setup(app: "Sphinx") -> Dict[str, Any]:
|
||||
from sphinx.util import docutils # lazy import
|
||||
|
||||
app.add_node(toctree)
|
||||
|
||||
app.add_node(desc)
|
||||
|
Loading…
Reference in New Issue
Block a user