Skip to content

Commit

Permalink
feat: custom 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed May 8, 2024
1 parent 0da98cb commit 96fba36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ sphinx-contributors==0.2.7
sphinx-copybutton==0.5.2
# sphinx-design==0.5.0
sphinx-last-updated-by-git==0.3.7
sphinx-notfound-page==1.0.0
sphinx-tabs==3.4.5
sphinx-togglebutton==0.3.2
8 changes: 8 additions & 0 deletions sources/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"sphinx.ext.todo",
# "sphinx_design",
"sphinx_last_updated_by_git",
"notfound.extension",
"sphinx_tabs.tabs",
"sphinx_togglebutton",
]
Expand Down Expand Up @@ -85,3 +86,10 @@
# sphinx-last-updated-by-git
git_last_updated_timezone = UTC
html_last_updated_fmt = "%Y-%m-%d %H:%M:%S UTC"

# sphinx-notfound-page
notfound_context = {
"title": "Elle est où la page ?",
"body": '<h1><a href="https://www.youtube.com/watch?v=wV4wepiucf4" target="_blank">Elle est où la page ?</a></h1><p>¯\\_(ツ)_/¯</p><p>La page en question ne semble pas, ou plus, exister.</p>',
}
notfound_urls_prefix = ""

0 comments on commit 96fba36

Please sign in to comment.