Skip to content

Commit bf90717

Browse files
author
James (ODSC)
authored
Merge pull request #10 from OpenDataServices/2024-09-27
docs: Switch to ODSC theme & config
2 parents 5f35baa + 4fd78e6 commit bf90717

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

.readthedocs.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
os: ubuntu-22.04
10+
os: ubuntu-24.04
1111
tools:
1212
python: "3.9"
1313

@@ -17,6 +17,9 @@ sphinx:
1717

1818
# We recommend specifying your dependencies to enable reproducible builds:
1919
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20-
# python:
21-
# install:
22-
# - requirements: docs/requirements.txt
20+
python:
21+
install:
22+
- method: pip
23+
path: .
24+
extra_requirements:
25+
- dev

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
project = "LibCoveWeb2"
22

33
master_doc = "index"
4+
5+
html_theme = "odsc_default_sphinx_theme"

libcoveweb2/templatetags/cove_tags.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ def cove_modal_list(**kw):
1515
@register.inclusion_tag("modal_errors.html")
1616
def cove_modal_errors(**context):
1717
if hasattr(settings, "VALIDATION_ERROR_LOCATIONS_LENGTH"):
18-
context[
19-
"validation_error_locations_length"
20-
] = settings.VALIDATION_ERROR_LOCATIONS_LENGTH
18+
context["validation_error_locations_length"] = (
19+
settings.VALIDATION_ERROR_LOCATIONS_LENGTH
20+
)
2121
else:
2222
context["validation_error_locations_length"] = 1000
2323
if hasattr(settings, "VALIDATION_ERROR_LOCATIONS_SAMPLE"):
24-
context[
25-
"validation_error_locations_sample"
26-
] = settings.VALIDATION_ERROR_LOCATIONS_SAMPLE
24+
context["validation_error_locations_sample"] = (
25+
settings.VALIDATION_ERROR_LOCATIONS_SAMPLE
26+
)
2727
return context
2828

2929

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
"celery[redis]",
3232
],
3333
extras_require={
34-
"dev": ["black", "isort", "flake8", "mypy"],
34+
"dev": [
35+
"black",
36+
"isort",
37+
"flake8",
38+
"mypy",
39+
"sphinx",
40+
"odsc-default-sphinx-theme",
41+
],
3542
},
3643
)

0 commit comments

Comments
 (0)