|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | | -# Rovercode Web documentation build configuration file, created by |
| 3 | +# rovercode-web documentation build configuration file, created by |
4 | 4 | # sphinx-quickstart. |
5 | 5 | # |
6 | 6 | # This file is execfile()d with the current directory set to its containing dir. |
|
16 | 16 | import os |
17 | 17 | import sys |
18 | 18 |
|
| 19 | +import django |
| 20 | +sys.path.insert(0, os.path.abspath('..')) |
| 21 | +os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings.local' |
| 22 | +django.setup() |
| 23 | + |
19 | 24 | # If extensions (or modules to document with autodoc) are in another directory, |
20 | 25 | # add these directories to sys.path here. If the directory is relative to the |
21 | 26 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
22 | 27 | # sys.path.insert(0, os.path.abspath('.')) |
23 | 28 |
|
24 | 29 | # -- General configuration ----------------------------------------------------- |
25 | | - |
| 30 | +autoclass_content = "both" # include both class docstring and __init__ |
| 31 | +autodoc_default_flags = [ |
| 32 | + # Make sure that any autodoc declarations show the right members |
| 33 | + "members", |
| 34 | + "inherited-members", |
| 35 | + "private-members", |
| 36 | + "show-inheritance", |
| 37 | +] |
| 38 | +autosummary_generate = True |
26 | 39 | # If your documentation needs a minimal Sphinx version, state it here. |
27 | 40 | # needs_sphinx = '1.0' |
28 | 41 |
|
29 | 42 | # Add any Sphinx extension module names here, as strings. They can be extensions |
30 | 43 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
31 | | -extensions = [] |
| 44 | +extensions = [ |
| 45 | + 'sphinx.ext.autodoc', |
| 46 | + 'sphinx.ext.autosummary', |
| 47 | +] |
32 | 48 |
|
33 | 49 | # Add any paths that contain templates here, relative to this directory. |
34 | 50 | templates_path = ['_templates'] |
|
43 | 59 | master_doc = 'index' |
44 | 60 |
|
45 | 61 | # General information about the project. |
46 | | -project = 'Rovercode Web' |
47 | | -copyright = """2017, rovercode.com""" |
| 62 | +project = 'rovercode-web' |
| 63 | +copyright = """2017, Brady L. Hurlburt and other rovercode.com contributors""" |
48 | 64 |
|
49 | 65 | # The version info for the project you're documenting, acts as replacement for |
50 | 66 | # |version| and |release|, also used in various other places throughout the |
51 | 67 | # built documents. |
52 | 68 | # |
53 | 69 | # The short X.Y version. |
54 | | -version = '0.1' |
| 70 | +version = '0.4' |
55 | 71 | # The full version, including alpha/beta/rc tags. |
56 | | -release = '0.1' |
| 72 | +release = '0.4.0' |
57 | 73 |
|
58 | 74 | # The language for content autogenerated by Sphinx. Refer to documentation |
59 | 75 | # for a list of supported languages. |
|
94 | 110 |
|
95 | 111 | # The theme to use for HTML and HTML Help pages. See the documentation for |
96 | 112 | # a list of builtin themes. |
97 | | -html_theme = 'default' |
| 113 | +html_theme = 'sphinx_rtd_theme' |
98 | 114 |
|
99 | 115 | # Theme options are theme-specific and customize the look and feel of a theme |
100 | 116 | # further. For a list of options available for each theme, see the |
|
188 | 204 | latex_documents = [ |
189 | 205 | ('index', |
190 | 206 | 'rovercode_web.tex', |
191 | | - 'Rovercode Web Documentation', |
| 207 | + 'rovercode-web Documentation', |
192 | 208 | """rovercode.com""", 'manual'), |
193 | 209 | ] |
194 | 210 |
|
|
218 | 234 | # One entry per manual page. List of tuples |
219 | 235 | # (source start file, name, description, authors, manual section). |
220 | 236 | man_pages = [ |
221 | | - ('index', 'rovercode_web', 'Rovercode Web Documentation', |
| 237 | + ('index', 'rovercode_web', 'rovercode-web Documentation', |
222 | 238 | ["""rovercode.com"""], 1) |
223 | 239 | ] |
224 | 240 |
|
|
232 | 248 | # (source start file, target name, title, author, |
233 | 249 | # dir menu entry, description, category) |
234 | 250 | texinfo_documents = [ |
235 | | - ('index', 'rovercode_web', 'Rovercode Web Documentation', |
236 | | - """rovercode.com""", 'Rovercode Web', |
| 251 | + ('index', 'rovercode_web', 'rovercode-web Documentation', |
| 252 | + """rovercode.com""", 'rovercode-web', |
237 | 253 | """Block-based programming for educational robots.""", 'Miscellaneous'), |
238 | 254 | ] |
239 | 255 |
|
|
0 commit comments