Add 404 page (#1933)

* Add 404 page

Only build htmlzip format for docs

* Add homepage link to 404 page
This commit is contained in:
Sam Wu
2023-03-13 12:20:47 -06:00
committed by GitHub
parent 5ce34c593a
commit 5787b613f6
4 changed files with 15 additions and 7 deletions

11
.gitignore vendored
View File

@@ -1,4 +1,11 @@
_build
.venv
.vscode
build
build
# documentation artifacts
_build/
_images/
_static/
_templates/
_toc.yml
docBin/

View File

@@ -6,7 +6,7 @@ version: 2
sphinx:
configuration: docs/conf.py
formats: all
formats: [htmlzip]
python:
version: "3.8"

5
docs/404.md Normal file
View File

@@ -0,0 +1,5 @@
# 404 Page Not Found
Page could not be found.
Return to [home](index) or please use the links from the sidebar to find what you are looking for.

View File

@@ -4,10 +4,6 @@
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import shutil
shutil.copy2('../CHANGELOG.md','./')
shutil.copy2('../RELEASE.md','./')
from rocm_docs import ROCmDocs
docs_core = ROCmDocs("ROCm Documentation")