|
20 | 20 | #
|
21 | 21 | import os
|
22 | 22 | import sys
|
| 23 | +import sphinx_rtd_theme |
23 | 24 | from sphinx.ext.autodoc import between
|
24 | 25 | # from unittest.mock import MagicMock
|
25 | 26 |
|
|
57 | 58 |
|
58 | 59 | # General information about the project.
|
59 | 60 | project = 'bapsflib'
|
60 |
| -copyright = '2017, Erik T. Everson' |
| 61 | +copyright = '2017-2018, Erik T. Everson' |
61 | 62 | author = 'Erik T. Everson'
|
62 | 63 |
|
63 | 64 | # The version info for the project you're documenting, acts as
|
|
96 | 97 | #
|
97 | 98 | #html_theme = 'alabaster'
|
98 | 99 | #html_theme = 'default'
|
99 |
| -on_rtd = os.environ.get('READTHEDOCS') == 'True' |
100 |
| -if on_rtd: |
101 |
| - html_theme = 'default' |
102 |
| -else: |
103 |
| - html_theme = 'sphinx_rtd_theme' |
| 100 | +#on_rtd = os.environ.get('READTHEDOCS') == 'True' |
| 101 | +#if on_rtd: |
| 102 | +# html_theme = 'default' |
| 103 | +#else: |
| 104 | +# html_theme = 'sphinx_rtd_theme' |
| 105 | +html_theme = 'sphinx_rtd_theme' |
104 | 106 |
|
105 | 107 | # Theme options are theme-specific and customize the look and feel of a
|
106 | 108 | # theme further. For a list of options available for each theme, see
|
|
114 | 116 | # here, relative to this directory. They are copied after the builtin
|
115 | 117 | # static files, so a file named "default.css" will overwrite the builtin
|
116 | 118 | # "default.css".
|
117 |
| -html_static_path = ['_static'] |
| 119 | +# - attempt to solve RTD from throwing a WARNING: html_static_theme |
| 120 | +# entry ... does not exist |
| 121 | +# - see issue #1776 on rtfd/readthedocs.org |
| 122 | +# (https://github.com/rtfd/readthedocs.org/issues/1776) |
| 123 | +# |
| 124 | +# html_static_path = ['_static'] |
| 125 | +html_static_path = [] |
118 | 126 |
|
119 | 127 | # Custom sidebar templates, must be a dictionary that maps document
|
120 | 128 | # names to template names.
|
|
0 commit comments