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