|
| 1 | +#!/usr/bin/env python3 |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | +# |
| 4 | +# constrained-matrix-factorization documentation build configuration file, created by |
| 5 | +# sphinx-quickstart on Thu Jun 28 12:35:56 2018. |
| 6 | +# |
| 7 | +# This file is execfile()d with the current directory set to its |
| 8 | +# containing dir. |
| 9 | +# |
| 10 | +# Note that not all possible configuration values are present in this |
| 11 | +# autogenerated file. |
| 12 | +# |
| 13 | +# All configuration values have a default; values that are commented out |
| 14 | +# serve to show the default. |
| 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 | +# |
| 20 | +# import os |
| 21 | +# import sys |
| 22 | +# sys.path.insert(0, os.path.abspath('.')) |
| 23 | + |
| 24 | + |
| 25 | +# -- General configuration ------------------------------------------------ |
| 26 | + |
| 27 | +# If your documentation needs a minimal Sphinx version, state it here. |
| 28 | +# |
| 29 | +# needs_sphinx = '1.0' |
| 30 | + |
| 31 | +# Add any Sphinx extension module names here, as strings. They can be |
| 32 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 33 | +# ones. |
| 34 | +extensions = [ |
| 35 | + "sphinx.ext.autodoc", |
| 36 | + "sphinx.ext.autosummary", |
| 37 | + "sphinx.ext.githubpages", |
| 38 | + "sphinx.ext.intersphinx", |
| 39 | + "sphinx.ext.mathjax", |
| 40 | + "sphinx.ext.viewcode", |
| 41 | + "IPython.sphinxext.ipython_directive", |
| 42 | + "IPython.sphinxext.ipython_console_highlighting", |
| 43 | + "matplotlib.sphinxext.plot_directive", |
| 44 | + "numpydoc", |
| 45 | + "sphinx_copybutton", |
| 46 | +] |
| 47 | + |
| 48 | +# Configuration options for plot_directive. See: |
| 49 | +# https://github.com/matplotlib/matplotlib/blob/f3ed922d935751e08494e5fb5311d3050a3b637b/lib/matplotlib/sphinxext/plot_directive.py#L81 |
| 50 | +plot_html_show_source_link = False |
| 51 | +plot_html_show_formats = False |
| 52 | + |
| 53 | +# Generate the API documentation when building |
| 54 | +autosummary_generate = True |
| 55 | +numpydoc_show_class_members = False |
| 56 | + |
| 57 | +# Add any paths that contain templates here, relative to this directory. |
| 58 | +templates_path = ["_templates"] |
| 59 | + |
| 60 | +# The suffix(es) of source filenames. |
| 61 | +# You can specify multiple suffix as a list of string: |
| 62 | +# |
| 63 | +# source_suffix = ['.rst', '.md'] |
| 64 | +source_suffix = ".rst" |
| 65 | + |
| 66 | +# The master toctree document. |
| 67 | +master_doc = "index" |
| 68 | + |
| 69 | +# General information about the project. |
| 70 | +project = "constrained-matrix-factorization" |
| 71 | +copyright = "2021, Phil Maffettone" |
| 72 | +author = "Phil Maffettone" |
| 73 | + |
| 74 | +# The version info for the project you're documenting, acts as replacement for |
| 75 | +# |version| and |release|, also used in various other places throughout the |
| 76 | +# built documents. |
| 77 | +# |
| 78 | +import constrainedmf |
| 79 | + |
| 80 | +# The short X.Y version. |
| 81 | +version = constrainedmf.__version__ |
| 82 | +# The full version, including alpha/beta/rc tags. |
| 83 | +release = constrainedmf.__version__ |
| 84 | + |
| 85 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 86 | +# for a list of supported languages. |
| 87 | +# |
| 88 | +# This is also used if you do content translation via gettext catalogs. |
| 89 | +# Usually you set "language" from the command line for these cases. |
| 90 | +language = None |
| 91 | + |
| 92 | +# List of patterns, relative to source directory, that match files and |
| 93 | +# directories to ignore when looking for source files. |
| 94 | +# This patterns also effect to html_static_path and html_extra_path |
| 95 | +exclude_patterns = [] |
| 96 | + |
| 97 | +# The name of the Pygments (syntax highlighting) style to use. |
| 98 | +pygments_style = "sphinx" |
| 99 | + |
| 100 | +# If true, `todo` and `todoList` produce output, else they produce nothing. |
| 101 | +todo_include_todos = False |
| 102 | + |
| 103 | + |
| 104 | +# -- Options for HTML output ---------------------------------------------- |
| 105 | + |
| 106 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 107 | +# a list of builtin themes. |
| 108 | +# |
| 109 | +html_theme = "sphinx_rtd_theme" |
| 110 | +import sphinx_rtd_theme |
| 111 | + |
| 112 | +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 113 | + |
| 114 | +# Theme options are theme-specific and customize the look and feel of a theme |
| 115 | +# further. For a list of options available for each theme, see the |
| 116 | +# documentation. |
| 117 | +# |
| 118 | +# html_theme_options = {} |
| 119 | + |
| 120 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 121 | +# relative to this directory. They are copied after the builtin static files, |
| 122 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 123 | +html_static_path = ["_static"] |
| 124 | + |
| 125 | +# Custom sidebar templates, must be a dictionary that maps document names |
| 126 | +# to template names. |
| 127 | +# |
| 128 | +# This is required for the alabaster theme |
| 129 | +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
| 130 | +html_sidebars = { |
| 131 | + "**": [ |
| 132 | + "relations.html", # needs 'show_related': True theme option to display |
| 133 | + "searchbox.html", |
| 134 | + ] |
| 135 | +} |
| 136 | + |
| 137 | + |
| 138 | +# -- Options for HTMLHelp output ------------------------------------------ |
| 139 | + |
| 140 | +# Output file base name for HTML help builder. |
| 141 | +htmlhelp_basename = "constrainedmf" |
| 142 | + |
| 143 | + |
| 144 | +# -- Options for LaTeX output --------------------------------------------- |
| 145 | + |
| 146 | +latex_elements = { |
| 147 | + # The paper size ('letterpaper' or 'a4paper'). |
| 148 | + # |
| 149 | + # 'papersize': 'letterpaper', |
| 150 | + # The font size ('10pt', '11pt' or '12pt'). |
| 151 | + # |
| 152 | + # 'pointsize': '10pt', |
| 153 | + # Additional stuff for the LaTeX preamble. |
| 154 | + # |
| 155 | + # 'preamble': '', |
| 156 | + # Latex figure (float) alignment |
| 157 | + # |
| 158 | + # 'figure_align': 'htbp', |
| 159 | +} |
| 160 | + |
| 161 | +# Grouping the document tree into LaTeX files. List of tuples |
| 162 | +# (source start file, target name, title, |
| 163 | +# author, documentclass [howto, manual, or own class]). |
| 164 | +latex_documents = [ |
| 165 | + ( |
| 166 | + master_doc, |
| 167 | + "constrainedmf.tex", |
| 168 | + "constrained-matrix-factorization Documentation", |
| 169 | + "Contributors", |
| 170 | + "manual", |
| 171 | + ), |
| 172 | +] |
| 173 | + |
| 174 | + |
| 175 | +# -- Options for manual page output --------------------------------------- |
| 176 | + |
| 177 | +# One entry per manual page. List of tuples |
| 178 | +# (source start file, name, description, authors, manual section). |
| 179 | +man_pages = [ |
| 180 | + ( |
| 181 | + master_doc, |
| 182 | + "constrainedmf", |
| 183 | + "constrained-matrix-factorization Documentation", |
| 184 | + [author], |
| 185 | + 1, |
| 186 | + ) |
| 187 | +] |
| 188 | + |
| 189 | + |
| 190 | +# -- Options for Texinfo output ------------------------------------------- |
| 191 | + |
| 192 | +# Grouping the document tree into Texinfo files. List of tuples |
| 193 | +# (source start file, target name, title, author, |
| 194 | +# dir menu entry, description, category) |
| 195 | +texinfo_documents = [ |
| 196 | + ( |
| 197 | + master_doc, |
| 198 | + "constrainedmf", |
| 199 | + "constrained-matrix-factorization Documentation", |
| 200 | + author, |
| 201 | + "constrainedmf", |
| 202 | + "Advancements on non-negative matrix factorization in PyTorch, with crystallography as a primary use case.", |
| 203 | + "Miscellaneous", |
| 204 | + ), |
| 205 | +] |
| 206 | + |
| 207 | + |
| 208 | +# Example configuration for intersphinx: refer to the Python standard library. |
| 209 | +intersphinx_mapping = { |
| 210 | + "python": ("https://docs.python.org/3/", None), |
| 211 | + "numpy": ("https://numpy.org/doc/stable/", None), |
| 212 | + "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None), |
| 213 | + "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None), |
| 214 | + "matplotlib": ("https://matplotlib.org/stable", None), |
| 215 | +} |
0 commit comments