|
16 | 16 | import os |
17 | 17 | import re |
18 | 18 | import sys |
| 19 | +from datetime import datetime |
19 | 20 | from subprocess import check_call |
20 | 21 |
|
21 | | -import edx_theme |
| 22 | + |
22 | 23 |
|
23 | 24 |
|
24 | 25 | REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
|
46 | 47 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
47 | 48 | # ones. |
48 | 49 | extensions = [ |
49 | | - 'edx_theme', |
50 | 50 | 'sphinx.ext.autodoc', |
51 | 51 | 'sphinx.ext.doctest', |
52 | 52 | 'sphinx.ext.intersphinx', |
|
77 | 77 |
|
78 | 78 | # General information about the project. |
79 | 79 | project = 'Open edX Devstack' |
80 | | -copyright = edx_theme.COPYRIGHT # pylint: disable=redefined-builtin |
81 | | -author = edx_theme.AUTHOR |
| 80 | +copyright = f'{datetime.now().year}, edX Inc.' # pylint: disable=redefined-builtin |
| 81 | +author = 'edX Inc.' |
82 | 82 | project_title = 'devstack' |
83 | 83 | documentation_title = "{project_title}".format(project_title=project_title) |
84 | 84 |
|
|
158 | 158 | # The theme to use for HTML and HTML Help pages. See the documentation for |
159 | 159 | # a list of builtin themes. |
160 | 160 |
|
161 | | -html_theme = 'edx_theme' |
| 161 | +html_theme = 'sphinx_book_theme' |
162 | 162 |
|
163 | 163 | # Theme options are theme-specific and customize the look and feel of a theme |
164 | 164 | # further. For a list of options available for each theme, see the |
165 | 165 | # documentation. |
166 | 166 | # |
167 | | -# html_theme_options = {} |
| 167 | +html_theme_options = { |
| 168 | + "repository_url": "https://github.com/openedx/devstack", |
| 169 | + "repository_branch": "master", |
| 170 | + "path_to_docs": "docs/", |
| 171 | + "home_page_in_toc": True, |
| 172 | + "use_repository_button": True, |
| 173 | + "use_issues_button": True, |
| 174 | + "use_edit_page_button": True, |
| 175 | + # Please don't change unless you know what you're doing. |
| 176 | + "extra_footer": """ |
| 177 | + <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> |
| 178 | + <img |
| 179 | + alt="Creative Commons License" |
| 180 | + style="border-width:0" |
| 181 | + src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png"/> |
| 182 | + </a> |
| 183 | + <br> |
| 184 | + These works by |
| 185 | + <a |
| 186 | + xmlns:cc="https://creativecommons.org/ns#" |
| 187 | + href="https://openedx.org" |
| 188 | + property="cc:attributionName" |
| 189 | + rel="cc:attributionURL" |
| 190 | + >The Center for Reimagining Learning</a> |
| 191 | + are licensed under a |
| 192 | + <a |
| 193 | + rel="license" |
| 194 | + href="https://creativecommons.org/licenses/by-sa/4.0/" |
| 195 | + >Creative Commons Attribution-ShareAlike 4.0 International License</a>. |
| 196 | + """ |
| 197 | +} |
168 | 198 |
|
169 | 199 | # Add any paths that contain custom themes here, relative to this directory. |
170 | | -html_theme_path = [edx_theme.get_html_theme_path()] |
| 200 | +# html_theme_path = [] |
171 | 201 |
|
172 | 202 | # The name for this set of Sphinx documents. |
173 | 203 | # "<project> v<release> documentation" by default. |
|
181 | 211 | # The name of an image file (relative to this directory) to place at the top |
182 | 212 | # of the sidebar. |
183 | 213 | # |
184 | | -# html_logo = None |
| 214 | +html_logo = "https://logos.openedx.org/open-edx-logo-color.png" |
185 | 215 |
|
186 | 216 | # The name of an image file (relative to this directory) to use as a favicon |
187 | 217 | # of the docs. This file should be a Windows icon file (.ico) being 16x16 |
188 | 218 | # or 32x32 |
189 | 219 | # pixels large. |
190 | 220 | # |
191 | | -# html_favicon = None |
| 221 | +html_favicon = "https://logos.openedx.org/open-edx-favicon.ico" |
192 | 222 |
|
193 | 223 | # Add any paths that contain custom static files (such as style sheets) here, |
194 | 224 | # relative to this directory. They are copied after the builtin static files, |
|
0 commit comments