Skip to content

Commit

Permalink
[fix] add version to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Aug 8, 2017
1 parent e525389 commit cff47b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/source/conf.py
Expand Up @@ -19,13 +19,17 @@
#
import os
import sys
from importlib.machinery import SourceFileLoader
from datetime import datetime

sys.path.insert(0, os.path.abspath(os.path.dirname('__file__')))

PROJECT_PATH = os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', '..'))
DOC_PATH = os.path.join(PROJECT_PATH, 'docs')

version_module = SourceFileLoader("version", os.path.join(PROJECT_PATH, "wsrpc_aiohttp", "version.py")).load_module()


autoclass_content = 'both'

# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -71,9 +75,9 @@
# built documents.
#
# The short X.Y version.
version = '0.9.0'
version = ".".join(map(str, version_module.version_info[0:1]))
# The full version, including alpha/beta/rc tags.
release = '0.9.0'
release = ".".join(map(str, version_module.version_info))

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit cff47b6

Please sign in to comment.