Skip to content

Commit 2fc2a8f

Browse files
authored
fix: 404 page should have absolute paths for links (#93)
1 parent 703389c commit 2fc2a8f

File tree

3 files changed

+3016
-2997
lines changed

3 files changed

+3016
-2997
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dev = [
3232
"pyarrow<20.0.0",
3333
"ragas>=0.1.5,<=0.2.7",
3434
"ipywidgets>=8.1.7",
35+
"sphinx-notfound-page>=1.1.0",
3536
"sphinxext-opengraph[social_cards]>=0.12.0",
3637
"pandoc>=2.4",
3738
"torch>=2.8.0",

script-docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"fix_dataclass",
4040
"sphinx_tabs.tabs",
4141
"sphinxext.opengraph",
42+
"notfound.extension",
4243
# "sphinx_autodoc_typehints",
4344
]
4445

@@ -183,3 +184,7 @@ def linkcode_resolve(domain, info):
183184
print("##############")
184185

185186
return f"https://github.com/Giskard-AI/giskard-hub/blob/main/src/giskard_hub{filename}{linespec}"
187+
188+
189+
# Make 404 page work
190+
notfound_urls_prefix = None

0 commit comments

Comments
 (0)