|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 | # |
4 | | -# piex documentation build configuration file, created by |
| 4 | +# PiEx documentation build configuration file, created by |
5 | 5 | # sphinx-quickstart on Fri Jun 9 13:47:02 2017. |
6 | 6 | # |
7 | 7 | # This file is execfile()d with the current directory set to its |
|
17 | 17 | # directory, add these directories to sys.path here. If the directory is |
18 | 18 | # relative to the documentation root, use os.path.abspath to make it |
19 | 19 | # absolute, like shown here. |
20 | | -# |
21 | | -import os |
22 | | -import sys |
23 | 20 |
|
24 | 21 | import sphinx_rtd_theme # For read the docs theme |
25 | 22 |
|
26 | | -sys.path.insert(0, os.path.abspath('..')) |
27 | | - |
28 | 23 | import piex |
29 | 24 |
|
30 | 25 | # -- General configuration --------------------------------------------- |
|
54 | 49 | master_doc = 'index' |
55 | 50 |
|
56 | 51 | # General information about the project. |
57 | | -project = u'D3M Pipeline Explorer' |
58 | | -copyright = u'2018, MIT Data To AI Lab' |
59 | | -author = u'MIT Data To AI Lab' |
| 52 | +project = 'PiEx' |
| 53 | +slug = 'piex' |
| 54 | +title = project + ' Documentation', |
| 55 | +copyright = '2018, MIT Data To AI Lab' |
| 56 | +author = 'MIT Data To AI Lab' |
| 57 | +description = 'Pipeline Explorer.' |
| 58 | +user = 'HDI-Project' |
60 | 59 |
|
61 | 60 | # The version info for the project you're documenting, acts as replacement |
62 | 61 | # for |version| and |release|, also used in various other places throughout |
|
77 | 76 | # List of patterns, relative to source directory, that match files and |
78 | 77 | # directories to ignore when looking for source files. |
79 | 78 | # This patterns also effect to html_static_path and html_extra_path |
80 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 79 | +exclude_patterns = ['.py', '_build', 'Thumbs.db', '.DS_Store', '**.ipynb_checkpoints'] |
81 | 80 |
|
82 | 81 | # The name of the Pygments (syntax highlighting) style to use. |
83 | 82 | pygments_style = 'sphinx' |
84 | 83 |
|
85 | 84 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
86 | 85 | todo_include_todos = False |
87 | 86 |
|
88 | | - |
89 | 87 | # -- Options for HTML output ------------------------------------------- |
90 | 88 |
|
91 | 89 | # The theme to use for HTML and HTML Help pages. See the documentation for |
|
97 | 95 | # Readthedocs additions |
98 | 96 | html_context = { |
99 | 97 | 'display_github': True, |
100 | | - 'github_user': 'HDI-Project', |
101 | | - 'github_repo': 'piex', |
| 98 | + 'github_user': user, |
| 99 | + 'github_repo': project, |
102 | 100 | 'github_version': 'master', |
103 | 101 | 'conf_py_path': '/docs/', |
104 | 102 | } |
|
114 | 112 | # Add any paths that contain custom static files (such as style sheets) here, |
115 | 113 | # relative to this directory. They are copied after the builtin static files, |
116 | 114 | # so a file named "default.css" will overwrite the builtin "default.css". |
117 | | -html_static_path = ['_static'] |
| 115 | +# html_static_path = ['_static'] |
| 116 | + |
| 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 |
| 119 | +# pixels large. |
| 120 | +# html_favicon = 'images/favicon.ico' |
118 | 121 |
|
| 122 | +# If given, this must be the name of an image file (path relative to the |
| 123 | +# configuration directory) that is the logo of the docs. It is placed at |
| 124 | +# the top of the sidebar; its width should therefore not exceed 200 pixels. |
| 125 | +# html_logo = 'images/dai-logo.png' |
119 | 126 |
|
120 | 127 | # -- Options for HTMLHelp output --------------------------------------- |
121 | 128 |
|
122 | 129 | # Output file base name for HTML help builder. |
123 | | -htmlhelp_basename = 'piexdoc' |
| 130 | +htmlhelp_basename = slug + 'doc' |
124 | 131 |
|
125 | 132 |
|
126 | 133 | # -- Options for LaTeX output ------------------------------------------ |
|
146 | 153 | # Grouping the document tree into LaTeX files. List of tuples |
147 | 154 | # (source start file, target name, title, author, documentclass |
148 | 155 | # [howto, manual, or own class]). |
149 | | -latex_documents = [ |
150 | | - (master_doc, 'piex.tex', |
151 | | - u'D3M Pipeline Explorer Documentation', |
152 | | - u'MIT Data To AI Lab', 'manual'), |
153 | | -] |
| 156 | +latex_documents = [( |
| 157 | + master_doc, |
| 158 | + slug + '.tex', |
| 159 | + title, |
| 160 | + author, |
| 161 | + 'manual' |
| 162 | +)] |
154 | 163 |
|
155 | 164 |
|
156 | 165 | # -- Options for manual page output ------------------------------------ |
157 | 166 |
|
158 | 167 | # One entry per manual page. List of tuples |
159 | 168 | # (source start file, name, description, authors, manual section). |
160 | | -man_pages = [ |
161 | | - (master_doc, 'piex', |
162 | | - u'D3M Pipeline Explorer Documentation', |
163 | | - [author], 1) |
164 | | -] |
| 169 | +man_pages = [( |
| 170 | + master_doc, |
| 171 | + slug, |
| 172 | + title, |
| 173 | + [author], |
| 174 | + 1 |
| 175 | +)] |
165 | 176 |
|
166 | 177 |
|
167 | 178 | # -- Options for Texinfo output ---------------------------------------- |
168 | 179 |
|
169 | 180 | # Grouping the document tree into Texinfo files. List of tuples |
170 | 181 | # (source start file, target name, title, author, |
171 | 182 | # dir menu entry, description, category) |
172 | | -texinfo_documents = [ |
173 | | - (master_doc, 'piex', |
174 | | - u'D3M Pipeline Explorer Documentation', |
175 | | - author, |
176 | | - 'piex', |
177 | | - 'One line description of project.', |
178 | | - 'Miscellaneous'), |
179 | | -] |
| 183 | +texinfo_documents = [( |
| 184 | + master_doc, |
| 185 | + slug, |
| 186 | + title, |
| 187 | + author, |
| 188 | + slug, |
| 189 | + description, |
| 190 | + 'Miscellaneous' |
| 191 | +)] |
0 commit comments