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 1515import sys
1616import os
1717import shlex
18+ import sphinx
19+ from sphinx .errors import VersionRequirementError
1820
1921# If extensions (or modules to document with autodoc) are in another directory,
2022# add these directories to sys.path here. If the directory is relative to the
2426# -- General configuration ------------------------------------------------
2527
2628# If your documentation needs a minimal Sphinx version, state it here.
27- #needs_sphinx = '1.0'
29+ needs_sphinx = '1.4'
30+ if needs_sphinx > sphinx .__display_version__ :
31+ message = 'This project needs at least Sphinx v%s' % needs_sphinx
32+ raise VersionRequirementError (message )
2833
2934# Add any Sphinx extension module names here, as strings. They can be
3035# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
You can’t perform that action at this time.
0 commit comments