mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
Generate 404.html (#617)
This commit is contained in:
parent
9aaa97a8b0
commit
145158825d
|
@ -43,6 +43,11 @@
|
|||
}
|
||||
);
|
||||
|
||||
sphinx-notfound-page = super.sphinx-notfound-page.overridePythonAttrs (
|
||||
old: {
|
||||
buildInputs = (old.buildInputs or [ ]) ++ [ super.flit-core ];
|
||||
}
|
||||
);
|
||||
};
|
||||
in
|
||||
rec {
|
||||
|
|
23
poetry.lock
generated
23
poetry.lock
generated
|
@ -1,4 +1,4 @@
|
|||
# This file is automatically @generated by Poetry 1.4.1 and should not be changed by hand.
|
||||
# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand.
|
||||
|
||||
[[package]]
|
||||
name = "accessible-pygments"
|
||||
|
@ -810,6 +810,25 @@ theme-pydata = ["pydata-sphinx-theme (>=0.9.0,<0.10.0)"]
|
|||
theme-rtd = ["sphinx-rtd-theme (>=1.0,<2.0)"]
|
||||
theme-sbt = ["sphinx-book-theme (>=0.3.0,<0.4.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "sphinx-notfound-page"
|
||||
version = "0.8.3"
|
||||
description = "Sphinx extension to build a 404 page with absolute URLs"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "sphinx-notfound-page-0.8.3.tar.gz", hash = "sha256:f728403280026b84c234540bebbed7f710b9ea582e7348a35a5becefe4024332"},
|
||||
{file = "sphinx_notfound_page-0.8.3-py2.py3-none-any.whl", hash = "sha256:c4867b345afccef72de71fb410c412540dfbb5c2de0dc06bde70b331b8f30469"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
sphinx = ">=1.8"
|
||||
|
||||
[package.extras]
|
||||
doc = ["sphinx", "sphinx-autoapi", "sphinx-notfound-page", "sphinx-prompt", "sphinx-rtd-theme", "sphinx-tabs", "sphinxemoji"]
|
||||
test = ["tox"]
|
||||
|
||||
[[package]]
|
||||
name = "sphinx-sitemap"
|
||||
version = "2.5.0"
|
||||
|
@ -1051,4 +1070,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more
|
|||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.7"
|
||||
content-hash = "f01954d31485ce6d03097f14a1e2dab5b92cd865f960910cf88c7655d11e9b0d"
|
||||
content-hash = "3d3b061dc8d5c7aa1121645e86208305e94bf92e6cac7afe6b95cf5e77dd52ba"
|
||||
|
|
|
@ -15,6 +15,7 @@ sphinx-book-theme = "^1.0.0"
|
|||
sphinx-copybutton = "*"
|
||||
sphinx-design = "^0.3.0"
|
||||
sphinx-sitemap = "^2.5.0"
|
||||
sphinx-notfound-page = "^0.8.3"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
black = "==22.8.0"
|
||||
|
|
|
@ -43,6 +43,7 @@ extensions = [
|
|||
"sphinx_design",
|
||||
"extractable_code_block",
|
||||
"sphinx_sitemap",
|
||||
"notfound.extension",
|
||||
]
|
||||
|
||||
# Add myst-specific extensions, see what is available on
|
||||
|
@ -438,3 +439,6 @@ html_css_files = [
|
|||
]
|
||||
|
||||
sitemap_url_scheme = "{link}"
|
||||
|
||||
# Not found
|
||||
notfound_urls_prefix = "/"
|
||||
|
|
Loading…
Reference in a new issue