|
14 | 14 | from __future__ import absolute_import
|
15 | 15 |
|
16 | 16 | import os
|
| 17 | +from datetime import datetime |
| 18 | + |
17 | 19 |
|
18 |
| -import edx_theme |
19 | 20 |
|
20 | 21 | # on_rtd is whether we are on readthedocs.org
|
21 | 22 | on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
|
33 | 34 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
34 | 35 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
35 | 36 | extensions = [
|
36 |
| - 'edx_theme', |
37 | 37 | ]
|
38 | 38 |
|
39 | 39 | # Add any paths that contain templates here, relative to this directory.
|
|
50 | 50 |
|
51 | 51 | # General information about the project.
|
52 | 52 | project = u'E-Commerce Service'
|
53 |
| -author = edx_theme.AUTHOR |
54 |
| -copyright = edx_theme.COPYRIGHT # pylint: disable=redefined-builtin |
| 53 | +author = 'edX Inc.' |
| 54 | +copyright = f'{datetime.now().year}, edX Inc.' # pylint: disable=redefined-builtin |
55 | 55 |
|
56 | 56 | # The version info for the project you're documenting, acts as replacement for
|
57 | 57 | # |version| and |release|, also used in various other places throughout the
|
|
101 | 101 |
|
102 | 102 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
103 | 103 | # a list of builtin themes.
|
104 |
| -html_theme = 'edx_theme' |
| 104 | +html_theme = 'sphinx_book_theme' |
105 | 105 |
|
106 | 106 | # Theme options are theme-specific and customize the look and feel of a theme
|
107 | 107 | # further. For a list of options available for each theme, see the
|
108 | 108 | # documentation.
|
109 |
| -# html_theme_options = {} |
110 |
| - |
| 109 | +html_theme_options = { |
| 110 | + "repository_url": "https://github.com/openedx/ecommerce", |
| 111 | + "repository_branch": "master", |
| 112 | + "path_to_docs": "docs/", |
| 113 | + "home_page_in_toc": True, |
| 114 | + "use_repository_button": True, |
| 115 | + "use_issues_button": True, |
| 116 | + "use_edit_page_button": True, |
| 117 | + # Please don't change unless you know what you're doing. |
| 118 | + "extra_footer": """ |
| 119 | + <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> |
| 120 | + <img |
| 121 | + alt="Creative Commons License" |
| 122 | + style="border-width:0" |
| 123 | + src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png"/> |
| 124 | + </a> |
| 125 | + <br> |
| 126 | + These works by |
| 127 | + <a |
| 128 | + xmlns:cc="https://creativecommons.org/ns#" |
| 129 | + href="https://openedx.org" |
| 130 | + property="cc:attributionName" |
| 131 | + rel="cc:attributionURL" |
| 132 | + >The Center for Reimagining Learning</a> |
| 133 | + are licensed under a |
| 134 | + <a |
| 135 | + rel="license" |
| 136 | + href="https://creativecommons.org/licenses/by-sa/4.0/" |
| 137 | + >Creative Commons Attribution-ShareAlike 4.0 International License</a>. |
| 138 | + """ |
| 139 | +} |
111 | 140 | # Add any paths that contain custom themes here, relative to this directory.
|
112 |
| -html_theme_path = [edx_theme.get_html_theme_path()] |
| 141 | +# html_theme_path = [] |
113 | 142 |
|
114 | 143 | # The name for this set of Sphinx documents. If None, it defaults to
|
115 | 144 | # "<project> v<release> documentation".
|
|
120 | 149 |
|
121 | 150 | # The name of an image file (relative to this directory) to place at the top
|
122 | 151 | # of the sidebar.
|
123 |
| -# html_logo = None |
| 152 | +html_logo = "https://logos.openedx.org/open-edx-logo-color.png" |
124 | 153 |
|
125 | 154 | # The name of an image file (within the static path) to use as favicon of the
|
126 | 155 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
127 | 156 | # pixels large.
|
128 |
| -# html_favicon = None |
| 157 | +html_favicon = "https://logos.openedx.org/open-edx-favicon.ico" |
129 | 158 |
|
130 | 159 | # Add any paths that contain custom static files (such as style sheets) here,
|
131 | 160 | # relative to this directory. They are copied after the builtin static files,
|
|
0 commit comments