From 6937d25f020ab8d88e3ac27a69f703613b16ddc4 Mon Sep 17 00:00:00 2001 From: James B Date: Fri, 1 Sep 2023 09:00:09 +0100 Subject: [PATCH] .readthedocs.yaml Lock black to version that last passed Set theme explicetly --- .readthedocs.yaml | 22 ++++++++++++++++++++++ docs/conf.py | 6 ++++++ setup.py | 10 +++++++++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..c4752a6 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,22 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.9" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +# 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 diff --git a/docs/conf.py b/docs/conf.py index 4c083b9..33fb131 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,9 @@ project = "OCDS Additions" master_doc = "index" + +extensions = [ + "sphinx_rtd_theme", +] + +html_theme = "sphinx_rtd_theme" diff --git a/setup.py b/setup.py index c77cf3e..01810c4 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,15 @@ "flattentool>0.17", ], extras_require={ - "dev": ["pytest", "black", "isort", "flake8", "mypy"], + "dev": [ + "pytest", + "black==22.12.0", + "isort", + "flake8", + "mypy", + "sphinx", + "sphinx_rtd_theme", + ], }, classifiers=[], entry_points={