|
33 | 33 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
34 | 34 | # ones. |
35 | 35 | extensions = [ |
36 | | - 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', |
37 | | - 'sphinx.ext.viewcode', 'sphinx.ext.githubpages', 'sphinx.ext.imgmath' |
| 36 | + 'sphinx.ext.autodoc', |
| 37 | + 'sphinx.ext.doctest', |
| 38 | + 'sphinx.ext.intersphinx', |
| 39 | + 'sphinx.ext.todo', |
| 40 | + 'sphinx.ext.coverage', |
| 41 | + 'sphinx.ext.viewcode', |
| 42 | + 'sphinx.ext.githubpages', |
| 43 | + 'sphinx.ext.imgmath', |
| 44 | + 'sphinx_multiversion', |
38 | 45 | ] |
39 | 46 |
|
40 | 47 | # Add any paths that contain templates here, relative to this directory. |
|
87 | 94 | # a list of builtin themes. |
88 | 95 | html_theme = 'classic' |
89 | 96 |
|
90 | | -html_sidebars = { |
91 | | - '**': [ |
92 | | - 'localtoc.html', |
93 | | - 'relations.html', |
94 | | - 'searchbox.html', |
95 | | - ] |
96 | | -} |
| 97 | +html_sidebars = {'**': ['localtoc.html', 'relations.html', 'searchbox.html', 'versioning.html']} |
97 | 98 |
|
98 | 99 | # Theme options are theme-specific and customize the look and feel of a theme |
99 | 100 | # further. For a list of options available for each theme, see the |
|
106 | 107 | html_static_path = ['_static'] |
107 | 108 |
|
108 | 109 | # -- Options for HTMLHelp output ------------------------------------------ |
| 110 | +html_css_files = ['extra.css'] |
109 | 111 |
|
110 | 112 | # Output file base name for HTML help builder. |
111 | 113 | htmlhelp_basename = 'MantidImagingdoc' |
|
158 | 160 |
|
159 | 161 | # Stop sphinx from being a smartypants and merging the -- into a single unicode dash |
160 | 162 | html_use_smartypants = False |
| 163 | + |
| 164 | +# sphinx-multiversion |
| 165 | +smv_tag_whitelist = r'^\d+\.\d+\.\d+$' # tags that look like versions |
| 166 | +smv_branch_whitelist = None # No branches |
| 167 | +smv_released_pattern = r'' |
| 168 | +smv_prebuild_command = "python setup.py docs_api" |
0 commit comments