Skip to content

Custom 404.md #205

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

Merged
merged 6 commits into from
Nov 19, 2023
Merged

Custom 404.md #205

merged 6 commits into from
Nov 19, 2023

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Nov 18, 2023

The 404.md template, if present, is used to serve 404 Not Found errors on GET requests.

A <base href=/> tag is added to its head so that it can be served from /any/subpath and still work.

closes #174

The default template in the documentation has an extra script that ensures that the /javascript page "works" with npx http-server, which redirects it to javascript/, serves the 404 page, which redirects to /javascript.html.

closes #171

@Fil Fil requested a review from mbostock November 18, 2023 06:32
@Fil Fil mentioned this pull request Nov 18, 2023
@mbostock mbostock enabled auto-merge (squash) November 19, 2023 05:41
@mbostock mbostock merged commit 1c7e6a7 into main Nov 19, 2023
@mbostock mbostock deleted the fil/404 branch November 19, 2023 05:42
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.

Generate a custom 404 page The built site does not serve /javascript properly
2 participants