|
11 | 11 | # All configuration values have a default; values that are commented out
|
12 | 12 | # serve to show the default.
|
13 | 13 |
|
14 |
| -import sys, os |
| 14 | +import os |
| 15 | +import sys |
| 16 | +import subprocess |
15 | 17 |
|
16 | 18 | # Alabaster
|
17 |
| -import alabaster |
| 19 | +#import alabaster |
18 | 20 |
|
19 | 21 | # Read the docs
|
20 |
| -#import sphinx_rtd_theme |
21 |
| - |
22 |
| -import subprocess |
23 |
| - |
24 |
| -read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' |
25 |
| - |
26 |
| -if read_the_docs_build: |
| 22 | +import sphinx_rtd_theme |
27 | 23 |
|
| 24 | +# Run doxygen if building on Read the Docs |
| 25 | +if os.environ.get('READTHEDOCS'): |
28 | 26 | subprocess.call('cd ../ref-manual; doxygen conf.doxygen', shell=True)
|
29 | 27 |
|
30 | 28 | # If extensions (or modules to document with autodoc) are in another directory,
|
|
40 | 38 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
41 | 39 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
42 | 40 | #extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath']
|
43 |
| -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax', 'breathe'] |
| 41 | +extensions = [ |
| 42 | + 'sphinx.ext.intersphinx', |
| 43 | + 'sphinx.ext.autodoc', |
| 44 | + 'sphinx.ext.autosummary', |
| 45 | + 'sphinx.ext.mathjax', |
| 46 | + 'sphinx.ext.viewcode', |
| 47 | + 'breathe', |
| 48 | + 'sphinx_rtd_theme', |
| 49 | +] |
44 | 50 | breathe_projects = { 'hypre': '../ref-manual/xml' }
|
45 | 51 |
|
46 | 52 | # Add any paths that contain templates here, relative to this directory.
|
|
80 | 86 |
|
81 | 87 | # List of patterns, relative to source directory, that match files and
|
82 | 88 | # directories to ignore when looking for source files.
|
83 |
| -exclude_patterns = ['_build'] |
| 89 | +exclude_patterns = [] |
84 | 90 |
|
85 | 91 | # The reST default role (used for this markup: `text`) to use for all documents.
|
86 | 92 | #default_role = None
|
|
107 | 113 |
|
108 | 114 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
109 | 115 | # a list of builtin themes.
|
110 |
| -#html_theme = 'default' |
| 116 | + |
| 117 | +# Classic |
| 118 | +#html_theme = 'classic' |
111 | 119 |
|
112 | 120 | # Alabaster
|
113 |
| -html_theme = 'alabaster' |
| 121 | +#html_theme = 'alabaster' |
114 | 122 |
|
115 | 123 | # Read the docs
|
116 |
| -#html_theme = 'sphinx_rtd_theme' |
| 124 | +html_theme = 'sphinx_rtd_theme' |
117 | 125 |
|
118 | 126 | # Theme options are theme-specific and customize the look and feel of a theme
|
119 | 127 | # further. For a list of options available for each theme, see the
|
120 | 128 | # documentation.
|
121 |
| -#html_theme_options = {} |
122 | 129 |
|
123 |
| -# Alabaster |
124 |
| -html_theme_options = { |
125 |
| - 'page_width': '1200px', |
126 |
| - 'sidebar_width': '300px', |
127 |
| - 'fixed_sidebar': 'true', |
128 |
| -} |
| 130 | +# Classic |
| 131 | +#html_theme_options = { |
| 132 | +# 'body_min_width': '900px', |
| 133 | +# 'sidebarwidth': '300px', |
| 134 | +# 'stickysidebar': 'true', |
| 135 | +#} |
129 | 136 |
|
130 |
| -# Read the docs |
| 137 | +# Alabaster |
131 | 138 | #html_theme_options = {
|
132 |
| -# 'typekit_id': 'hiw1hhg', |
| 139 | +# 'page_width': '1200px', |
| 140 | +# 'sidebar_width': '300px', |
| 141 | +# 'fixed_sidebar': 'true', |
133 | 142 | #}
|
134 | 143 |
|
| 144 | +# Read the docs |
| 145 | +html_theme_options = { |
| 146 | +} |
| 147 | + |
135 | 148 | # Add any paths that contain custom themes here, relative to this directory.
|
136 |
| -#html_theme_path = [] |
137 | 149 |
|
138 | 150 | # Alabaster
|
139 |
| -html_theme_path = [alabaster.get_path()] |
140 |
| - |
141 |
| -# Read the docs |
142 |
| -#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 151 | +#html_theme_path = [alabaster.get_path()] |
143 | 152 |
|
144 | 153 | # The name for this set of Sphinx documents. If None, it defaults to
|
145 | 154 | # "<project> v<release> documentation".
|
|
150 | 159 |
|
151 | 160 | # The name of an image file (relative to this directory) to place at the top
|
152 | 161 | # of the sidebar.
|
153 |
| -#html_logo = None |
| 162 | +#html_logo = 'hypre-nwords.512.png' |
| 163 | +html_logo = 'bw-hypre-nwords.512.png' # Black/white looks better with rtd theme |
154 | 164 |
|
155 | 165 | # The name of an image file (within the static path) to use as favicon of the
|
156 | 166 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
|
161 | 171 | # relative to this directory. They are copied after the builtin static files,
|
162 | 172 | # so a file named "default.css" will overwrite the builtin "default.css".
|
163 | 173 | html_static_path = ['_static']
|
| 174 | +html_css_files = ["custom.css"] |
164 | 175 |
|
165 | 176 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
166 | 177 | # using the given strftime format.
|
|
171 | 182 | #html_use_smartypants = True
|
172 | 183 |
|
173 | 184 | # Custom sidebar templates, maps document names to template names.
|
174 |
| -#html_sidebars = {} |
| 185 | + |
| 186 | +# Classic |
| 187 | +#html_sidebars = { |
| 188 | +# '**': [ |
| 189 | +# 'globaltoc.html', |
| 190 | +# 'relations.html', |
| 191 | +# 'searchbox.html', |
| 192 | +# ] |
| 193 | +#} |
175 | 194 |
|
176 | 195 | # Alabaster
|
177 |
| -html_sidebars = { |
178 |
| - '**': [ |
179 |
| - 'about.html', |
180 |
| - 'navigation.html', |
181 |
| - 'relations.html', |
182 |
| - 'searchbox.html', |
183 |
| - 'donate.html', |
184 |
| - ] |
185 |
| -} |
| 196 | +#html_sidebars = { |
| 197 | +# '**': [ |
| 198 | +# 'about.html', |
| 199 | +# 'navigation.html', |
| 200 | +# 'relations.html', |
| 201 | +# 'searchbox.html', |
| 202 | +# ] |
| 203 | +#} |
186 | 204 |
|
187 | 205 | # Additional templates that should be rendered to pages, maps page names to
|
188 | 206 | # template names.
|
|
0 commit comments