1717import os
1818import re
1919import sys
20+ from datetime import datetime
2021from subprocess import check_call
2122
22- import edx_theme
23+
2324
2425
2526def get_version (* file_paths ):
@@ -57,7 +58,6 @@ def get_version(*file_paths):
5758# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
5859# ones.
5960extensions = [
60- 'edx_theme' ,
6161 'sphinx.ext.autodoc' ,
6262 'sphinx.ext.doctest' ,
6363 'sphinx.ext.intersphinx' ,
@@ -88,8 +88,8 @@ def get_version(*file_paths):
8888
8989# General information about the project.
9090project = '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'
9393project_title = 'Code Annotations'
9494documentation_title = f"{ project_title } "
9595
@@ -160,16 +160,46 @@ def get_version(*file_paths):
160160# The theme to use for HTML and HTML Help pages. See the documentation for
161161# a list of builtin themes.
162162
163- html_theme = 'edx_theme '
163+ html_theme = 'sphinx_book_theme '
164164
165165# Theme options are theme-specific and customize the look and feel of a theme
166166# further. For a list of options available for each theme, see the
167167# documentation.
168168#
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+ }
170200
171201# 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 = []
173203
174204# The name for this set of Sphinx documents.
175205# "<project> v<release> documentation" by default.
@@ -183,13 +213,13 @@ def get_version(*file_paths):
183213# The name of an image file (relative to this directory) to place at the top
184214# of the sidebar.
185215#
186- # html_logo = None
216+ html_logo = "https://logos.openedx.org/open-edx-logo-color.png"
187217
188218# The name of an image file (relative to this directory) to use as a favicon of
189219# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
190220# pixels large.
191221#
192- # html_favicon = None
222+ html_favicon = "https://logos.openedx.org/open-edx-favicon.ico"
193223
194224# Add any paths that contain custom static files (such as style sheets) here,
195225# relative to this directory. They are copied after the builtin static files,
0 commit comments