source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/docs/conf.py @ 42095c5

mainqndtest v1.1.1
Last change on this file since 42095c5 was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

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