Skip to content

Commit 3baa667

Browse files
link readme with documentation
1 parent d4cf5aa commit 3baa667

File tree

3 files changed

+21
-41
lines changed

3 files changed

+21
-41
lines changed

docs/conf.py

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@
1616
import os
1717
import shlex
1818

19+
sys.path.insert(0, os.path.abspath('..'))
20+
import watson_developer_cloud
21+
import os, shutil, glob
22+
23+
import shutil
24+
shutil.copy2('../README.md', './index.md')
25+
26+
27+
28+
from recommonmark.parser import CommonMarkParser
29+
source_parsers = {
30+
'.md': CommonMarkParser
31+
}
32+
source_suffix = ['.rst', '.md']
33+
1934
# If extensions (or modules to document with autodoc) are in another directory,
2035
# add these directories to sys.path here. If the directory is relative to the
2136
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -31,6 +46,9 @@
3146
# ones.
3247
extensions = [
3348
'sphinx.ext.autodoc',
49+
'sphinx.ext.autosummary',
50+
'sphinx.ext.doctest',
51+
'sphinx.ext.mathjax',
3452
'sphinx.ext.viewcode',
3553
]
3654

@@ -40,7 +58,7 @@
4058
# The suffix(es) of source filenames.
4159
# You can specify multiple suffix as a list of string:
4260
# source_suffix = ['.rst', '.md']
43-
source_suffix = '.rst'
61+
source_suffix = '.md'
4462

4563
# The encoding of source files.
4664
#source_encoding = 'utf-8-sig'
@@ -58,10 +76,9 @@
5876
# built documents.
5977
#
6078
# The short X.Y version.
61-
__version__ = '0.1.2'
62-
version = __version__
79+
version = watson_developer_cloud.__version__
6380
# The full version, including alpha/beta/rc tags.
64-
release = __version__
81+
release = watson_developer_cloud.__version__
6582

6683
# The language for content autogenerated by Sphinx. Refer to documentation
6784
# for a list of supported languages.
@@ -282,13 +299,3 @@
282299

283300
# If true, do not generate a @detailmenu in the "Top" node's menu.
284301
#texinfo_no_detailmenu = False
285-
286-
# The suffix of source filenames.
287-
from recommonmark.parser import CommonMarkParser
288-
289-
# The suffix of source filenames.
290-
source_suffix = ['.rst', '.md']
291-
292-
parsers = {
293-
'.md': CommonMarkParser,
294-
}

docs/includeme.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/index.rst

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)