Skip to content

Commit

Permalink
fix: add 404 page to the docs (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisthat committed Sep 11, 2023
1 parent 9a98e97 commit 7e6b2e5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/content/404/_index.md

This file was deleted.

14 changes: 14 additions & 0 deletions docs/content/en/404/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Page Not Found
weight: 100
menu:
main:
weight: 20
type: docs
cascade:
type: docs
---

The page can't be found.

Please try the search on the top to look for it or go back to [the homepage](/).
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# https://docs.netlify.com/routing/redirects/redirect-options/#custom-404-page-handling
[[redirects]]
from = "/*"
to = "/404/"
status = 404

[build]
base = "docs/"
publish = "public/"
Expand Down

0 comments on commit 7e6b2e5

Please sign in to comment.