File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1414
1515import sys
1616import os
17+ import sphinx
18+ from sphinx .errors import VersionRequirementError
1719
1820# If extensions (or modules to document with autodoc) are in another directory,
1921# add these directories to sys.path here. If the directory is relative to the
2325# -- General configuration ------------------------------------------------
2426
2527# If your documentation needs a minimal Sphinx version, state it here.
26- #needs_sphinx = '1.0'
28+ needs_sphinx = '1.4.3'
29+ if needs_sphinx > sphinx .__display_version__ :
30+ message = 'This project needs at least Sphinx v%s' % needs_sphinx
31+ raise VersionRequirementError (message )
2732
2833# Add any Sphinx extension module names here, as strings. They can be
2934# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
You can’t perform that action at this time.
0 commit comments