From cbe32f4fc5764248aadf47967d49951c4ca43503 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 5 Nov 2025 08:36:44 -0800 Subject: [PATCH 1/4] add Sphinx notfound extension --- docs/source/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index 73268f1ff..45383d251 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -31,6 +31,7 @@ 'sphinxcontrib.mermaid', 'hoverxref.extension', "sphinxext.rediraffe", + 'notfound.extension', "ftcdocs_linkcheckdiff", ] From 4c0357dfab85330d4f54804244c93268ac73bfec Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 5 Nov 2025 08:47:05 -0800 Subject: [PATCH 2/4] add not found extension to requirements.txt --- docs/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 407324de3..48901fb85 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -11,4 +11,5 @@ python-git-info==0.8.3 sphinxcontrib-mermaid==0.9.2 sphinx-hoverxref==1.3.0 sphinxext-rediraffe==0.2.7 -git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff \ No newline at end of file +sphinx-notfound-page==1.1.0 +git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff From 9a5a8ea2945410bbafc3ef7c2267ab8eb7aee961 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 5 Nov 2025 09:14:29 -0800 Subject: [PATCH 3/4] add 404.rst which is the source for the new 404.html page --- docs/source/404.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/source/404.rst diff --git a/docs/source/404.rst b/docs/source/404.rst new file mode 100644 index 000000000..4646583dd --- /dev/null +++ b/docs/source/404.rst @@ -0,0 +1,12 @@ +.. meta:: + :title: Page not found + :description: The official home of FIRST Tech Challenge Documentation. + :orphan: + +Page not found +============== + +Unfortunately we couldn't find the content you were looking for. + +Possibly the content was moved to the `FTC Docs Archive `__. + From 31e526546602a0725fba8e49ca2bb0486a0e62f2 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 5 Nov 2025 09:25:02 -0800 Subject: [PATCH 4/4] update 404.rst --- docs/source/404.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/source/404.rst b/docs/source/404.rst index 4646583dd..3bfc08507 100644 --- a/docs/source/404.rst +++ b/docs/source/404.rst @@ -6,7 +6,8 @@ Page not found ============== -Unfortunately we couldn't find the content you were looking for. +Unfortunately we couldn't find the content you were looking for. Try using the sidebar menu links or search box. + +TensorFlow and the *FIRST* Machine Learning Toolchain content has been moved to the `FTC Docs Archive `__. -Possibly the content was moved to the `FTC Docs Archive `__.