From 7423f0b361d7a1c6e21781fdde9a70dfb2d6a855 Mon Sep 17 00:00:00 2001 From: Dimitri Merejkowsky Date: Sat, 19 Sep 2020 16:07:08 +0200 Subject: [PATCH] Ajout de l'extension "page not found" --- cours/poetry.lock | 14 +++++++++++++- cours/pyproject.toml | 1 + cours/source/conf.py | 3 ++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cours/poetry.lock b/cours/poetry.lock index 4be173f..7196c2e 100644 --- a/cours/poetry.lock +++ b/cours/poetry.lock @@ -250,6 +250,14 @@ port-for = "0.3.1" tornado = ">=3.2" watchdog = ">=0.7.1" +[[package]] +category = "main" +description = "Sphinx extension to build a 404 page with absolute URLs" +name = "sphinx-notfound-page" +optional = false +python-versions = "*" +version = "0.5" + [[package]] category = "main" description = "" @@ -352,7 +360,7 @@ pathtools = ">=0.1.1" watchmedo = ["PyYAML (>=3.10)", "argh (>=0.24.1)"] [metadata] -content-hash = "99945a4c8b6cecb34359f2a46ba87ca85ca77321f9b82c6fe14b4f5b1f907195" +content-hash = "d9a97e698f6b288f31ebd5096c8918fb05180201686488667d687e3250ab4b00" python-versions = "^3.7" [metadata.files] @@ -490,6 +498,10 @@ sphinx-autobuild = [ {file = "sphinx-autobuild-0.7.1.tar.gz", hash = "sha256:66388f81884666e3821edbe05dd53a0cfb68093873d17320d0610de8db28c74e"}, {file = "sphinx_autobuild-0.7.1-py2-none-any.whl", hash = "sha256:e60aea0789cab02fa32ee63c7acae5ef41c06f1434d9fd0a74250a61f5994692"}, ] +sphinx-notfound-page = [ + {file = "sphinx-notfound-page-0.5.tar.gz", hash = "sha256:0ff34a26140ede859dc9bcc216107a5e27dcd0076a1b1defaa31f61fb67b489c"}, + {file = "sphinx_notfound_page-0.5-py3-none-any.whl", hash = "sha256:557ad998d7a2897a5da7ba9ed0762a8f535c4250c49325db7b105e69c386f690"}, +] sphinxcontrib-applehelp = [ {file = "sphinxcontrib-applehelp-1.0.1.tar.gz", hash = "sha256:edaa0ab2b2bc74403149cb0209d6775c96de797dfd5b5e2a71981309efab3897"}, {file = "sphinxcontrib_applehelp-1.0.1-py2.py3-none-any.whl", hash = "sha256:fb8dee85af95e5c30c91f10e7eb3c8967308518e0f7488a2828ef7bc191d0d5d"}, diff --git a/cours/pyproject.toml b/cours/pyproject.toml index 893595b..93e48ae 100644 --- a/cours/pyproject.toml +++ b/cours/pyproject.toml @@ -7,6 +7,7 @@ authors = ["Dimitri Merejkowsky "] [tool.poetry.dependencies] python = "^3.7" sphinx = "^2.3.1" +sphinx-notfound-page = "^0.5" [tool.poetry.dev-dependencies] sphinx-autobuild = "^0.7.1" diff --git a/cours/source/conf.py b/cours/source/conf.py index 15e6e05..6b8c88b 100644 --- a/cours/source/conf.py +++ b/cours/source/conf.py @@ -2,7 +2,6 @@ project = "Programmation en Python" copyright = "2020, Dimitri Merejkowsky" author = "Dimitri Merejkowsky" - version = "0.3" language = "fr" @@ -10,6 +9,8 @@ templates_path = ["_templates"] exclude_patterns = [] keep_warnings = True +extensions = ["notfound.extension"] + html_show_sourcelink = False html_theme = "agogo" # Don't use default " documentation"