|
12 | 12 |
|
13 | 13 | import sys |
14 | 14 | import os |
15 | | -import sphinx_bootstrap_theme |
16 | 15 | import matplotlib as mpl |
17 | 16 | mpl.use("Agg") |
18 | 17 |
|
|
40 | 39 | ] |
41 | 40 |
|
42 | 41 | extlinks = {'issue': ('https://github.com/soft-matter/trackpy/issues/%s', |
43 | | - 'GH')} |
| 42 | + 'GH #%s')} |
44 | 43 |
|
45 | 44 | mathjax_path = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js' |
46 | 45 |
|
|
118 | 117 |
|
119 | 118 | # The theme to use for HTML and HTML Help pages. See the documentation for |
120 | 119 | # a list of builtin themes. |
121 | | -html_theme = 'bootstrap' |
| 120 | +html_theme = 'pydata_sphinx_theme' |
122 | 121 |
|
123 | 122 | # Theme options are theme-specific and customize the look and feel of a theme |
124 | 123 | # further. For a list of options available for each theme, see the |
125 | 124 | # documentation. |
126 | 125 | html_theme_options = { |
127 | | - 'source_link_position': "footer", |
128 | | - 'bootswatch_theme': "spacelab", |
129 | | - 'navbar_sidebarrel': False, |
130 | | - 'bootstrap_version': "3", |
131 | | - 'navbar_links': [("Tutorial", "tutorial")], |
| 126 | + "header_links_before_dropdown": 2, |
| 127 | + "navbar_align": "right", |
| 128 | + "secondary_sidebar_items": { |
| 129 | + "*": ["page-toc"], |
| 130 | + "generated/trackpy.*": [], |
| 131 | + |
| 132 | + } |
132 | 133 | } |
133 | | -# Add any paths that contain custom themes here, relative to this directory. |
134 | | -html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() |
135 | 134 |
|
136 | 135 | # The name for this set of Sphinx documents. If None, it defaults to |
137 | 136 | # "<project> v<release> documentation". |
138 | | -#html_title = None |
| 137 | +html_title = "trackpy " + release |
139 | 138 |
|
140 | 139 | # A shorter title for the navigation bar. Default is the same as html_title. |
141 | | -#html_short_title = None |
| 140 | +html_short_title = "trackpy " + release |
| 141 | + |
| 142 | +# Only show left sidebar in API reference |
| 143 | +html_sidebars = { |
| 144 | + "*": [], |
| 145 | + "tutorial/*": [], |
| 146 | + "api": ["sidebar-nav-bs"], |
| 147 | + "generated/trackpy.*": ["sidebar-nav-bs"], |
| 148 | +} |
142 | 149 |
|
143 | 150 | # The name of an image file (relative to this directory) to place at the top |
144 | 151 | # of the sidebar. |
|
0 commit comments