Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add custom 404 page in documentation (#2064)

Ritesh Pandey600fead1402e
diff --git a/documentation/404.md b/documentation/404.md
new file mode 100644
index 000000000..52304a648
--- /dev/null
+++ b/documentation/404.md
@@ -0,0 +1,5 @@
+:orphan:
+
+# Not Found
+
+Requested page cannot be found.
diff --git a/documentation/conf.py b/documentation/conf.py
index a73626e9d..895554e25 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -35,6 +35,7 @@ extensions = [
"sphinx_copybutton",
]
myst_heading_anchors = 6 # Add anchors to all headers, this is disabled by default.
+myst_enable_extensions = ["fieldlist"] # Required for specifying :orphan: pages
source_suffix = {".rst": "restructuredtext", ".md": "markdown"}