Updated to doc building framework. Added Sphinx extensions and fixed genrst dependency
[hooke.git] / doc / conf.py
1 # -*- coding: utf-8 -*-
2 #
3 # sphinx-scons documentation build configuration file, created by
4 # sphinx-quickstart on Thu Mar 12 10:37:15 2009.
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.append(os.path.abspath('.'))
20 sys.path.insert(0, os.path.abspath('..'))
21
22 import hooke
23
24 # -- General configuration -----------------------------------------------------
25
26 # Add any Sphinx extension module names here, as strings. They can be extensions
27 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage',
29               'numpydoc']
30
31 # Add any paths that contain templates here, relative to this directory.
32 templates_path = ['_templates']
33
34 # The suffix of source filenames.
35 source_suffix = '.txt' #'.rst'
36
37 # The encoding of source files.
38 #source_encoding = 'utf-8'
39
40 # The master toctree document.
41 master_doc = 'index'
42
43 # General information about the project.
44 project = u'Hooke'
45 copyright = u'2006-2010, Massimo Sandal et al.'
46
47 # The version info for the project you're documenting, acts as replacement for
48 # |version| and |release|, also used in various other places throughout the
49 # built documents.
50 #
51 # The short X.Y version.
52 version = hooke.version(2)
53 # The full version, including alpha/beta/rc tags.
54 release = hooke.version(5)
55
56 # The language for content autogenerated by Sphinx. Refer to documentation
57 # for a list of supported languages.
58 #language = None
59
60 # There are two options for replacing |today|: either, you set today to some
61 # non-false value, then it is used:
62 #today = ''
63 # Else, today_fmt is used as the format for a strftime call.
64 #today_fmt = '%B %d, %Y'
65
66 # List of documents that shouldn't be included in the build.
67 #unused_docs = []
68
69 # List of directories, relative to source directory, that shouldn't be searched
70 # for source files.
71 exclude_trees = ['build']
72
73 # The reST default role (used for this markup: `text`) to use for all documents.
74 #default_role = None
75
76 # If true, '()' will be appended to :func: etc. cross-reference text.
77 #add_function_parentheses = True
78
79 # If true, the current module name will be prepended to all description
80 # unit titles (such as .. function::).
81 #add_module_names = True
82
83 # If true, sectionauthor and moduleauthor directives will be shown in the
84 # output. They are ignored by default.
85 #show_authors = False
86
87 # The name of the Pygments (syntax highlighting) style to use.
88 pygments_style = 'sphinx'
89
90 # A list of ignored prefixes for module index sorting.
91 #modindex_common_prefix = []
92
93
94 # -- Options for HTML output ---------------------------------------------------
95
96 # The theme to use for HTML and HTML Help pages.  Major themes that come with
97 # Sphinx are currently 'default' and 'sphinxdoc'.
98 html_theme = 'default'
99
100 # Theme options are theme-specific and customize the look and feel of a theme
101 # further.  For a list of options available for each theme, see the
102 # documentation.
103 #html_theme_options = {}
104
105 # Add any paths that contain custom themes here, relative to this directory.
106 #html_theme_path = []
107
108 # The name for this set of Sphinx documents.  If None, it defaults to
109 # "<project> v<release> documentation".
110 html_title = project + " documentation"
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_use_modindex = 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.
154 #html_show_sourcelink = True
155
156 # If true, an OpenSearch description file will be output, and all pages will
157 # contain a <link> tag referring to it.  The value of this option must be the
158 # base URL from which the finished HTML is served.
159 #html_use_opensearch = ''
160
161 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
162 #html_file_suffix = ''
163
164 # Output file base name for HTML help builder.
165 htmlhelp_basename = 'sphinx-sconsdoc'
166
167
168 # -- Options for LaTeX output --------------------------------------------------
169
170 # The paper size ('letter' or 'a4').
171 #latex_paper_size = 'letter'
172
173 # The font size ('10pt', '11pt' or '12pt').
174 #latex_font_size = '10pt'
175
176 # Grouping the document tree into LaTeX files. List of tuples
177 # (source start file, target name, title, author, documentclass [howto/manual]).
178 latex_documents = [
179   ('index', 'hooke.tex', ur'Hooke Documentation',
180    ur'W. Trevor King', 'manual'),
181 ]
182
183 # The name of an image file (relative to this directory) to place at the top of
184 # the title page.
185 #latex_logo = None
186
187 # For "manual" documents, if this is true, then toplevel headings are parts,
188 # not chapters.
189 #latex_use_parts = False
190
191 # Additional stuff for the LaTeX preamble.
192 #latex_preamble = ''
193
194 # Documents to append as an appendix to all manuals.
195 #latex_appendices = []
196
197 # If false, no module index is generated.
198 #latex_use_modindex = True