Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master-20180807-01-rtd'
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 7, 2018
2 parents 1f4fd46 + 2c99f6c commit 1abcd87
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,23 @@
copyright = u'2018, Tai Sakuma'
author = u'Tai Sakuma'

import alphatwirl
version = '.'.join(alphatwirl.__version__.split('.')[0:2])
##__________________________________________________________________||
# import alphatwirl/_version.py without importing alphatwirl
path = os.path.dirname(os.path.abspath('.'))
path = os.path.join(path, 'alphatwirl')
sys.path.insert(0, path)
del path
from _version import get_versions
sys.path.pop()

version = '.'.join(get_versions()['version'].split('.')[0:2])
# e.g., '0.11'

release = '.'.join(alphatwirl.__version__.split('+')[0:1])
release = '.'.join(get_versions()['version'].split('+')[0:1])
# e.g., '0.11.0.dev'

##__________________________________________________________________||

language = None

exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
Expand All @@ -51,7 +61,7 @@

todo_include_todos = True

autodoc_mock_imports = ['ROOT']
autodoc_mock_imports = ['numpy', 'ROOT']

##__________________________________________________________________||
html_theme = "sphinx_rtd_theme"
Expand Down

0 comments on commit 1abcd87

Please sign in to comment.