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