mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Added `needs_sphinx config value and Sphinx.require_sphinx` application API function.
This commit is contained in:
@@ -269,6 +269,14 @@ the following public API:
|
||||
|
||||
.. versionadded:: 0.5
|
||||
|
||||
.. method:: Sphinx.require_sphinx(version)
|
||||
|
||||
Compare *version* (which must be a ``major.minor`` version string,
|
||||
e.g. ``'1.1'``) with the version of the running Sphinx, and abort the build
|
||||
when it is too old.
|
||||
|
||||
.. versionadded:: 1.0
|
||||
|
||||
|
||||
.. exception:: ExtensionError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user