mirror of
https://github.com/django/daphne.git
synced 2025-07-10 16:02:18 +03:00
Use current channels
version when building the documentation. (#201)
Rationale: --- It may cause some confusion for the reader of the documentation about what's the most recent version of the library and if the official documentation pages are really for the 'latest' version.
This commit is contained in:
parent
08ecffe107
commit
c44de7e870
|
@ -18,7 +18,9 @@ import os
|
|||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#sys.path.insert(0, os.path.abspath('.'))
|
||||
sys.path.insert(0, os.path.abspath('..'))
|
||||
|
||||
from channels import __version__ # noqa
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
|
@ -51,9 +53,9 @@ copyright = u'2015, Andrew Godwin'
|
|||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '1.0'
|
||||
version = __version__
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '1.0'
|
||||
release = __version__
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
Loading…
Reference in New Issue
Block a user