Skip to content

Commit 9c42f7d

Browse files
committed
yarl in the docs
1 parent 2fb538b commit 9c42f7d

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

docs/conf.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import importlib.metadata
33
import re
44

5-
from hyperlink import URL
5+
from yarl import URL
66

77
DOCS = Path(__file__).parent
88

9-
GITHUB = URL.from_text("https://github.com/")
10-
HOMEPAGE = GITHUB.child("python-jsonschema", "referencing")
9+
GITHUB = URL("https://github.com/")
10+
HOMEPAGE = GITHUB / "python-jsonschema/referencing"
1111

1212
project = "referencing"
1313
author = "Julian Berman"
@@ -38,7 +38,6 @@
3838
pygments_dark_style = "one-dark"
3939

4040
html_theme = "furo"
41-
html_static_path = []
4241

4342
# See sphinx-doc/sphinx#10785
4443
_TYPE_ALIASES = dict(
@@ -92,8 +91,8 @@ def setup(app):
9291
# -- Options for extlinks extension ------------------------------------------
9392

9493
extlinks = {
95-
"gh": (str(HOMEPAGE.child("%s")), None),
96-
"github": (str(GITHUB.child("%s")), None),
94+
"gh": (str(HOMEPAGE) + "/%s", None),
95+
"github": (str(GITHUB) + "/%s", None),
9796
}
9897

9998
# -- Options for the linkcheck builder ---------------------------------------
@@ -107,8 +106,8 @@ def entire_domain(host):
107106
entire_domain("codecov.io"),
108107
entire_domain("img.shields.io"),
109108
f"{GITHUB}.*#.*",
110-
str(HOMEPAGE.child("actions")),
111-
str(HOMEPAGE.child("python-jsonschema/workflows/CI/badge.svg")),
109+
str(HOMEPAGE / "actions"),
110+
str(HOMEPAGE / "python-jsonschema/workflows/CI/badge.svg"),
112111
]
113112

114113
# -- Options for spelling extension ------------------------------------------

docs/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
file:.#egg=referencing
22
furo
3-
hyperlink
43
pygments-github-lexers
54
sphinx-click
65
sphinx-copybutton
76
sphinx-json-schema-spec
87
sphinx>5
98
sphinxcontrib-spelling>5
9+
yarl

docs/requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ docutils==0.19
2424
# sphinx-click
2525
furo==2022.12.7
2626
# via -r docs/requirements.in
27-
hyperlink==21.0.0
28-
# via -r docs/requirements.in
2927
idna==3.4
3028
# via
31-
# hyperlink
3229
# requests
3330
# yarl
3431
imagesize==1.4.1
@@ -64,7 +61,7 @@ snowballstemmer==2.2.0
6461
# via sphinx
6562
soupsieve==2.3.2.post1
6663
# via beautifulsoup4
67-
sphinx==5.3.0
64+
sphinx==6.0.0
6865
# via
6966
# -r docs/requirements.in
7067
# furo
@@ -98,4 +95,6 @@ sphinxcontrib-spelling==7.7.0
9895
urllib3==1.26.13
9996
# via requests
10097
yarl==1.8.2
101-
# via referencing
98+
# via
99+
# -r docs/requirements.in
100+
# referencing

0 commit comments

Comments
 (0)