mirror of
https://github.com/vale981/releases
synced 2025-03-05 09:41:42 -05:00
Whoops, previous commit only worked on Sphinx 1.5+
This commit is contained in:
parent
f611196bc4
commit
17d1f06065
1 changed files with 11 additions and 1 deletions
|
@ -13,8 +13,18 @@ from docutils.nodes import bullet_list
|
||||||
from sphinx.application import Sphinx # not exposed at top level
|
from sphinx.application import Sphinx # not exposed at top level
|
||||||
# NOTE: importing these from environment for backwards compat with Sphinx 1.3
|
# NOTE: importing these from environment for backwards compat with Sphinx 1.3
|
||||||
from sphinx.environment import (
|
from sphinx.environment import (
|
||||||
SphinxStandaloneReader, SphinxFileInput, SphinxDummyWriter, sphinx_domains,
|
SphinxStandaloneReader, SphinxFileInput, SphinxDummyWriter,
|
||||||
)
|
)
|
||||||
|
# sphinx_domains is only in Sphinx 1.5+, but is presumably necessary from then
|
||||||
|
# onwards.
|
||||||
|
try:
|
||||||
|
from sphinx.util.docutils import sphinx_domains
|
||||||
|
except ImportError:
|
||||||
|
# Just dummy it up.
|
||||||
|
from contextlib import contextmanager
|
||||||
|
@contextmanager
|
||||||
|
def sphinx_domains(env):
|
||||||
|
yield
|
||||||
|
|
||||||
from . import construct_releases, setup
|
from . import construct_releases, setup
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue