]> git.donarmstrong.com Git - neurodebian.git/blob - sphinx/conf.py
ENH: monkey patch regexp for english words -- we need to allow searching package...
[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-2013, 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 # Monkey patch "English" language regular expression so we could
79 # search for package names as well
80 import re
81 from sphinx.search.en import SearchEnglish
82 SearchEnglish._word_re = re.compile(r'[-.\w]+(?u)')
83
84 # The language for content autogenerated by Sphinx. Refer to documentation
85 # for a list of supported languages.
86 language = 'en'
87
88 # There are two options for replacing |today|: either, you set today to some
89 # non-false value, then it is used:
90 #today = ''
91 # Else, today_fmt is used as the format for a strftime call.
92 today_fmt = '%B %d, %Y'
93
94 # List of documents that shouldn't be included in the build.
95 #unused_docs = []
96
97 # List of directories, relative to source directory, that shouldn't be searched
98 # for source files.
99 exclude_trees = ['pkgs_addenum']
100
101 # The reST default role (used for this markup: `text`) to use for all documents.
102 #default_role = None
103
104 # If true, '()' will be appended to :func: etc. cross-reference text.
105 #add_function_parentheses = True
106
107 # If true, the current module name will be prepended to all description
108 # unit titles (such as .. function::).
109 #add_module_names = True
110
111 # If true, sectionauthor and moduleauthor directives will be shown in the
112 # output. They are ignored by default.
113 #show_authors = False
114
115 # The name of the Pygments (syntax highlighting) style to use.
116 pygments_style = 'sphinx'
117
118
119 # Options for HTML output
120 # -----------------------
121
122 # The style sheet to use for HTML and HTML Help pages. A file of that name
123 # must exist either in Sphinx' static/ path, or in one of the custom paths
124 # given in html_static_path.
125 html_style = 'neurodebian.css'
126
127 # The theme to use for HTML and HTML Help pages.  See the documentation for
128 # a list of builtin themes.
129 html_theme = 'default'
130
131 # Theme options are theme-specific and customize the look and feel of a theme
132 # further.  For a list of options available for each theme, see the
133 # documentation.
134 html_theme_options = {'nosidebar': True}
135
136 # The name for this set of Sphinx documents.  If None, it defaults to
137 # "<project> v<release> documentation".
138 html_title = project
139
140 # A shorter title for the navigation bar.  Default is the same as html_title.
141 #html_short_title = "Debian Neuroscience"
142
143 # The name of an image file (relative to this directory) to place at the top
144 # of the sidebar.
145 html_logo = os.path.join(artworkdir(), 'logo_tuned/fmri_w200.png')
146
147 # The name of an image file (within the static path) to use as favicon of the
148 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
149 # pixels large.
150 html_favicon = 'favicon.ico'
151
152 # Add any paths that contain custom static files (such as style sheets) here,
153 # relative to this directory. They are copied after the builtin static files,
154 # so a file named "default.css" will overwrite the builtin "default.css".
155 html_static_path = ['_static']
156
157 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158 # using the given strftime format.
159 #html_last_updated_fmt = '%b %d, %Y'
160
161 # If true, SmartyPants will be used to convert quotes and dashes to
162 # typographically correct entities.
163 #html_use_smartypants = True
164
165 # Custom sidebar templates, maps document names to template names.
166 #html_sidebars = {}
167
168 # Additional templates that should be rendered to pages, maps page names to
169 # template names.
170 #html_additional_pages = {}
171
172 # If false, no module index is generated.
173 html_use_modindex = False
174
175 # If false, no index is generated.
176 html_use_index = False
177
178 # If true, the index is split into individual pages for each letter.
179 #html_split_index = False
180
181 # If true, the reST sources are included in the HTML build as _sources/<name>.
182 html_copy_source = False
183
184 # If true, an OpenSearch description file will be output, and all pages will
185 # contain a <link> tag referring to it.  The value of this option must be the
186 # base URL from which the finished HTML is served.
187 #html_use_opensearch = ''
188
189 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
190 #html_file_suffix = ''
191
192 # Output file base name for HTML help builder.
193 htmlhelp_basename = 'debpkgrepo'
194
195
196 # Options for LaTeX output
197 # ------------------------
198
199 # The paper size ('letter' or 'a4').
200 #latex_paper_size = 'letter'
201
202 # The font size ('10pt', '11pt' or '12pt').
203 #latex_font_size = '10pt'
204
205 # Grouping the document tree into LaTeX files. List of tuples
206 # (source start file, target name, title, author, document class [howto/manual]).
207 latex_documents = [
208   ('index', 'DebianPackageRepository.tex', ur'Debian Package Repository Documentation',
209    ur'Michael Hanke', 'manual'),
210 ]
211
212 # The name of an image file (relative to this directory) to place at the top of
213 # the title page.
214 #latex_logo = None
215
216 # For "manual" documents, if this is true, then toplevel headings are parts,
217 # not chapters.
218 #latex_use_parts = False
219
220 # Additional stuff for the LaTeX preamble.
221 #latex_preamble = ''
222
223 # Documents to append as an appendix to all manuals.
224 #latex_appendices = []
225
226 # If false, no module index is generated.
227 #latex_use_modindex = True
228
229 # RSS feed
230 # --------
231 feed_base_url = 'http://neuro.debian.net'
232 feed_title = "NeuroDebian Insider"
233 feed_subtitle = "This solves all your problems"
234 feed_description = "A blog about using the ultimate operating system in neuroscience research"
235 feed_variants = {'planetdebian': {'filename': 'feeds/for-debian-planet.xml',
236                                   'tag': 'debian'},
237                  'all': {'filename': 'feeds/blog.xml', 'tag': None}}
238 feed_categories = ['debian', 'neuroscience']
239 feed_author_name = 'NeuroDebian team'
240 feed_author_email = 'team@neuro.debian.net'