|
12 | 12 | #
|
13 | 13 | import sys
|
14 | 14 | import os
|
15 |
| -sys.path.insert(0, os.path.abspath('../..')) |
| 15 | + |
| 16 | +sys.path.insert(0, os.path.abspath("../..")) |
16 | 17 |
|
17 | 18 |
|
18 | 19 | # -- Project information -----------------------------------------------------
|
19 | 20 |
|
20 |
| -project = 'snmf' |
21 |
| -copyright = '2009-2023, Trustees of Columbia University in the City of New York, all rights reserved.' |
22 |
| -author = 'Ran Gu, Adeolu Ajayi, Qiang Du, Simon J.L. Billinge' |
| 21 | +project = "snmf" |
| 22 | +copyright = "2009-2023, Trustees of Columbia University in the City of New York, all rights reserved." |
| 23 | +author = "Ran Gu, Adeolu Ajayi, Qiang Du, Simon J.L. Billinge" |
23 | 24 |
|
24 | 25 | # The full version, including alpha/beta/rc tags
|
25 |
| -release = '0.1.0' |
| 26 | +release = "0.1.0" |
26 | 27 |
|
27 | 28 |
|
28 | 29 | # -- General configuration ---------------------------------------------------
|
|
31 | 32 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
32 | 33 | # ones.
|
33 | 34 | import sphinx_rtd_theme
|
34 |
| -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', |
35 |
| - 'sphinx.ext.todo', 'sphinx.ext.viewcode', |
36 |
| - 'sphinx.ext.intersphinx', 'm2r'] |
| 35 | + |
| 36 | +extensions = [ |
| 37 | + "sphinx.ext.autodoc", |
| 38 | + "sphinx.ext.napoleon", |
| 39 | + "sphinx.ext.todo", |
| 40 | + "sphinx.ext.viewcode", |
| 41 | + "sphinx.ext.intersphinx", |
| 42 | + "m2r", |
| 43 | +] |
37 | 44 | napoleon_google_docstring = False
|
38 | 45 | napoleon_use_param = False
|
39 | 46 | napoleon_use_ivar = False
|
40 | 47 |
|
41 | 48 | # Add any paths that contain templates here, relative to this directory.
|
42 |
| -templates_path = ['_templates'] |
| 49 | +templates_path = ["_templates"] |
43 | 50 |
|
44 | 51 | from jinja2 import Template, Environment, FileSystemLoader
|
45 | 52 |
|
46 |
| -source_suffix = '.rst' |
| 53 | +source_suffix = ".rst" |
47 | 54 |
|
48 |
| -master_doc = 'index' |
| 55 | +master_doc = "index" |
49 | 56 |
|
50 |
| -language = 'en' |
| 57 | +language = "en" |
51 | 58 | # List of patterns, relative to source directory, that match files and
|
52 | 59 | # directories to ignore when looking for source files.
|
53 | 60 | # This pattern also affects html_static_path and html_extra_path.
|
54 |
| -exclude_patterns = ['Thumbs.db', '.DS_Store'] |
| 61 | +exclude_patterns = ["Thumbs.db", ".DS_Store"] |
55 | 62 |
|
56 |
| -pygments_style = 'sphinx' |
| 63 | +pygments_style = "sphinx" |
57 | 64 |
|
58 | 65 | todo_include_todos = True
|
59 | 66 |
|
60 | 67 | # -- Options for HTML output -------------------------------------------------
|
61 | 68 |
|
62 | 69 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
63 | 70 | # a list of builtin themes.
|
64 |
| -html_theme = 'sphinx_rtd_theme' |
| 71 | +html_theme = "sphinx_rtd_theme" |
65 | 72 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
66 | 73 |
|
67 | 74 | html_theme_options = {}
|
68 | 75 |
|
69 | 76 | # Add any paths that contain custom static files (such as style sheets) here,
|
70 | 77 | # relative to this directory. They are copied after the builtin static files,
|
71 | 78 | # so a file named "default.css" will overwrite the builtin "default.css".
|
72 |
| -html_static_path = ['_static'] |
| 79 | +html_static_path = ["_static"] |
73 | 80 |
|
74 |
| -htmlhelp_basename = 'snmfdoc' |
| 81 | +htmlhelp_basename = "snmfdoc" |
75 | 82 |
|
76 | 83 | latex_documents = [
|
77 |
| - (master_doc, 'snmf.tex', 'Snmf Documentation', |
78 |
| - 'author', 'manual'), |
| 84 | + (master_doc, "snmf.tex", "Snmf Documentation", "author", "manual"), |
79 | 85 | ]
|
80 | 86 |
|
81 |
| -man_pages = [ |
82 |
| - (master_doc, 'snmf', 'Snmf Documentation', [author], 1) |
83 |
| -] |
| 87 | +man_pages = [(master_doc, "snmf", "Snmf Documentation", [author], 1)] |
84 | 88 |
|
85 | 89 | texinfo_documents = [
|
86 |
| - (master_doc, 'snmf', 'Snmf Documentation', author, |
87 |
| - 'snmf', 'One line description of project.', 'Miscellaneous'), |
| 90 | + ( |
| 91 | + master_doc, |
| 92 | + "snmf", |
| 93 | + "Snmf Documentation", |
| 94 | + author, |
| 95 | + "snmf", |
| 96 | + "One line description of project.", |
| 97 | + "Miscellaneous", |
| 98 | + ), |
88 | 99 | ]
|
89 | 100 |
|
90 | 101 | epub_title = project
|
91 | 102 | epub_author = author
|
92 | 103 | epub_publisher = author
|
93 | 104 | epub_copyright = copyright
|
94 | 105 |
|
95 |
| -epub_exclude_files = ['search.html'] |
| 106 | +epub_exclude_files = ["search.html"] |
0 commit comments