|
20 | 20 | # |
21 | 21 | import os |
22 | 22 | import sys |
23 | | -sys.path.insert(0, os.path.abspath('..')) |
| 23 | + |
| 24 | +sys.path.insert(0, os.path.abspath("..")) |
24 | 25 |
|
25 | 26 | import pydsm |
26 | 27 |
|
|
32 | 33 |
|
33 | 34 | # Add any Sphinx extension module names here, as strings. They can be |
34 | 35 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
35 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', |
36 | | - 'nbsphinx', |
37 | | - 'sphinx.ext.mathjax',] |
| 36 | +extensions = [ |
| 37 | + "sphinx.ext.autodoc", |
| 38 | + "sphinx.ext.viewcode", |
| 39 | + "nbsphinx", |
| 40 | + "sphinx.ext.mathjax", |
| 41 | +] |
38 | 42 |
|
39 | | -exclude_patterns = ['_build', '**.ipynb_checkpoints'] |
| 43 | +exclude_patterns = ["_build", "**.ipynb_checkpoints"] |
40 | 44 | # Add any paths that contain templates here, relative to this directory. |
41 | | -templates_path = ['_templates'] |
| 45 | +templates_path = ["_templates"] |
42 | 46 |
|
43 | 47 | # The suffix(es) of source filenames. |
44 | 48 | # You can specify multiple suffix as a list of string: |
45 | 49 | # |
46 | 50 | # source_suffix = ['.rst', '.md'] |
47 | | -source_suffix = '.rst' |
| 51 | +source_suffix = ".rst" |
48 | 52 |
|
49 | 53 | # The master toctree document. |
50 | | -master_doc = 'index' |
| 54 | +master_doc = "index" |
51 | 55 |
|
52 | 56 | # General information about the project. |
53 | | -project = u'pydsm' |
54 | | -copyright = u"2019, Nicky Sandhu" |
55 | | -author = u"Nicky Sandhu" |
| 57 | +project = "pydsm" |
| 58 | +copyright = "2019, Nicky Sandhu" |
| 59 | +author = "Nicky Sandhu" |
56 | 60 |
|
57 | 61 | # The version info for the project you're documenting, acts as replacement |
58 | 62 | # for |version| and |release|, also used in various other places throughout |
|
73 | 77 | # List of patterns, relative to source directory, that match files and |
74 | 78 | # directories to ignore when looking for source files. |
75 | 79 | # This patterns also effect to html_static_path and html_extra_path |
76 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 80 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
77 | 81 |
|
78 | 82 | # The name of the Pygments (syntax highlighting) style to use. |
79 | | -pygments_style = 'sphinx' |
| 83 | +pygments_style = "sphinx" |
80 | 84 |
|
81 | 85 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
82 | 86 | todo_include_todos = False |
|
87 | 91 | # The theme to use for HTML and HTML Help pages. See the documentation for |
88 | 92 | # a list of builtin themes. |
89 | 93 | # |
90 | | -html_theme = 'alabaster' |
| 94 | +html_theme = "sphinx_rtd_theme" |
| 95 | +html_theme_options = { |
| 96 | + "navigation_depth": 3, |
| 97 | + "collapse_navigation": False, |
| 98 | +} |
91 | 99 |
|
92 | 100 | # Theme options are theme-specific and customize the look and feel of a |
93 | 101 | # theme further. For a list of options available for each theme, see the |
|
98 | 106 | # Add any paths that contain custom static files (such as style sheets) here, |
99 | 107 | # relative to this directory. They are copied after the builtin static files, |
100 | 108 | # so a file named "default.css" will overwrite the builtin "default.css". |
101 | | -html_static_path = ['_static'] |
| 109 | +html_static_path = ["_static"] |
102 | 110 |
|
103 | 111 |
|
104 | 112 | # -- Options for HTMLHelp output --------------------------------------- |
105 | 113 |
|
106 | 114 | # Output file base name for HTML help builder. |
107 | | -htmlhelp_basename = 'pydsmdoc' |
| 115 | +htmlhelp_basename = "pydsmdoc" |
108 | 116 |
|
109 | 117 |
|
110 | 118 | # -- Options for LaTeX output ------------------------------------------ |
|
113 | 121 | # The paper size ('letterpaper' or 'a4paper'). |
114 | 122 | # |
115 | 123 | # 'papersize': 'letterpaper', |
116 | | - |
117 | 124 | # The font size ('10pt', '11pt' or '12pt'). |
118 | 125 | # |
119 | 126 | # 'pointsize': '10pt', |
120 | | - |
121 | 127 | # Additional stuff for the LaTeX preamble. |
122 | 128 | # |
123 | 129 | # 'preamble': '', |
124 | | - |
125 | 130 | # Latex figure (float) alignment |
126 | 131 | # |
127 | 132 | # 'figure_align': 'htbp', |
|
131 | 136 | # (source start file, target name, title, author, documentclass |
132 | 137 | # [howto, manual, or own class]). |
133 | 138 | latex_documents = [ |
134 | | - (master_doc, 'pydsm.tex', |
135 | | - u'pydsm Documentation', |
136 | | - u'Nicky Sandhu', 'manual'), |
| 139 | + (master_doc, "pydsm.tex", "pydsm Documentation", "Nicky Sandhu", "manual"), |
137 | 140 | ] |
138 | 141 |
|
139 | 142 |
|
140 | 143 | # -- Options for manual page output ------------------------------------ |
141 | 144 |
|
142 | 145 | # One entry per manual page. List of tuples |
143 | 146 | # (source start file, name, description, authors, manual section). |
144 | | -man_pages = [ |
145 | | - (master_doc, 'pydsm', |
146 | | - u'pydsm Documentation', |
147 | | - [author], 1) |
148 | | -] |
| 147 | +man_pages = [(master_doc, "pydsm", "pydsm Documentation", [author], 1)] |
149 | 148 |
|
150 | 149 |
|
151 | 150 | # -- Options for Texinfo output ---------------------------------------- |
|
154 | 153 | # (source start file, target name, title, author, |
155 | 154 | # dir menu entry, description, category) |
156 | 155 | texinfo_documents = [ |
157 | | - (master_doc, 'pydsm', |
158 | | - u'pydsm Documentation', |
159 | | - author, |
160 | | - 'pydsm', |
161 | | - 'Python utlities for DSM2', |
162 | | - 'Miscellaneous'), |
| 156 | + ( |
| 157 | + master_doc, |
| 158 | + "pydsm", |
| 159 | + "pydsm Documentation", |
| 160 | + author, |
| 161 | + "pydsm", |
| 162 | + "Python utlities for DSM2", |
| 163 | + "Miscellaneous", |
| 164 | + ), |
163 | 165 | ] |
164 | | - |
165 | | - |
166 | | - |
0 commit comments