Skip to content

Commit 90a11fc

Browse files
authored
fix: Add custom 404 pointing to new docs (#47)
1 parent ef15714 commit 90a11fc

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

doc/404.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:orphan: metadata
2+
3+
#################
4+
Page not found
5+
#################
6+
7+
This is the old documentation that will be removed in the future. Visit `new docs page <https://developer.ftrack.com/api-clients/python/>`_ to keep reading.
8+
API reference section is still available here.

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"sphinx.ext.todo",
1818
"sphinx.ext.viewcode",
1919
"lowdown",
20+
"notfound.extension"
2021
]
2122

22-
2323
# The suffix of source filenames.
2424
source_suffix = ".rst"
2525

poetry.lock

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pyparsing = ">=2.0,<3"
3131
clique = "==1.6.1"
3232
websocket-client = ">=0.40.0,<1"
3333
platformdirs = ">=4.0.0,<5"
34+
sphinx-notfound-page = "^1.0.4"
3435

3536
[tool.poetry.group.dev.dependencies]
3637
black = "^23.7.0"

0 commit comments

Comments
 (0)