Debian Codegraph @

doc/sources/admin/conf.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # LemonLDAP::NG documentation build configuration file, created by
4 # sphinx-quickstart on Mon Feb 4 15:15:16 2019.
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
15 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
18 #
19 # import os
20 # import sys
21 # sys.path.insert(0, os.path.abspath('.'))
22 import sphinx_bootstrap_theme
23 import datetime
24 import os
25
26 # -- General configuration ------------------------------------------------
27
28 # If your documentation needs a minimal Sphinx version, state it here.
29 #
30 # needs_sphinx = '1.0'
31
32 # Add any Sphinx extension module names here, as strings. They can be
33 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34 # ones.
35 #extensions = ['sphinx.ext.autosectionlabel']
36
37 # Add any paths that contain templates here, relative to this directory.
38 templates_path = ['_templates']
39
40 # The suffix(es) of source filenames.
41 # You can specify multiple suffix as a list of string:
42 #
43 source_suffix = '.rst'
44
45 # The encoding of source files.
46 #
47 # source_encoding = 'utf-8-sig'
48
49 # The master toctree document.
50 master_doc = 'start'
51
52 # General information about the project.
53 project = u'LemonLDAP::NG'
54 copyright = u'LemonLDAP::NG'
55 author = u'LemonLDAP::NG'
56
57 # The version info for the project you're documenting, acts as replacement for
58 # |version| and |release|, also used in various other places throughout the
59 # built documents.
60 #
61 # The short X.Y version.
62 version = u'2.0'
63 # The full version, including alpha/beta/rc tags.
64 release = u'2.0'
65
66 # The language for content autogenerated by Sphinx. Refer to documentation
67 # for a list of supported languages.
68 #
69 # This is also used if you do content translation via gettext catalogs.
70 # Usually you set "language" from the command line for these cases.
71 language = 'en'
72
73 # There are two options for replacing |today|: either, you set today to some
74 # non-false value, then it is used:
75 #
76 # today = ''
77 #
78 # Else, today_fmt is used as the format for a strftime call.
79 #
80 # today_fmt = '%B %d, %Y'
81
82 # List of patterns, relative to source directory, that match files and
83 # directories to ignore when looking for source files.
84 # This patterns also effect to html_static_path and html_extra_path
85 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
86
87 # The reST default role (used for this markup: `text`) to use for all
88 # documents.
89 #
90 # default_role = None
91
92 # If true, '()' will be appended to :func: etc. cross-reference text.
93 #
94 # add_function_parentheses = True
95
96 # If true, the current module name will be prepended to all description
97 # unit titles (such as .. function::).
98 #
99 # add_module_names = True
100
101 # If true, sectionauthor and moduleauthor directives will be shown in the
102 # output. They are ignored by default.
103 #
104 # show_authors = False
105
106 # The name of the Pygments (syntax highlighting) style to use.
107 # pygments_style = 'bootstrap'
108
109 # A list of ignored prefixes for module index sorting.
110 # modindex_common_prefix = []
111
112 # If true, keep warnings as "system message" paragraphs in the built documents.
113 # keep_warnings = False
114
115 # If true, `todo` and `todoList` produce output, else they produce nothing.
116 todo_include_todos = False
117
118
119 # -- Options for HTML output ----------------------------------------------
120
121 # The theme to use for HTML and HTML Help pages. See the documentation for
122 # a list of builtin themes.
123 #
124 html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
125
126 # For website
127 html_theme = 'bootstrap'
128
129 html_theme_options = {
130 'globaltoc_includehidden': False,
131 'navbar_sidebarrel': False,
132 'navbar_pagenav': False,
133 'globaltoc_depth': 0,
134 'navbar_fixed_top': "false",
135 'navbar_class': "hidden",
136 'nosidebar': True,
137 }
138
139 if 'LLNGSPHINXWEBSITE' in os.environ:
140 import sphinx_rtd_theme
141 html_theme = 'sphinx_rtd_theme'
142 html_theme_options = {}
143 else:
144 html_copy_source = False
145
146
147 # html_theme_options = {}
148
149 # Add any paths that contain custom themes here, relative to this directory.
150 #html_theme_path = [ '.' ]
151
152 # The name for this set of Sphinx documents.
153 # "<project> v<release> documentation" by default.
154 #
155 # html_title = u'LemonLDAP::NG v2.0'
156
157 # A shorter title for the navigation bar. Default is the same as html_title.
158 #
159 # html_short_title = None
160
161 # The name of an image file (relative to this directory) to place at the top
162 # of the sidebar.
163 #
164 # html_logo = None
165
166 # The name of an image file (relative to this directory) to use as a favicon of
167 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
168 # pixels large.
169 #
170 # html_favicon = None
171
172 # Add any paths that contain custom static files (such as style sheets) here,
173 # relative to this directory. They are copied after the builtin static files,
174 # so a file named "default.css" will overwrite the builtin "default.css".
175 html_static_path = ['_static']
176
177 html_css_files = [
178 'css/custom.css',
179 ]
180
181 html_favicon = 'logos/favicon.ico'
182 html_logo = 'logos/lemonldap-ng-logo.png'
183
184 # Add any extra paths that contain custom files (such as robots.txt or
185 # .htaccess) here, relative to this directory. These files are copied
186 # directly to the root of the documentation.
187 #
188 # html_extra_path = []
189
190 # If not None, a 'Last updated on:' timestamp is inserted at every page
191 # bottom, using the given strftime format.
192 # The empty string is equivalent to '%b %d, %Y'.
193 #
194 # html_last_updated_fmt = None
195
196 # If true, SmartyPants will be used to convert quotes and dashes to
197 # typographically correct entities.
198 #
199 # html_use_smartypants = True
200
201 # Custom sidebar templates, maps document names to template names.
202 #
203 #html_sidebars = {}
204
205 # Additional templates that should be rendered to pages, maps page names to
206 # template names.
207 #
208 # html_additional_pages = {}
209
210 # If false, no module index is generated.
211 #
212 # html_domain_indices = True
213
214 # If false, no index is generated.
215 #
216 html_use_index = True
217 html_use_index_sort = True
218
219 # If true, the index is split into individual pages for each letter.
220 #
221 # html_split_index = False
222
223 # If true, links to the reST sources are added to the pages.
224 #
225 # html_show_sourcelink = True
226
227 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
228 #
229 # html_show_sphinx = True
230
231 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
232 #
233 # html_show_copyright = True
234
235 # If true, an OpenSearch description file will be output, and all pages will
236 # contain a <link> tag referring to it. The value of this option must be the
237 # base URL from which the finished HTML is served.
238 #
239 # html_use_opensearch = ''
240
241 # This is the file name suffix for HTML files (e.g. ".xhtml").
242 # html_file_suffix = None
243
244 # Language to be used for generating the HTML full-text search index.
245 # Sphinx supports the following languages:
246 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
247 # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
248 #
249 # html_search_language = 'en'
250
251 # A dictionary with options for the search language support, empty by default.
252 # 'ja' uses this config value.
253 # 'zh' user can custom change `jieba` dictionary path.
254 #
255 # html_search_options = {'type': 'default'}
256
257 # The name of a javascript file (relative to the configuration directory) that
258 # implements a search results scorer. If empty, the default will be used.
259 #
260 # html_search_scorer = 'scorer.js'
261
262 # Output file base name for HTML help builder.
263 htmlhelp_basename = 'LemonLDAPNGdoc'
264
265 # -- Options for LaTeX output ---------------------------------------------
266
267 latex_elements = {
268 # The paper size ('letterpaper' or 'a4paper').
269 #
270 # 'papersize': 'letterpaper',
271
272 # The font size ('10pt', '11pt' or '12pt').
273 #
274 # 'pointsize': '10pt',
275
276 # Additional stuff for the LaTeX preamble.
277 #
278 # 'preamble': '',
279
280 # Latex figure (float) alignment
281 #
282 # 'figure_align': 'htbp',
283 }
284
285 # Grouping the document tree into LaTeX files. List of tuples
286 # (source start file, target name, title,
287 # author, documentclass [howto, manual, or own class]).
288 latex_documents = [
289 (master_doc, 'LemonLDAPNG.tex', u'LemonLDAP::NG Documentation',
290 u'LemonLDAP::NG', 'manual'),
291 ]
292
293 # The name of an image file (relative to this directory) to place at the top of
294 # the title page.
295 #
296 # latex_logo = None
297
298 # For "manual" documents, if this is true, then toplevel headings are parts,
299 # not chapters.
300 #
301 # latex_use_parts = False
302
303 # If true, show page references after internal links.
304 #
305 # latex_show_pagerefs = False
306
307 # If true, show URL addresses after external links.
308 #
309 # latex_show_urls = False
310
311 # Documents to append as an appendix to all manuals.
312 #
313 # latex_appendices = []
314
315 # It false, will not define \strong, \code, itleref, \crossref ... but only
316 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
317 # packages.
318 #
319 # latex_keep_old_macro_names = True
320
321 # If false, no module index is generated.
322 #
323 # latex_domain_indices = True
324
325
326 # -- Options for manual page output ---------------------------------------
327
328 # One entry per manual page. List of tuples
329 # (source start file, name, description, authors, manual section).
330 man_pages = [
331 (master_doc, 'lemonldapng', u'LemonLDAP::NG Documentation',
332 [author], 1)
333 ]
334
335 # If true, show URL addresses after external links.
336 #
337 # man_show_urls = False
338
339
340 # -- Options for Texinfo output -------------------------------------------
341
342 # Grouping the document tree into Texinfo files. List of tuples
343 # (source start file, target name, title, author,
344 # dir menu entry, description, category)
345 texinfo_documents = [
346 (master_doc, 'LemonLDAPNG', u'LemonLDAP::NG Documentation',
347 author, 'LemonLDAPNG', 'One line description of project.',
348 'Miscellaneous'),
349 ]
350
351 # Documents to append as an appendix to all manuals.
352 #
353 # texinfo_appendices = []
354
355 # If false, no module index is generated.
356 #
357 # texinfo_domain_indices = True
358
359 # How to display URL addresses: 'footnote', 'no', or 'inline'.
360 #
361 # texinfo_show_urls = 'footnote'
362
363 # If true, do not generate a @detailmenu in the "Top" node's menu.
364 #
365 # texinfo_no_detailmenu = False