Skip to content

Commit

Permalink
Read the Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sublee committed May 20, 2019
1 parent 0a972c7 commit 5bfeef2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
author = 'Kakao Brain'

# The full version, including alpha/beta/rc tags
release = __import__('torchgpipe').__version__
about = {}
with open('../torchgpipe/__version__.py') as f:
exec(f.read(), about)
release = about['__version__']
del about

master_doc = 'index'


# -- General configuration ---------------------------------------------------
Expand All @@ -47,6 +53,8 @@
extensions.append('sphinx.ext.intersphinx')
intersphinx_mapping = {'torch': ('https://pytorch.org/docs/stable/', None)}

# Mock up 'torch' to make sure build on Read the Docs.
autodoc_mock_imports = ['torch']

# -- Options for HTML output -------------------------------------------------

Expand Down

0 comments on commit 5bfeef2

Please sign in to comment.