From 245f9efef321159088fb9810299807f3b06cfcf7 Mon Sep 17 00:00:00 2001 From: James B Date: Fri, 27 Sep 2024 11:55:52 +0100 Subject: [PATCH] docs: Switch to ODSC theme & config --- .readthedocs.yaml | 11 +++++++---- docs/conf.py | 2 ++ setup.py | 9 ++++++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index c4752a6..3d5c50e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,7 +7,7 @@ version: 2 # Set the version of Python and other tools you might need build: - os: ubuntu-22.04 + os: ubuntu-24.04 tools: python: "3.9" @@ -17,6 +17,9 @@ sphinx: # We recommend specifying your dependencies to enable reproducible builds: # https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html -# python: -# install: -# - requirements: docs/requirements.txt +python: + install: + - method: pip + path: . + extra_requirements: + - dev diff --git a/docs/conf.py b/docs/conf.py index a7749a1..2152b6f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,5 @@ project = "LibCoveWeb2" master_doc = "index" + +html_theme = "odsc_default_sphinx_theme" diff --git a/setup.py b/setup.py index cfc59f1..3ffd0ac 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,13 @@ "celery[redis]", ], extras_require={ - "dev": ["black", "isort", "flake8", "mypy"], + "dev": [ + "black", + "isort", + "flake8", + "mypy", + "sphinx", + "odsc-default-sphinx-theme", + ], }, )