]> git.donarmstrong.com Git - neurodebian.git/blob - sphinx/conf.py
Merge branch 'master' into newdesign
[neurodebian.git] / sphinx / conf.py
1 # -*- coding: utf-8 -*-
2 #
3 # Debian Package Repository documentation build configuration file, created by
4 # sphinx-quickstart on Sat Mar 28 17:08:58 2009.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # The contents of this file are pickled, so don't put values in the namespace
9 # that aren't pickleable (module imports are okay, they're removed automatically).
10 #
11 # Note that not all possible configuration values are present in this
12 # autogenerated file.
13 #
14 # All configuration values have a default; values that are commented out
15 # serve to show the default.
16
17 import sys, os
18
19 # If your extensions are in another directory, add it here. If the directory
20 # is relative to the documentation root, use os.path.abspath to make it
21 # absolute, like shown here.
22 #sys.path.append(os.path.abspath('.'))
23
24 def artworkdir():
25     """Look into every parent dir for 'artwork' and return its relative path."""
26     level = 0
27     while True:
28         target = os.path.join(*([os.path.pardir] * level + ['artwork']))
29         if os.path.isdir(target):
30             return target
31         else:
32             level += 1
33         # if there is no way up
34         if os.path.abspath(os.path.join(*([os.path.pardir] * level))) == \
35            os.path.abspath(os.path.join(*([os.path.pardir] * (level + 1)))):
36             raise(ValueError, "Cannot find 'artwork'.")
37
38
39 # General configuration
40 # ---------------------
41
42 # Add any Sphinx extension module names here, as strings. They can be extensions
43 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
44 #extensions = []
45 sys.path.append(os.path.abspath('.'))
46 extensions = ['sphinxext.quote',
47               'sphinxext.feed',
48               'sphinx.ext.todo']
49
50 # show todo items
51 todo_include_todos = True
52
53 # Add any paths that contain templates here, relative to this directory.
54 templates_path = ['_templates']
55
56 # The suffix of source filenames.
57 source_suffix = '.rst'
58
59 # The encoding of source files.
60 #source_encoding = 'utf-8'
61
62 # The master toctree document.
63 master_doc = 'index'
64
65 # General information about the project.
66 project = u'Debian Neuroscience Package Repository'
67 copyright = u'2009-2012, NeuroDebian Team <team@neuro.debian.net>'
68
69 # The version info for the project you're documenting, acts as replacement for
70 # |version| and |release|, also used in various other places throughout the
71 # built documents.
72 #
73 # The short X.Y version.
74 version = ''
75 # The full version, including alpha/beta/rc tags.
76 release = ''
77
78 # The language for content autogenerated by Sphinx. Refer to documentation
79 # for a list of supported languages.
80 language = 'en'
81
82 # There are two options for replacing |today|: either, you set today to some
83 # non-false value, then it is used:
84 #today = ''
85 # Else, today_fmt is used as the format for a strftime call.
86 today_fmt = '%B %d, %Y'
87
88 # List of documents that shouldn't be included in the build.
89 #unused_docs = []
90
91 # List of directories, relative to source directory, that shouldn't be searched
92 # for source files.
93 exclude_trees = ['pkgs_addenum']
94
95 # The reST default role (used for this markup: `text`) to use for all documents.
96 #default_role = None
97
98 # If true, '()' will be appended to :func: etc. cross-reference text.
99 #add_function_parentheses = True
100
101 # If true, the current module name will be prepended to all description
102 # unit titles (such as .. function::).
103 #add_module_names = True
104
105 # If true, sectionauthor and moduleauthor directives will be shown in the
106 # output. They are ignored by default.
107 #show_authors = False
108
109 # The name of the Pygments (syntax highlighting) style to use.
110 pygments_style = 'sphinx'
111
112
113 # Options for HTML output
114 # -----------------------
115
116 # The style sheet to use for HTML and HTML Help pages. A file of that name
117 # must exist either in Sphinx' static/ path, or in one of the custom paths
118 # given in html_static_path.
119 html_style = 'neurodebian.css'
120
121 # The theme to use for HTML and HTML Help pages.  See the documentation for
122 # a list of builtin themes.
123 html_theme = 'default'
124
125 # Theme options are theme-specific and customize the look and feel of a theme
126 # further.  For a list of options available for each theme, see the
127 # documentation.
128 html_theme_options = {'nosidebar': True}
129
130 # The name for this set of Sphinx documents.  If None, it defaults to
131 # "<project> v<release> documentation".
132 html_title = project
133
134 # A shorter title for the navigation bar.  Default is the same as html_title.
135 #html_short_title = "Debian Neuroscience"
136
137 # The name of an image file (relative to this directory) to place at the top
138 # of the sidebar.
139 html_logo = os.path.join(artworkdir(), 'logo_tuned/fmri_w200.png')
140
141 # The name of an image file (within the static path) to use as favicon of the
142 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
143 # pixels large.
144 html_favicon = 'favicon.ico'
145
146 # Add any paths that contain custom static files (such as style sheets) here,
147 # relative to this directory. They are copied after the builtin static files,
148 # so a file named "default.css" will overwrite the builtin "default.css".
149 html_static_path = ['_static']
150
151 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
152 # using the given strftime format.
153 #html_last_updated_fmt = '%b %d, %Y'
154
155 # If true, SmartyPants will be used to convert quotes and dashes to
156 # typographically correct entities.
157 #html_use_smartypants = True
158
159 # Custom sidebar templates, maps document names to template names.
160 #html_sidebars = {}
161
162 # Additional templates that should be rendered to pages, maps page names to
163 # template names.
164 #html_additional_pages = {}
165
166 # If false, no module index is generated.
167 html_use_modindex = False
168
169 # If false, no index is generated.
170 html_use_index = False
171
172 # If true, the index is split into individual pages for each letter.
173 #html_split_index = False
174
175 # If true, the reST sources are included in the HTML build as _sources/<name>.
176 html_copy_source = False
177
178 # If true, an OpenSearch description file will be output, and all pages will
179 # contain a <link> tag referring to it.  The value of this option must be the
180 # base URL from which the finished HTML is served.
181 #html_use_opensearch = ''
182
183 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
184 #html_file_suffix = ''
185
186 # Output file base name for HTML help builder.
187 htmlhelp_basename = 'debpkgrepo'
188
189
190 # Options for LaTeX output
191 # ------------------------
192
193 # The paper size ('letter' or 'a4').
194 #latex_paper_size = 'letter'
195
196 # The font size ('10pt', '11pt' or '12pt').
197 #latex_font_size = '10pt'
198
199 # Grouping the document tree into LaTeX files. List of tuples
200 # (source start file, target name, title, author, document class [howto/manual]).
201 latex_documents = [
202   ('index', 'DebianPackageRepository.tex', ur'Debian Package Repository Documentation',
203    ur'Michael Hanke', 'manual'),
204 ]
205
206 # The name of an image file (relative to this directory) to place at the top of
207 # the title page.
208 #latex_logo = None
209
210 # For "manual" documents, if this is true, then toplevel headings are parts,
211 # not chapters.
212 #latex_use_parts = False
213
214 # Additional stuff for the LaTeX preamble.
215 #latex_preamble = ''
216
217 # Documents to append as an appendix to all manuals.
218 #latex_appendices = []
219
220 # If false, no module index is generated.
221 #latex_use_modindex = True
222
223 # RSS feed
224 # --------
225 feed_base_url = 'http://neuro.debian.net'
226 feed_title = "NeuroDebian Insider"
227 feed_subtitle = "This solves all your problems"
228 feed_description = "A blog about using the ultimate operating system in neuroscience research"
229 feed_variants = {'planetdebian': {'filename': 'feeds/for-debian-planet.xml',
230                                   'tag': 'debian'},
231                  'all': {'filename': 'feeds/blog.xml', 'tag': None}}
232 feed_categories = ['debian', 'neuroscience']
233 feed_author_name = 'NeuroDebian team'
234 feed_author_email = 'team@neuro.debian.net'