mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
put repo on path
allows autodoc to import jupyterhub without installing it
This commit is contained in:
@@ -66,13 +66,15 @@ author = u'Project Jupyter team'
|
|||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
# Project Jupyter uses the following to autopopulate version
|
# Project Jupyter uses the following to autopopulate version
|
||||||
_version_py = '../../jupyterhub/version.py'
|
from os.path import dirname
|
||||||
version_ns = {}
|
root = dirname(dirname(dirname(__file__)))
|
||||||
exec(compile(open(_version_py).read(), _version_py, 'exec'), version_ns)
|
sys.path.insert(0, root)
|
||||||
|
|
||||||
|
import jupyterhub
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '%i.%i' % version_ns['version_info'][:2]
|
version = '%i.%i' % jupyterhub.version_info[:2]
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = version_ns['__version__']
|
release = jupyterhub.__version__
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
Reference in New Issue
Block a user