|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# |
3 | | -# Watson Developer Cloud Python SDK documentation build configuration file, created by |
4 | | -# sphinx-quickstart on Fri Oct 9 00:12:27 2015. |
5 | | -# |
6 | | -# This file is execfile()d with the current directory set to its |
7 | | -# containing dir. |
8 | | -# |
9 | | -# Note that not all possible configuration values are present in this |
10 | | -# autogenerated file. |
11 | | -# |
12 | | -# All configuration values have a default; values that are commented out |
13 | | -# serve to show the default. |
14 | 2 |
|
15 | 3 | import sys |
16 | 4 | import os |
17 | | -import shlex |
18 | | - |
19 | | -sys.path.insert(0, os.path.abspath('..')) |
20 | 5 | import watson_developer_cloud |
21 | | -import os, shutil, glob |
22 | | - |
23 | | -import shutil |
24 | | -shutil.copy2('../README.md', './index.md') |
25 | | - |
26 | 6 |
|
| 7 | +sys.path.insert(0, os.path.abspath('../watson_developer_cloud/')) |
27 | 8 |
|
28 | 9 | from recommonmark.parser import CommonMarkParser |
29 | 10 | source_parsers = { |
30 | 11 | '.md': CommonMarkParser |
31 | 12 | } |
32 | | -source_suffix = ['.rst', '.md'] |
33 | | - |
34 | | -# If extensions (or modules to document with autodoc) are in another directory, |
35 | | -# add these directories to sys.path here. If the directory is relative to the |
36 | | -# documentation root, use os.path.abspath to make it absolute, like shown here. |
37 | | -#sys.path.insert(0, os.path.abspath('.')) |
38 | 13 |
|
39 | 14 | # -- General configuration ------------------------------------------------ |
40 | 15 |
|
|
46 | 21 | # ones. |
47 | 22 | extensions = [ |
48 | 23 | 'sphinx.ext.autodoc', |
49 | | - 'sphinx.ext.autosummary', |
50 | | - 'sphinx.ext.doctest', |
51 | | - 'sphinx.ext.mathjax', |
| 24 | + 'sphinx.ext.intersphinx', |
| 25 | + 'sphinx.ext.ifconfig', |
52 | 26 | 'sphinx.ext.viewcode', |
| 27 | + 'sphinx.ext.napoleon' |
53 | 28 | ] |
54 | 29 |
|
| 30 | +autodoc_default_flags = ['members', 'undoc-members', 'no-show-inheritance'] |
| 31 | +autodoc_member_order = 'bysource' |
| 32 | + |
55 | 33 | # Add any paths that contain templates here, relative to this directory. |
56 | 34 | templates_path = ['_templates'] |
57 | 35 |
|
58 | 36 | # The suffix(es) of source filenames. |
59 | 37 | # You can specify multiple suffix as a list of string: |
60 | | -# source_suffix = ['.rst', '.md'] |
61 | | -source_suffix = '.md' |
62 | | - |
63 | | -# The encoding of source files. |
64 | | -#source_encoding = 'utf-8-sig' |
| 38 | +source_suffix = ['.rst', '.md'] |
65 | 39 |
|
66 | 40 | # The master toctree document. |
67 | 41 | master_doc = 'index' |
|
71 | 45 | copyright = u'2015, IBM Corp' |
72 | 46 | author = u'IBM Corp' |
73 | 47 |
|
74 | | -# The version info for the project you're documenting, acts as replacement for |
75 | | -# |version| and |release|, also used in various other places throughout the |
76 | | -# built documents. |
77 | | -# |
78 | | -# The short X.Y version. |
79 | 48 | version = watson_developer_cloud.__version__ |
80 | | -# The full version, including alpha/beta/rc tags. |
81 | 49 | release = watson_developer_cloud.__version__ |
82 | 50 |
|
83 | 51 | # The language for content autogenerated by Sphinx. Refer to documentation |
84 | 52 | # for a list of supported languages. |
85 | | -# |
86 | | -# This is also used if you do content translation via gettext catalogs. |
87 | | -# Usually you set "language" from the command line for these cases. |
88 | 53 | language = None |
89 | 54 |
|
90 | | -# There are two options for replacing |today|: either, you set today to some |
91 | | -# non-false value, then it is used: |
92 | | -#today = '' |
93 | | -# Else, today_fmt is used as the format for a strftime call. |
94 | | -#today_fmt = '%B %d, %Y' |
95 | | - |
96 | 55 | # List of patterns, relative to source directory, that match files and |
97 | 56 | # directories to ignore when looking for source files. |
98 | | -exclude_patterns = ['_build'] |
99 | | - |
100 | | -# The reST default role (used for this markup: `text`) to use for all |
101 | | -# documents. |
102 | | -#default_role = None |
| 57 | +exclude_patterns = ['_build', '_templates', |
| 58 | + 'apis/modules.rst','apis/watson_developer_cloud.rst', |
| 59 | + 'apis/watson_developer_cloud.version.rst', |
| 60 | + 'apis/watson_developer_cloud.watson_developer_cloud_service.rst'] |
103 | 61 |
|
104 | 62 | # If true, '()' will be appended to :func: etc. cross-reference text. |
105 | | -#add_function_parentheses = True |
| 63 | +add_function_parentheses = False |
106 | 64 |
|
107 | 65 | # If true, the current module name will be prepended to all description |
108 | 66 | # unit titles (such as .. function::). |
109 | | -#add_module_names = True |
| 67 | +add_module_names = False |
110 | 68 |
|
111 | 69 | # If true, sectionauthor and moduleauthor directives will be shown in the |
112 | 70 | # output. They are ignored by default. |
|
116 | 74 | pygments_style = 'sphinx' |
117 | 75 |
|
118 | 76 | # A list of ignored prefixes for module index sorting. |
119 | | -#modindex_common_prefix = [] |
| 77 | +modindex_common_prefix = ['watson_developer_cloud.'] |
120 | 78 |
|
121 | 79 | # If true, keep warnings as "system message" paragraphs in the built documents. |
122 | 80 | #keep_warnings = False |
|
127 | 85 |
|
128 | 86 | # -- Options for HTML output ---------------------------------------------- |
129 | 87 |
|
| 88 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 89 | +# a list of builtin themes. |
| 90 | +html_theme = 'alabaster' |
| 91 | + |
130 | 92 | # Theme options are theme-specific and customize the look and feel of a theme |
131 | 93 | # further. For a list of options available for each theme, see the |
132 | 94 | # documentation. |
133 | | -#html_theme_options = {} |
| 95 | +html_theme_options = { |
| 96 | + 'show_powered_by': False, |
| 97 | + 'github_user': 'watson-developer-cloud', |
| 98 | + 'github_repo': 'python-sdk', |
| 99 | + 'github_banner': False, |
| 100 | + 'show_related': False |
| 101 | +} |
134 | 102 |
|
135 | 103 | # Add any paths that contain custom themes here, relative to this directory. |
136 | 104 | #html_theme_path = [] |
|
146 | 114 | # of the sidebar. |
147 | 115 | #html_logo = None |
148 | 116 |
|
149 | | -# The name of an image file (within the static path) to use as favicon of the |
150 | | -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 117 | +# The name of an image file (relative to this directory) to use as a favicon of |
| 118 | +# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
151 | 119 | # pixels large. |
152 | | -#html_favicon = None |
| 120 | +html_favicon = '_static/favicon.ico' |
153 | 121 |
|
154 | 122 | # Add any paths that contain custom static files (such as style sheets) here, |
155 | 123 | # relative to this directory. They are copied after the builtin static files, |
|
163 | 131 |
|
164 | 132 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
165 | 133 | # using the given strftime format. |
166 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 134 | +html_last_updated_fmt = '%b %d, %Y' |
167 | 135 |
|
168 | 136 | # If true, SmartyPants will be used to convert quotes and dashes to |
169 | 137 | # typographically correct entities. |
170 | 138 | #html_use_smartypants = True |
171 | 139 |
|
172 | 140 | # Custom sidebar templates, maps document names to template names. |
173 | | -#html_sidebars = {} |
| 141 | +html_sidebars = { |
| 142 | + '**': ['localtoc.html','sidebarintro.html', 'relations.html', 'sourcelink.html', 'searchbox.html'] |
| 143 | +} |
174 | 144 |
|
175 | 145 | # Additional templates that should be rendered to pages, maps page names to |
176 | 146 | # template names. |
177 | 147 | #html_additional_pages = {} |
178 | 148 |
|
179 | 149 | # If false, no module index is generated. |
180 | | -#html_domain_indices = True |
| 150 | +html_domain_indices = True |
181 | 151 |
|
182 | 152 | # If false, no index is generated. |
183 | | -#html_use_index = True |
| 153 | +html_use_index = True |
184 | 154 |
|
185 | 155 | # If true, the index is split into individual pages for each letter. |
186 | 156 | #html_split_index = False |
187 | 157 |
|
188 | 158 | # If true, links to the reST sources are added to the pages. |
189 | | -#html_show_sourcelink = True |
| 159 | +html_show_sourcelink = False |
190 | 160 |
|
191 | 161 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
192 | | -#html_show_sphinx = True |
| 162 | +html_show_sphinx = False |
193 | 163 |
|
194 | 164 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
195 | | -#html_show_copyright = True |
| 165 | +html_show_copyright = False |
196 | 166 |
|
197 | 167 | # If true, an OpenSearch description file will be output, and all pages will |
198 | 168 | # contain a <link> tag referring to it. The value of this option must be the |
|
239 | 209 | # (source start file, target name, title, |
240 | 210 | # author, documentclass [howto, manual, or own class]). |
241 | 211 | latex_documents = [ |
242 | | - (master_doc, 'WatsonDeveloperCloudPythonSDK.tex', u'Watson Developer Cloud Python SDK Documentation', |
243 | | - u'Jeff Stylos', 'manual'), |
| 212 | + (master_doc, 'WatsonDeveloperCloudPythonSDK.tex', u'Watson Developer Cloud Python SDK Documentation', |
| 213 | + u'IBM Corp.', 'manual'), |
244 | 214 | ] |
245 | 215 |
|
246 | 216 | # The name of an image file (relative to this directory) to place at the top of |
|
283 | 253 | # (source start file, target name, title, author, |
284 | 254 | # dir menu entry, description, category) |
285 | 255 | texinfo_documents = [ |
286 | | - (master_doc, 'WatsonDeveloperCloudPythonSDK', u'Watson Developer Cloud Python SDK Documentation', |
287 | | - author, 'WatsonDeveloperCloudPythonSDK', 'One line description of project.', |
288 | | - 'Miscellaneous'), |
| 256 | + (master_doc, 'WatsonDeveloperCloudPythonSDK', u'Watson Developer Cloud Python SDK Documentation', |
| 257 | + author, 'WatsonDeveloperCloudPythonSDK', 'Python client library to quickly get started with the various Watson Developer Cloud services.', |
| 258 | + 'Miscellaneous'), |
289 | 259 | ] |
290 | 260 |
|
291 | 261 | # Documents to append as an appendix to all manuals. |
|
299 | 269 |
|
300 | 270 | # If true, do not generate a @detailmenu in the "Top" node's menu. |
301 | 271 | #texinfo_no_detailmenu = False |
| 272 | + |
| 273 | + |
| 274 | +# Example configuration for intersphinx: refer to the Python standard library. |
| 275 | +intersphinx_mapping = {'https://docs.python.org/': None} |
0 commit comments