Selaa lähdekoodia

Ajout de l'extension "page not found"

master
Dimitri Merejkowsky 4 vuotta sitten
vanhempi
commit
7423f0b361
3 muutettua tiedostoa jossa 16 lisäystä ja 2 poistoa
  1. +13
    -1
      cours/poetry.lock
  2. +1
    -0
      cours/pyproject.toml
  3. +2
    -1
      cours/source/conf.py

+ 13
- 1
cours/poetry.lock Näytä tiedosto

@@ -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"},


+ 1
- 0
cours/pyproject.toml Näytä tiedosto

@@ -7,6 +7,7 @@ authors = ["Dimitri Merejkowsky <dimitri.merejkowsky@tanker.io>"]
[tool.poetry.dependencies]
python = "^3.7"
sphinx = "^2.3.1"
sphinx-notfound-page = "^0.5"

[tool.poetry.dev-dependencies]
sphinx-autobuild = "^0.7.1"


+ 2
- 1
cours/source/conf.py Näytä tiedosto

@@ -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 "<project> <version> documentation"