Skip to content

Commit a3ba8ba

Browse files
authored
Merge pull request #390 from acharraggi/add_404_page
add Sphinx notfound extension
2 parents 3646928 + 31e5265 commit a3ba8ba

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ python-git-info==0.8.3
1111
sphinxcontrib-mermaid==0.9.2
1212
sphinx-hoverxref==1.3.0
1313
sphinxext-rediraffe==0.2.7
14-
git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff
14+
sphinx-notfound-page==1.1.0
15+
git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff

docs/source/404.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. meta::
2+
:title: Page not found
3+
:description: The official home of FIRST Tech Challenge Documentation.
4+
:orphan:
5+
6+
Page not found
7+
==============
8+
9+
Unfortunately we couldn't find the content you were looking for. Try using the sidebar menu links or search box.
10+
11+
TensorFlow and the *FIRST* Machine Learning Toolchain content has been moved to the `FTC Docs Archive <https://ftc-docs.firstinspires.org/projects/ftcdocs-archive/en/latest/index.html>`__.
12+
13+

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
'sphinxcontrib.mermaid',
3232
'hoverxref.extension',
3333
"sphinxext.rediraffe",
34+
'notfound.extension',
3435
"ftcdocs_linkcheckdiff",
3536
]
3637

0 commit comments

Comments
 (0)