Added `needs_sphinx config value and Sphinx.require_sphinx` application API function.

This commit is contained in:
Georg Brandl
2010-01-17 18:24:35 +01:00
parent 31c5290fb8
commit 5a9a454631
8 changed files with 55 additions and 3 deletions

View File

@@ -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