|
99 | 99 |
|
100 | 100 | # List of patterns, relative to source directory, that match files and |
101 | 101 | # directories to ignore when looking for source files. |
102 | | -exclude_patterns = ['_build', 'scipy-sphinx-theme'] |
| 102 | +exclude_patterns = ['_build'] |
103 | 103 |
|
104 | 104 | # The reST default role (used for this markup: `text`) to use for all |
105 | 105 | # documents. |
|
131 | 131 | # The theme to use for HTML and HTML Help pages. See the documentation for |
132 | 132 | # a list of builtin themes. |
133 | 133 |
|
134 | | -themedir = os.path.join(os.path.dirname(__file__), 'scipy-sphinx-theme', '_theme') |
135 | | -if not os.path.isdir(themedir): |
136 | | - raise RuntimeError("Get the scipy-sphinx-theme first, " |
137 | | - "via git submodule init && git submodule update") |
138 | | - |
139 | | -html_theme = 'scipy' |
140 | | -html_theme_path = [themedir] |
141 | | - |
142 | | -if 'scipyorg' in tags: # noqa: F821 |
143 | | - # Build for the scipy.org website |
144 | | - html_theme_options = { |
145 | | - "edit_link": True, |
146 | | - "sidebar": "right", |
147 | | - "scipy_org_logo": True, |
148 | | - "rootlinks": [("https://scipy.org/", "Scipy.org"), |
149 | | - ("https://docs.scipy.org/", "Docs")] |
150 | | - } |
151 | | -else: |
152 | | - # Default build |
153 | | - html_theme_options = { |
154 | | - "edit_link": False, |
155 | | - "sidebar": "left", |
156 | | - "scipy_org_logo": False, |
157 | | - "rootlinks": [] |
158 | | - } |
159 | | - html_sidebars = {} |
| 134 | +html_theme = "pydata_sphinx_theme" |
| 135 | +html_theme_options = { |
| 136 | + "github_url": "https://github.com/numpy/numpydoc", |
| 137 | + "show_prev_next": False, |
| 138 | + "search_bar_position": "navbar", |
| 139 | +} |
| 140 | +html_sidebars = { |
| 141 | + "**": [], |
| 142 | +} |
160 | 143 |
|
161 | 144 | html_title = "%s v%s Manual" % (project, version) |
162 | 145 | html_last_updated_fmt = '%b %d, %Y' |
|
0 commit comments