Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example custom 404 #10

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add example custom 404 #10

wants to merge 1 commit into from

Conversation

ross-spencer
Copy link
Member

@ross-spencer ross-spencer commented Aug 8, 2023

With a little bit of help from this post here we can customize a 404 this way: facebook/docusaurus#6030 (reply in thread)

The js file was created with npm run swizzle @docusaurus/theme-classic NotFound but then I just copy and pasted the content from Kazisean.

I believe just fill in the placeholders in what I've done here and it will now work for you. Ideally everything on the site we're dealing with is a markdown file but Docusaurus don't quite agree??

If there are any problems with npm start, maybe try to double check:

  • npm run build
  • npm run serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant