| 1 | # -*- coding: utf-8 -*- |
|---|
| 2 | # |
|---|
| 3 | # NumPy documentation build configuration file, created by |
|---|
| 4 | # sphinx-quickstart on Wed May 7 09:45:59 2008. |
|---|
| 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 | # All configuration values have a default value; values that are commented out |
|---|
| 12 | # serve to show the default value. |
|---|
| 13 | |
|---|
| 14 | import sys, os |
|---|
| 15 | from scikits.timeseries import __version__ as ts_version |
|---|
| 16 | |
|---|
| 17 | # If your extensions are in another directory, add it here. If the directory |
|---|
| 18 | # is relative to the documentation root, use os.path.abspath to make it |
|---|
| 19 | # absolute, like shown here. |
|---|
| 20 | sys.path.extend([ |
|---|
| 21 | |
|---|
| 22 | # numpy standard doc extensions |
|---|
| 23 | os.path.join(os.path.dirname(__file__), '..', 'sphinxext'), |
|---|
| 24 | |
|---|
| 25 | # timeseries specific doc extensions |
|---|
| 26 | os.path.join(os.path.dirname(__file__), '..', 'sphinxext_ts') |
|---|
| 27 | ]) |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | # Check Sphinx version |
|---|
| 31 | import sphinx |
|---|
| 32 | if sphinx.__version__ < "0.6": |
|---|
| 33 | raise RuntimeError("Sphinx 0.6 or newer required") |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | # General configuration |
|---|
| 38 | # --------------------- |
|---|
| 39 | |
|---|
| 40 | # Add any Sphinx extension module names here, as strings. They can be extensions |
|---|
| 41 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
|---|
| 42 | extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary', |
|---|
| 43 | 'sphinx.ext.coverage', 'sphinx.ext.intersphinx', |
|---|
| 44 | 'sphinx.ext.pngmath', |
|---|
| 45 | 'numpydoc', 'phantom_import', 'tsplot_directive'] |
|---|
| 46 | |
|---|
| 47 | # Add any paths that contain templates here, relative to this directory. |
|---|
| 48 | templates_path = ['_templates'] |
|---|
| 49 | |
|---|
| 50 | # The suffix of source filenames. |
|---|
| 51 | source_suffix = '.rst' |
|---|
| 52 | |
|---|
| 53 | # The master toctree document. |
|---|
| 54 | master_doc = 'contents' |
|---|
| 55 | |
|---|
| 56 | # General substitutions. |
|---|
| 57 | project = 'TimeSeries' |
|---|
| 58 | copyright = '2008, Pierre GERARD-MARCHANT, Matt KNOX' |
|---|
| 59 | |
|---|
| 60 | # The default replacements for |version| and |release|, also used in various |
|---|
| 61 | # other places throughout the built documents. |
|---|
| 62 | # |
|---|
| 63 | # The short X.Y version. |
|---|
| 64 | version = ts_version |
|---|
| 65 | |
|---|
| 66 | # There are two options for replacing |today|: either, you set today to some |
|---|
| 67 | # non-false value, then it is used: |
|---|
| 68 | #today = '' |
|---|
| 69 | # Else, today_fmt is used as the format for a strftime call. |
|---|
| 70 | today_fmt = '%B %d, %Y' |
|---|
| 71 | |
|---|
| 72 | # List of documents that shouldn't be included in the build. |
|---|
| 73 | #unused_docs = [] |
|---|
| 74 | |
|---|
| 75 | # The reST default role (used for this markup: `text`) to use for all documents. |
|---|
| 76 | default_role = "autolink" |
|---|
| 77 | |
|---|
| 78 | # List of directories, relative to source directories, that shouldn't be searched |
|---|
| 79 | # for source files. |
|---|
| 80 | exclude_dirs = [] |
|---|
| 81 | |
|---|
| 82 | # If true, '()' will be appended to :func: etc. cross-reference text. |
|---|
| 83 | add_function_parentheses = False |
|---|
| 84 | |
|---|
| 85 | # If true, the current module name will be prepended to all description |
|---|
| 86 | # unit titles (such as .. function::). |
|---|
| 87 | add_module_names = False |
|---|
| 88 | |
|---|
| 89 | # If true, sectionauthor and moduleauthor directives will be shown in the |
|---|
| 90 | # output. They are ignored by default. |
|---|
| 91 | #show_authors = False |
|---|
| 92 | |
|---|
| 93 | # The name of the Pygments (syntax highlighting) style to use. |
|---|
| 94 | pygments_style = 'sphinx' |
|---|
| 95 | |
|---|
| 96 | |
|---|
| 97 | # Options for HTML output |
|---|
| 98 | # ----------------------- |
|---|
| 99 | |
|---|
| 100 | # The style sheet to use for HTML and HTML Help pages. A file of that name |
|---|
| 101 | # must exist either in Sphinx' static/ path, or in one of the custom paths |
|---|
| 102 | # given in html_static_path. |
|---|
| 103 | html_style = 'timeseries.css' |
|---|
| 104 | |
|---|
| 105 | # The name for this set of Sphinx documents. If None, it defaults to |
|---|
| 106 | # "<project> v<release> documentation". |
|---|
| 107 | html_title = "%s v%s Reference Guide" % (project, version) |
|---|
| 108 | |
|---|
| 109 | # Add any paths that contain custom static files (such as style sheets) here, |
|---|
| 110 | # relative to this directory. They are copied after the builtin static files, |
|---|
| 111 | # so a file named "default.css" will overwrite the builtin "default.css". |
|---|
| 112 | html_static_path = ['_static'] |
|---|
| 113 | |
|---|
| 114 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
|---|
| 115 | # using the given strftime format. |
|---|
| 116 | html_last_updated_fmt = '%b %d, %Y' |
|---|
| 117 | |
|---|
| 118 | # If true, SmartyPants will be used to convert quotes and dashes to |
|---|
| 119 | # typographically correct entities. |
|---|
| 120 | #html_use_smartypants = True |
|---|
| 121 | |
|---|
| 122 | # Content template for the index page. |
|---|
| 123 | html_index = 'index.html' |
|---|
| 124 | |
|---|
| 125 | # Custom sidebar templates, maps document names to template names. |
|---|
| 126 | html_sidebars = {'index': 'indexsidebar.html'} |
|---|
| 127 | |
|---|
| 128 | # Additional templates that should be rendered to pages, maps page names to |
|---|
| 129 | # template names. |
|---|
| 130 | html_additional_pages = {'index': 'index.html'} |
|---|
| 131 | |
|---|
| 132 | # If false, no module index is generated. |
|---|
| 133 | html_use_modindex = True |
|---|
| 134 | |
|---|
| 135 | # If true, the reST sources are included in the HTML build as _sources/<name>. |
|---|
| 136 | #html_copy_source = True |
|---|
| 137 | |
|---|
| 138 | # If true, an OpenSearch description file will be output, and all pages will |
|---|
| 139 | # contain a <link> tag referring to it. The value of this option must be the |
|---|
| 140 | # base URL from which the finished HTML is served. |
|---|
| 141 | #html_use_opensearch = '' |
|---|
| 142 | |
|---|
| 143 | # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). |
|---|
| 144 | #html_file_suffix = '.xhtml' |
|---|
| 145 | |
|---|
| 146 | # Output file base name for HTML help builder. |
|---|
| 147 | htmlhelp_basename = 'TimeSeriesDoc' |
|---|
| 148 | |
|---|
| 149 | # Pngmath should try to align formulas properly |
|---|
| 150 | pngmath_use_preview = True |
|---|
| 151 | |
|---|
| 152 | |
|---|
| 153 | # Options for LaTeX output |
|---|
| 154 | # ------------------------ |
|---|
| 155 | |
|---|
| 156 | # The paper size ('letter' or 'a4'). |
|---|
| 157 | #latex_paper_size = 'letter' |
|---|
| 158 | |
|---|
| 159 | # The font size ('10pt', '11pt' or '12pt'). |
|---|
| 160 | #latex_font_size = '10pt' |
|---|
| 161 | |
|---|
| 162 | # Grouping the document tree into LaTeX files. List of tuples |
|---|
| 163 | # (source start file, target name, title, author, document class [howto/manual]). |
|---|
| 164 | _stdauthor = u"Written by Pierre Gérard-Marchant and Matt Knox" |
|---|
| 165 | latex_documents = [ |
|---|
| 166 | ('index', 'TimeSeries.tex', 'TimeSeries Reference Guide', |
|---|
| 167 | _stdauthor, 'manual'), |
|---|
| 168 | ] |
|---|
| 169 | |
|---|
| 170 | # The name of an image file (relative to this directory) to place at the top of |
|---|
| 171 | # the title page. |
|---|
| 172 | #latex_logo = None |
|---|
| 173 | |
|---|
| 174 | # For "manual" documents, if this is true, then toplevel headings are parts, |
|---|
| 175 | # not chapters. |
|---|
| 176 | #latex_use_parts = False |
|---|
| 177 | |
|---|
| 178 | # Additional stuff for the LaTeX preamble. |
|---|
| 179 | latex_preamble = r''' |
|---|
| 180 | \usepackage{ucs} |
|---|
| 181 | \usepackage{amsmath} |
|---|
| 182 | |
|---|
| 183 | % In the parameters section, place a newline after the Parameters |
|---|
| 184 | % header |
|---|
| 185 | \usepackage{expdlist} |
|---|
| 186 | \let\latexdescription=\description |
|---|
| 187 | \def\description{\latexdescription{}{} \breaklabel} |
|---|
| 188 | |
|---|
| 189 | % Make Examples/etc section headers smaller and more compact |
|---|
| 190 | \makeatletter |
|---|
| 191 | \titleformat{\paragraph}{\normalsize\py@HeaderFamily}% |
|---|
| 192 | {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor} |
|---|
| 193 | \titlespacing*{\paragraph}{0pt}{1ex}{0pt} |
|---|
| 194 | \makeatother |
|---|
| 195 | |
|---|
| 196 | % Do not quote function signatures: asd() instead of `asd()` |
|---|
| 197 | \renewcommand\samp[1]{\code{#1}} |
|---|
| 198 | |
|---|
| 199 | % Large function headers |
|---|
| 200 | \let\oldmethodline=\methodline |
|---|
| 201 | \renewcommand\methodline[2]{\oldmethodline{\Large #1}{#2}} |
|---|
| 202 | |
|---|
| 203 | % Large method headers |
|---|
| 204 | \let\oldfuncline=\funcline |
|---|
| 205 | \renewcommand\funcline[2]{\oldfuncline{\Large #1}{#2}} |
|---|
| 206 | |
|---|
| 207 | % Fix footer/header |
|---|
| 208 | \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter.\ #1}}{}} |
|---|
| 209 | \renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\thesection.\ #1}}} |
|---|
| 210 | |
|---|
| 211 | ''' |
|---|
| 212 | |
|---|
| 213 | # Documents to append as an appendix to all manuals. |
|---|
| 214 | #latex_appendices = [] |
|---|
| 215 | |
|---|
| 216 | # If false, no module index is generated. |
|---|
| 217 | latex_use_modindex = False |
|---|
| 218 | |
|---|
| 219 | # ----------------------------------------------------------------------------- |
|---|
| 220 | # Intersphinx configuration |
|---|
| 221 | # ----------------------------------------------------------------------------- |
|---|
| 222 | intersphinx_mapping = {'http://docs.python.org/dev': None, |
|---|
| 223 | 'http://docs.scipy.org/doc/numpy': None, |
|---|
| 224 | 'http://docs.scipy.org/doc/scipy/reference': None, |
|---|
| 225 | 'http://matplotlib.sourceforge.net': None} |
|---|
| 226 | |
|---|
| 227 | |
|---|
| 228 | # ----------------------------------------------------------------------------- |
|---|
| 229 | # Numpy extensions |
|---|
| 230 | # ----------------------------------------------------------------------------- |
|---|
| 231 | |
|---|
| 232 | # If we want to do a phantom import from an XML file for all autodocs |
|---|
| 233 | phantom_import_file = 'dump.xml' |
|---|
| 234 | |
|---|
| 235 | # Edit links |
|---|
| 236 | #numpydoc_edit_link = '`Edit </pydocweb/doc/%(full_name)s/>`__' |
|---|
| 237 | |
|---|
| 238 | # ----------------------------------------------------------------------------- |
|---|
| 239 | # Coverage checker |
|---|
| 240 | # ----------------------------------------------------------------------------- |
|---|
| 241 | coverage_ignore_modules = r""" |
|---|
| 242 | """.split() |
|---|
| 243 | coverage_ignore_functions = r""" |
|---|
| 244 | test($|_) (some|all)true bitwise_not cumproduct pkgload |
|---|
| 245 | generic\. |
|---|
| 246 | """.split() |
|---|
| 247 | coverage_ignore_classes = r""" |
|---|
| 248 | """.split() |
|---|
| 249 | |
|---|
| 250 | coverage_c_path = [] |
|---|
| 251 | coverage_c_regexes = {} |
|---|
| 252 | coverage_ignore_c_items = {} |
|---|
| 253 | |
|---|
| 254 | # |
|---|
| 255 | plotting_scripts_directory = "examples/plotting" |
|---|