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