|
14 | 14 | import sys, os
|
15 | 15 | import django
|
16 | 16 | from django.conf import settings
|
| 17 | + |
17 | 18 | # If extensions (or modules to document with autodoc) are in another directory,
|
18 | 19 | # add these directories to sys.path here. If the directory is relative to the
|
19 | 20 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
20 |
| -#sys.path.insert(0, os.path.abspath('.')) |
| 21 | +# sys.path.insert(0, os.path.abspath('.')) |
21 | 22 | settings.configure(DEBUG=True)
|
22 | 23 | django.setup()
|
23 | 24 |
|
|
30 | 31 | # -- General configuration -----------------------------------------------------
|
31 | 32 |
|
32 | 33 | # If your documentation needs a minimal Sphinx version, state it here.
|
33 |
| -#needs_sphinx = '1.0' |
| 34 | +# needs_sphinx = '1.0' |
34 | 35 |
|
35 | 36 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
36 | 37 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
37 |
| -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] |
| 38 | +extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"] |
38 | 39 |
|
39 | 40 | # Add any paths that contain templates here, relative to this directory.
|
40 |
| -templates_path = ['_templates'] |
| 41 | +templates_path = ["_templates"] |
41 | 42 |
|
42 | 43 | # The suffix of source filenames.
|
43 |
| -source_suffix = '.rst' |
| 44 | +source_suffix = ".rst" |
44 | 45 |
|
45 | 46 | # The encoding of source files.
|
46 |
| -#source_encoding = 'utf-8-sig' |
| 47 | +# source_encoding = 'utf-8-sig' |
47 | 48 |
|
48 | 49 | # The master toctree document.
|
49 |
| -master_doc = 'index' |
| 50 | +master_doc = "index" |
50 | 51 |
|
51 | 52 | # General information about the project.
|
52 |
| -project = u'django-dynamic-preferences' |
53 |
| -copyright = u'2014, Agate Blue' |
| 53 | +project = u"django-dynamic-preferences" |
| 54 | +copyright = u"2014, Agate Blue" |
54 | 55 |
|
55 | 56 | # The version info for the project you're documenting, acts as replacement for
|
56 | 57 | # |version| and |release|, also used in various other places throughout the
|
|
63 | 64 |
|
64 | 65 | # The language for content autogenerated by Sphinx. Refer to documentation
|
65 | 66 | # for a list of supported languages.
|
66 |
| -#language = None |
| 67 | +# language = None |
67 | 68 |
|
68 | 69 | # There are two options for replacing |today|: either, you set today to some
|
69 | 70 | # non-false value, then it is used:
|
70 |
| -#today = '' |
| 71 | +# today = '' |
71 | 72 | # Else, today_fmt is used as the format for a strftime call.
|
72 |
| -#today_fmt = '%B %d, %Y' |
| 73 | +# today_fmt = '%B %d, %Y' |
73 | 74 |
|
74 | 75 | # List of patterns, relative to source directory, that match files and
|
75 | 76 | # directories to ignore when looking for source files.
|
76 |
| -exclude_patterns = ['_build'] |
| 77 | +exclude_patterns = ["_build"] |
77 | 78 |
|
78 | 79 | # The reST default role (used for this markup: `text`) to use for all documents.
|
79 |
| -#default_role = None |
| 80 | +# default_role = None |
80 | 81 |
|
81 | 82 | # If true, '()' will be appended to :func: etc. cross-reference text.
|
82 |
| -#add_function_parentheses = True |
| 83 | +# add_function_parentheses = True |
83 | 84 |
|
84 | 85 | # If true, the current module name will be prepended to all description
|
85 | 86 | # unit titles (such as .. function::).
|
86 |
| -#add_module_names = True |
| 87 | +# add_module_names = True |
87 | 88 |
|
88 | 89 | # If true, sectionauthor and moduleauthor directives will be shown in the
|
89 | 90 | # output. They are ignored by default.
|
90 |
| -#show_authors = False |
| 91 | +# show_authors = False |
91 | 92 |
|
92 | 93 | # The name of the Pygments (syntax highlighting) style to use.
|
93 |
| -pygments_style = 'sphinx' |
| 94 | +pygments_style = "sphinx" |
94 | 95 |
|
95 | 96 | # A list of ignored prefixes for module index sorting.
|
96 |
| -#modindex_common_prefix = [] |
| 97 | +# modindex_common_prefix = [] |
97 | 98 |
|
98 | 99 | # If true, keep warnings as "system message" paragraphs in the built documents.
|
99 |
| -#keep_warnings = False |
| 100 | +# keep_warnings = False |
100 | 101 |
|
101 | 102 |
|
102 | 103 | # -- Options for HTML output ---------------------------------------------------
|
103 | 104 |
|
104 | 105 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
105 | 106 | # a list of builtin themes.
|
106 |
| -html_theme = 'default' |
| 107 | +html_theme = "default" |
107 | 108 |
|
108 | 109 | # Theme options are theme-specific and customize the look and feel of a theme
|
109 | 110 | # further. For a list of options available for each theme, see the
|
110 | 111 | # documentation.
|
111 |
| -#html_theme_options = {} |
| 112 | +# html_theme_options = {} |
112 | 113 |
|
113 | 114 | # Add any paths that contain custom themes here, relative to this directory.
|
114 |
| -#html_theme_path = [] |
| 115 | +# html_theme_path = [] |
115 | 116 |
|
116 | 117 | # The name for this set of Sphinx documents. If None, it defaults to
|
117 | 118 | # "<project> v<release> documentation".
|
118 |
| -#html_title = None |
| 119 | +# html_title = None |
119 | 120 |
|
120 | 121 | # A shorter title for the navigation bar. Default is the same as html_title.
|
121 |
| -#html_short_title = None |
| 122 | +# html_short_title = None |
122 | 123 |
|
123 | 124 | # The name of an image file (relative to this directory) to place at the top
|
124 | 125 | # of the sidebar.
|
125 |
| -#html_logo = None |
| 126 | +# html_logo = None |
126 | 127 |
|
127 | 128 | # The name of an image file (within the static path) to use as favicon of the
|
128 | 129 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
129 | 130 | # pixels large.
|
130 |
| -#html_favicon = None |
| 131 | +# html_favicon = None |
131 | 132 |
|
132 | 133 | # Add any paths that contain custom static files (such as style sheets) here,
|
133 | 134 | # relative to this directory. They are copied after the builtin static files,
|
134 | 135 | # so a file named "default.css" will overwrite the builtin "default.css".
|
135 |
| -html_static_path = ['_static'] |
| 136 | +html_static_path = ["_static"] |
136 | 137 |
|
137 | 138 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
138 | 139 | # using the given strftime format.
|
139 |
| -#html_last_updated_fmt = '%b %d, %Y' |
| 140 | +# html_last_updated_fmt = '%b %d, %Y' |
140 | 141 |
|
141 | 142 | # If true, SmartyPants will be used to convert quotes and dashes to
|
142 | 143 | # typographically correct entities.
|
143 |
| -#html_use_smartypants = True |
| 144 | +# html_use_smartypants = True |
144 | 145 |
|
145 | 146 | # Custom sidebar templates, maps document names to template names.
|
146 |
| -#html_sidebars = {} |
| 147 | +# html_sidebars = {} |
147 | 148 |
|
148 | 149 | # Additional templates that should be rendered to pages, maps page names to
|
149 | 150 | # template names.
|
150 |
| -#html_additional_pages = {} |
| 151 | +# html_additional_pages = {} |
151 | 152 |
|
152 | 153 | # If false, no module index is generated.
|
153 |
| -#html_domain_indices = True |
| 154 | +# html_domain_indices = True |
154 | 155 |
|
155 | 156 | # If false, no index is generated.
|
156 |
| -#html_use_index = True |
| 157 | +# html_use_index = True |
157 | 158 |
|
158 | 159 | # If true, the index is split into individual pages for each letter.
|
159 |
| -#html_split_index = False |
| 160 | +# html_split_index = False |
160 | 161 |
|
161 | 162 | # If true, links to the reST sources are added to the pages.
|
162 |
| -#html_show_sourcelink = True |
| 163 | +# html_show_sourcelink = True |
163 | 164 |
|
164 | 165 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
165 |
| -#html_show_sphinx = True |
| 166 | +# html_show_sphinx = True |
166 | 167 |
|
167 | 168 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
168 |
| -#html_show_copyright = True |
| 169 | +# html_show_copyright = True |
169 | 170 |
|
170 | 171 | # If true, an OpenSearch description file will be output, and all pages will
|
171 | 172 | # contain a <link> tag referring to it. The value of this option must be the
|
172 | 173 | # base URL from which the finished HTML is served.
|
173 |
| -#html_use_opensearch = '' |
| 174 | +# html_use_opensearch = '' |
174 | 175 |
|
175 | 176 | # This is the file name suffix for HTML files (e.g. ".xhtml").
|
176 |
| -#html_file_suffix = None |
| 177 | +# html_file_suffix = None |
177 | 178 |
|
178 | 179 | # Output file base name for HTML help builder.
|
179 |
| -htmlhelp_basename = 'django-dynamic-preferencesdoc' |
| 180 | +htmlhelp_basename = "django-dynamic-preferencesdoc" |
180 | 181 |
|
181 | 182 |
|
182 | 183 | # -- Options for LaTeX output --------------------------------------------------
|
183 | 184 |
|
184 | 185 | latex_elements = {
|
185 |
| -# The paper size ('letterpaper' or 'a4paper'). |
186 |
| -#'papersize': 'letterpaper', |
187 |
| - |
188 |
| -# The font size ('10pt', '11pt' or '12pt'). |
189 |
| -#'pointsize': '10pt', |
190 |
| - |
191 |
| -# Additional stuff for the LaTeX preamble. |
192 |
| -#'preamble': '', |
| 186 | + # The paper size ('letterpaper' or 'a4paper'). |
| 187 | + #'papersize': 'letterpaper', |
| 188 | + # The font size ('10pt', '11pt' or '12pt'). |
| 189 | + #'pointsize': '10pt', |
| 190 | + # Additional stuff for the LaTeX preamble. |
| 191 | + #'preamble': '', |
193 | 192 | }
|
194 | 193 |
|
195 | 194 | # Grouping the document tree into LaTeX files. List of tuples
|
196 | 195 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
197 | 196 | latex_documents = [
|
198 |
| - ('index', 'django-dynamic-preferences.tex', u'django-dynamic-preferences Documentation', |
199 |
| - u'Agate Blue', 'manual'), |
| 197 | + ( |
| 198 | + "index", |
| 199 | + "django-dynamic-preferences.tex", |
| 200 | + u"django-dynamic-preferences Documentation", |
| 201 | + u"Agate Blue", |
| 202 | + "manual", |
| 203 | + ), |
200 | 204 | ]
|
201 | 205 |
|
202 | 206 | # The name of an image file (relative to this directory) to place at the top of
|
203 | 207 | # the title page.
|
204 |
| -#latex_logo = None |
| 208 | +# latex_logo = None |
205 | 209 |
|
206 | 210 | # For "manual" documents, if this is true, then toplevel headings are parts,
|
207 | 211 | # not chapters.
|
208 |
| -#latex_use_parts = False |
| 212 | +# latex_use_parts = False |
209 | 213 |
|
210 | 214 | # If true, show page references after internal links.
|
211 |
| -#latex_show_pagerefs = False |
| 215 | +# latex_show_pagerefs = False |
212 | 216 |
|
213 | 217 | # If true, show URL addresses after external links.
|
214 |
| -#latex_show_urls = False |
| 218 | +# latex_show_urls = False |
215 | 219 |
|
216 | 220 | # Documents to append as an appendix to all manuals.
|
217 |
| -#latex_appendices = [] |
| 221 | +# latex_appendices = [] |
218 | 222 |
|
219 | 223 | # If false, no module index is generated.
|
220 |
| -#latex_domain_indices = True |
| 224 | +# latex_domain_indices = True |
221 | 225 |
|
222 | 226 |
|
223 | 227 | # -- Options for manual page output --------------------------------------------
|
224 | 228 |
|
225 | 229 | # One entry per manual page. List of tuples
|
226 | 230 | # (source start file, name, description, authors, manual section).
|
227 | 231 | man_pages = [
|
228 |
| - ('index', 'django-dynamic-preferences', u'django-dynamic-preferences Documentation', |
229 |
| - [u'Agate Blue'], 1) |
| 232 | + ( |
| 233 | + "index", |
| 234 | + "django-dynamic-preferences", |
| 235 | + u"django-dynamic-preferences Documentation", |
| 236 | + [u"Agate Blue"], |
| 237 | + 1, |
| 238 | + ) |
230 | 239 | ]
|
231 | 240 |
|
232 | 241 | # If true, show URL addresses after external links.
|
233 |
| -#man_show_urls = False |
| 242 | +# man_show_urls = False |
234 | 243 |
|
235 | 244 |
|
236 | 245 | # -- Options for Texinfo output ------------------------------------------------
|
|
239 | 248 | # (source start file, target name, title, author,
|
240 | 249 | # dir menu entry, description, category)
|
241 | 250 | texinfo_documents = [
|
242 |
| - ('index', 'django-dynamic-preferences', u'django-dynamic-preferences Documentation', |
243 |
| - u'Agate Blue', 'django-dynamic-preferences', 'One line description of project.', |
244 |
| - 'Miscellaneous'), |
| 251 | + ( |
| 252 | + "index", |
| 253 | + "django-dynamic-preferences", |
| 254 | + u"django-dynamic-preferences Documentation", |
| 255 | + u"Agate Blue", |
| 256 | + "django-dynamic-preferences", |
| 257 | + "One line description of project.", |
| 258 | + "Miscellaneous", |
| 259 | + ), |
245 | 260 | ]
|
246 | 261 |
|
247 | 262 | # Documents to append as an appendix to all manuals.
|
248 |
| -#texinfo_appendices = [] |
| 263 | +# texinfo_appendices = [] |
249 | 264 |
|
250 | 265 | # If false, no module index is generated.
|
251 |
| -#texinfo_domain_indices = True |
| 266 | +# texinfo_domain_indices = True |
252 | 267 |
|
253 | 268 | # How to display URL addresses: 'footnote', 'no', or 'inline'.
|
254 |
| -#texinfo_show_urls = 'footnote' |
| 269 | +# texinfo_show_urls = 'footnote' |
255 | 270 |
|
256 | 271 | # If true, do not generate a @detailmenu in the "Top" node's menu.
|
257 |
| -#texinfo_no_detailmenu = False |
| 272 | +# texinfo_no_detailmenu = False |
0 commit comments