]> git.donarmstrong.com Git - neurodebian.git/blob - sphinx/conf.py
testimonial from Sebastian
[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-2011, NeuroDebian Team'
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 name for this set of Sphinx documents.  If None, it defaults to
122 # "<project> v<release> documentation".
123 html_title = project
124
125 # A shorter title for the navigation bar.  Default is the same as html_title.
126 #html_short_title = "Debian Neuroscience"
127
128 # The name of an image file (relative to this directory) to place at the top
129 # of the sidebar.
130 html_logo = os.path.join(artworkdir(), 'logo_tuned/fmri_w200.png')
131
132 # The name of an image file (within the static path) to use as favicon of the
133 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
134 # pixels large.
135 html_favicon = 'favicon.ico'
136
137 # Add any paths that contain custom static files (such as style sheets) here,
138 # relative to this directory. They are copied after the builtin static files,
139 # so a file named "default.css" will overwrite the builtin "default.css".
140 html_static_path = ['_static']
141
142 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143 # using the given strftime format.
144 #html_last_updated_fmt = '%b %d, %Y'
145
146 # If true, SmartyPants will be used to convert quotes and dashes to
147 # typographically correct entities.
148 #html_use_smartypants = True
149
150 # Custom sidebar templates, maps document names to template names.
151 #html_sidebars = {}
152
153 # Additional templates that should be rendered to pages, maps page names to
154 # template names.
155 #html_additional_pages = {}
156
157 # If false, no module index is generated.
158 html_use_modindex = False
159
160 # If false, no index is generated.
161 html_use_index = False
162
163 # If true, the index is split into individual pages for each letter.
164 #html_split_index = False
165
166 # If true, the reST sources are included in the HTML build as _sources/<name>.
167 html_copy_source = False
168
169 # If true, an OpenSearch description file will be output, and all pages will
170 # contain a <link> tag referring to it.  The value of this option must be the
171 # base URL from which the finished HTML is served.
172 #html_use_opensearch = ''
173
174 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
175 #html_file_suffix = ''
176
177 # Output file base name for HTML help builder.
178 htmlhelp_basename = 'debpkgrepo'
179
180
181 # Options for LaTeX output
182 # ------------------------
183
184 # The paper size ('letter' or 'a4').
185 #latex_paper_size = 'letter'
186
187 # The font size ('10pt', '11pt' or '12pt').
188 #latex_font_size = '10pt'
189
190 # Grouping the document tree into LaTeX files. List of tuples
191 # (source start file, target name, title, author, document class [howto/manual]).
192 latex_documents = [
193   ('index', 'DebianPackageRepository.tex', ur'Debian Package Repository Documentation',
194    ur'Michael Hanke', 'manual'),
195 ]
196
197 # The name of an image file (relative to this directory) to place at the top of
198 # the title page.
199 #latex_logo = None
200
201 # For "manual" documents, if this is true, then toplevel headings are parts,
202 # not chapters.
203 #latex_use_parts = False
204
205 # Additional stuff for the LaTeX preamble.
206 #latex_preamble = ''
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_use_modindex = True
213
214 # RSS feed
215 # --------
216 feed_base_url = 'http://neuro.debian.net'
217 feed_title = "NeuroDebian Insider"
218 feed_subtitle = "This solves all your problems"
219 feed_description = "A blog about using the ultimate operating system in neuroscience research"
220 feed_variants = {'planetdebian': {'filename': 'feeds/for-debian-planet.xml',
221                                   'tag': 'debian'},
222                  'all': {'filename': 'feeds/blog.xml', 'tag': None}}
223 feed_categories = ['debian', 'neuroscience']
224 feed_author_name = 'NeuroDebian team'
225 feed_author_email = 'team@neuro.debian.net'