From 1e13a8fd23b4c51cf48d31bf13a778f497231800 Mon Sep 17 00:00:00 2001 From: James B Date: Fri, 27 Sep 2024 11:48:20 +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 197212b..43ec2e2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,5 @@ project = "LibCove2" master_doc = "index" + +html_theme = "odsc_default_sphinx_theme" diff --git a/setup.py b/setup.py index bf3223c..9abf0fa 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,13 @@ install_requires=["requests"], classifiers=[], extras_require={ - "dev": ["black", "isort", "flake8", "mypy"], + "dev": [ + "black", + "isort", + "flake8", + "mypy", + "sphinx", + "odsc-default-sphinx-theme", + ], }, )