2
2
import importlib .metadata
3
3
import re
4
4
5
- from hyperlink import URL
5
+ from yarl import URL
6
6
7
7
DOCS = Path (__file__ ).parent
8
8
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"
11
11
12
12
project = "referencing"
13
13
author = "Julian Berman"
38
38
pygments_dark_style = "one-dark"
39
39
40
40
html_theme = "furo"
41
- html_static_path = []
42
41
43
42
# See sphinx-doc/sphinx#10785
44
43
_TYPE_ALIASES = dict (
@@ -92,8 +91,8 @@ def setup(app):
92
91
# -- Options for extlinks extension ------------------------------------------
93
92
94
93
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 ),
97
96
}
98
97
99
98
# -- Options for the linkcheck builder ---------------------------------------
@@ -107,8 +106,8 @@ def entire_domain(host):
107
106
entire_domain ("codecov.io" ),
108
107
entire_domain ("img.shields.io" ),
109
108
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" ),
112
111
]
113
112
114
113
# -- Options for spelling extension ------------------------------------------
0 commit comments