source: sasmodels/doc/conf.py @ 19dcb933

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 19dcb933 was 19dcb933, checked in by Paul Kienzle <pkienzle@…>, 10 years ago

build docs for models

  • Property mode set to 100644
File size: 7.9 KB
Line 
1# -*- coding: utf-8 -*-
2#
3# Periodic Table documentation build configuration file, created by
4# sphinx-quickstart on Tue Jun  2 11:16:08 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
14import 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('_extensions'+(os.path.dirname('../../periodictable'))))
20
21sys.path.insert(0, os.path.abspath('..'))
22sys.path.insert(0, os.path.abspath('_extensions'))
23sys.path.insert(0, os.path.abspath('.')) # needed for extension tests
24print "\n".join(sys.path)
25import sasmodels
26
27
28# -- General configuration -----------------------------------------------------
29
30# Add any Sphinx extension module names here, as strings. They can be extensions
31# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
33              'sphinx.ext.coverage',
34              #'sphinx.ext.pngmath',
35              'sphinx.ext.mathjax',
36              #'only_directives',
37              #'matplotlib.sphinxext.mathmpl',
38              'matplotlib.sphinxext.only_directives',
39              'matplotlib.sphinxext.plot_directive',
40              'dollarmath',
41              'numfig',
42             ]
43
44# Add any paths that contain templates here, relative to this directory.
45templates_path = ['_templates']
46
47# The suffix of source filenames.
48source_suffix = '.rst'
49
50# The encoding of source files.
51#source_encoding = 'utf-8'
52
53# The master toctree document.
54master_doc = 'index'
55
56# General information about the project.
57project = 'SAS Models'
58copyright = '2014, sasview team'
59
60# The version info for the project you're documenting, acts as replacement for
61# |version| and |release|, also used in various other places throughout the
62# built documents.
63#
64# The short X.Y version.
65version = sasmodels.__version__
66# The full version, including alpha/beta/rc tags.
67release = version
68
69# The language for content autogenerated by Sphinx. Refer to documentation
70# for a list of supported languages.
71#language = None
72
73# There are two options for replacing |today|: either, you set today to some
74# non-false value, then it is used:
75#today = ''
76# Else, today_fmt is used as the format for a strftime call.
77#today_fmt = '%B %d, %Y'
78
79# List of documents that shouldn't be included in the build.
80#unused_docs = []
81
82# List of directories, relative to source directory, that shouldn't be searched
83# for source files.
84exclude_trees = ['_*','build','plots']
85
86# The reST default role (used for this markup: `text`) to use for all documents.
87#default_role = None
88
89# If true, '()' will be appended to :func: etc. cross-reference text.
90#add_function_parentheses = True
91
92# If true, the current module name will be prepended to all description
93# unit titles (such as .. function::).
94#add_module_names = True
95
96# If true, sectionauthor and moduleauthor directives will be shown in the
97# output. They are ignored by default.
98#show_authors = False
99
100# The name of the Pygments (syntax highlighting) style to use.
101pygments_style = 'sphinx'
102
103# A list of ignored prefixes for module index sorting.
104#modindex_common_prefix = []
105
106
107# -- Options for HTML output ---------------------------------------------------
108
109# The theme to use for HTML and HTML Help pages.  Major themes that come with
110# Sphinx are currently 'default' and 'sphinxdoc'.
111html_theme = 'default'
112html_theme_options = {
113    "rightsidebar":"False",
114    "relbarbgcolor": "Gainsboro",
115    #"codebgcolor": "Beige",
116    "footertextcolor": "orange",
117    "relbartextcolor": "Blue",
118    "sidebarbgcolor": "white",
119    "sidebarlinkcolor": "OrangeRed",
120    "sidebartextcolor": "Navy",
121    "linkcolor": "Blue",
122    "relbarlinkcolor": "Blue"
123    #"headtextcolor": "Teal"
124    #"headbgcolor": "Oldlace",
125}
126
127html_style = 'site.css'
128
129# Theme options are theme-specific and customize the look and feel of a theme
130# further.  For a list of options available for each theme, see the
131# documentation PaleTurquoise.
132#html_theme_options = {}
133
134# Add any paths that contain custom themes here, relative to this directory.
135#html_theme_path = []
136
137# The name for this set of Sphinx documents.  If None, it defaults to
138# "<project> v<release> documentation".
139html_title = "Sasmodels"
140
141# A shorter title for the navigation bar.  Default is the same as html_title.
142html_short_title = "Home"
143
144# The name of an image file (relative to this directory) to place at the top
145# of the sidebar.
146#html_logo = '_static/periodic_logo.png'
147
148# The name of an image file (within the static path) to use as favicon of the
149# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
150# pixels large.
151#html_favicon = None
152
153# Add any paths that contain custom static files (such as style sheets) here,
154# relative to this directory. They are copied after the builtin static files,
155# so a file named "default.css" will overwrite the builtin "default.css".
156html_static_path = ['_static']
157
158# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
159# using the given strftime format.
160#html_last_updated_fmt = '%b %d, %Y'
161
162# If true, SmartyPants will be used to convert quotes and dashes to
163# typographically correct entities.
164#html_use_smartypants = True
165
166# Custom sidebar templates, maps document names to template names.
167#html_sidebars = {}
168
169# Additional templates that should be rendered to pages, maps page names to
170# template names.
171#html_additional_pages = {}
172
173# If false, no module index is generated.
174#html_use_modindex = True
175
176# If false, no index is generated.
177#html_use_index = True
178
179# If true, the index is split into individual pages for each letter.
180#html_split_index = False
181
182# If true, links to the reST sources are added to the pages.
183html_show_sourcelink = False
184
185# If true, an OpenSearch description file will be output, and all pages will
186# contain a <link> tag referring to it.  The value of this option must be the
187# base URL from which the finished HTML is served.
188#html_use_opensearch = ''
189
190# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
191#html_file_suffix = ''
192
193# Output file base name for HTML help builder.
194htmlhelp_basename = 'sasmodelsdoc'
195
196
197# -- Options for LaTeX output --------------------------------------------------
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, documentclass [howto/manual]).
207latex_documents = [
208  ('index', 'SASModels.tex', 'SAS Models Documentation',
209   'sasview team', '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 = ''
222LATEX_PREAMBLE=r"""
223\renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode
224\usepackage[utf8]{inputenc}      % Allow unicode symbols in text
225\DeclareUnicodeCharacter {00B7} {\ensuremath{\cdot}}   % cdot
226\DeclareUnicodeCharacter {00B0} {\ensuremath{^\circ}}  % degrees
227\DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom
228"""
229latex_elements = {'preamble' : LATEX_PREAMBLE}
230
231# Documents to append as an appendix to all manuals.
232#latex_appendices = []
233
234# If false, no module index is generated.
235#latex_use_modindex = True
236
237# Which class/__init__ docstring to use: class, init, or both
238autoclass_content = 'both'
239
240# Autodoc member sort order: by class or by type
241autodoc_member_order = 'groupwise'
242
243if os.path.exists('rst_prolog'):
244    with open('rst_prolog') as fid:
245        rst_prolog = fid.read()
Note: See TracBrowser for help on using the repository browser.