Skip to content

Commit

Permalink
chore: deprecate edx-sphinx-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
huniafatima-arbi committed Jul 29, 2024
1 parent 53d4213 commit 3e0ac90
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
13 changes: 5 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import sys
from subprocess import check_call

import edx_theme
import sphinx_book_theme


def get_version(*file_paths):
Expand Down Expand Up @@ -59,7 +59,7 @@ def get_version(*file_paths):
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'edx_theme',
'sphinx_book_theme',
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
Expand Down Expand Up @@ -90,8 +90,8 @@ def get_version(*file_paths):

# General information about the project.
project = 'edx_exams'
copyright = edx_theme.COPYRIGHT # pylint: disable=redefined-builtin
author = edx_theme.AUTHOR
copyright = 'COPYRIGHT' # pylint: disable=redefined-builtin
author = 'AUTHOR'
project_title = 'edx_exams'
documentation_title = f"{project_title}"

Expand Down Expand Up @@ -172,17 +172,14 @@ def get_version(*file_paths):
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.

html_theme = 'edx_theme'
html_theme = 'sphinx_book_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}

# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = [edx_theme.get_html_theme_path()]

# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
Expand Down
2 changes: 1 addition & 1 deletion requirements/doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-r test.txt # Core and testing dependencies for this package

doc8 # reStructuredText style checker
edx_sphinx_theme # edX theme for Sphinx output
sphinx_book_theme # sphinx book theme
twine # Validates README.rst for usage on PyPI
build # Needed to build the wheel for twine check
Sphinx # Documentation builder
43 changes: 24 additions & 19 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# make upgrade
# pip-compile --output-file=requirements/doc.txt requirements/doc.in
#
accessible-pygments==0.0.5
# via pydata-sphinx-theme
alabaster==0.7.13
# via sphinx
appdirs==1.4.4
Expand All @@ -30,14 +32,15 @@ attrs==23.2.0
# lti-consumer-xblock
# openedx-events
babel==2.15.0
# via sphinx
# via
# pydata-sphinx-theme
# sphinx
backports-tarfile==1.2.0
# via jaraco-context
backports-zoneinfo==0.2.1
# via
# -r requirements/test.txt
# django
# djangorestframework
# via -r requirements/test.txt
beautifulsoup4==4.12.3
# via pydata-sphinx-theme
bleach==6.1.0
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -130,7 +133,6 @@ distlib==0.3.8
django==4.2.14
# via
# -c requirements/common_constraints.txt
# -r requirements/test.txt
# django-appconf
# django-config-models
# django-cors-headers
Expand Down Expand Up @@ -216,6 +218,7 @@ doc8==1.1.1
docutils==0.19
# via
# doc8
# pydata-sphinx-theme
# readme-renderer
# restructuredtext-lint
# sphinx
Expand Down Expand Up @@ -265,8 +268,6 @@ edx-opaque-keys[django]==2.10.0
# openedx-events
edx-rest-api-client==5.7.1
# via -r requirements/test.txt
edx-sphinx-theme==3.1.0
# via -r requirements/doc.in
edx-toggles==5.2.0
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -322,8 +323,6 @@ importlib-metadata==6.11.0
# keyring
# sphinx
# twine
importlib-resources==6.4.0
# via keyring
inflection==0.5.1
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -435,6 +434,7 @@ packaging==24.1
# -r requirements/test.txt
# build
# drf-yasg
# pydata-sphinx-theme
# pyproject-api
# pytest
# sphinx
Expand Down Expand Up @@ -469,9 +469,13 @@ pycryptodomex==3.20.0
# -r requirements/test.txt
# lti-consumer-xblock
# pyjwkest
pydata-sphinx-theme==0.15.4
# via sphinx-book-theme
pygments==2.18.0
# via
# accessible-pygments
# doc8
# pydata-sphinx-theme
# readme-renderer
# rich
# sphinx
Expand Down Expand Up @@ -551,7 +555,6 @@ python3-openid==3.2.0
pytz==2024.1
# via
# -r requirements/test.txt
# babel
# drf-yasg
# xblock
pyyaml==6.0.1
Expand Down Expand Up @@ -617,7 +620,6 @@ six==1.16.0
# edx-ccx-keys
# edx-django-release-util
# edx-lint
# edx-sphinx-theme
# fs
# fs-s3fs
# pyjwkest
Expand All @@ -637,10 +639,15 @@ social-auth-core==4.5.4
# -r requirements/test.txt
# edx-auth-backends
# social-auth-app-django
soupsieve==2.5
# via beautifulsoup4
sphinx==5.3.0
# via
# -r requirements/doc.in
# edx-sphinx-theme
# pydata-sphinx-theme
# sphinx-book-theme
sphinx-book-theme==1.1.3
# via -r requirements/doc.in
sphinxcontrib-applehelp==1.0.4
# via sphinx
sphinxcontrib-devhelp==1.0.2
Expand Down Expand Up @@ -692,8 +699,8 @@ typing-extensions==4.12.2
# asgiref
# astroid
# edx-opaque-keys
# pydata-sphinx-theme
# pylint
# rich
uritemplate==4.1.1
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -731,9 +738,7 @@ xblock==5.0.0
# -r requirements/test.txt
# lti-consumer-xblock
zipp==3.19.2
# via
# importlib-metadata
# importlib-resources
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# setuptools

0 comments on commit 3e0ac90

Please sign in to comment.