Skip to content

Commit e03ad3c

Browse files
handled astro 404 correctly
1 parent a172122 commit e03ad3c

4 files changed

Lines changed: 30 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Auto-generated file - do not edit manually
2-
export const VERSION = '3.1.0';
2+
export const VERSION = '4.0.0';

packages/docs/.astro/content-modules.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
export default new Map([
3+
["src/content/docs/404.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2F404.mdx&astroContentModuleFlag=true")],
34
["src/content/docs/cli/commands.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fcli%2Fcommands.mdx&astroContentModuleFlag=true")],
45
["src/content/docs/cli/configuration.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fcli%2Fconfiguration.mdx&astroContentModuleFlag=true")],
56
["src/content/docs/cli/overview.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fcli%2Foverview.mdx&astroContentModuleFlag=true")],

packages/docs/astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig({
1111
starlight({
1212
title: 'Patch Pulse',
1313
description: 'Keep a pulse on your npm dependencies.',
14+
disable404Route: true,
1415
customCss: ['./src/styles/custom.css'],
1516
components: {
1617
SiteTitle: './src/components/SiteTitle.astro',
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Page Not Found
3+
description: The requested docs page could not be found.
4+
template: splash
5+
editUrl: false
6+
pagefind: false
7+
sidebar:
8+
hidden: true
9+
hero:
10+
tagline: The page you requested does not exist or may have moved.
11+
actions:
12+
- text: Go Home
13+
link: /
14+
icon: right-arrow
15+
- text: Read the Introduction
16+
link: /introduction
17+
icon: right-arrow
18+
variant: minimal
19+
- text: Report Broken Link
20+
link: https://github.com/barrymichaeldoyle/patch-pulse/issues/new?template=bug_report.md&labels=bug&title=Broken%20docs%20link%3A%20&body=I%20reached%20the%20Patch%20Pulse%20docs%20404%20page%20from%20an%20outdated%20or%20broken%20link.%0A%0ABroken%20URL%3A%20%0AReferrer%20(optional)%3A%20%0AWhat%20I%20expected%20to%20find%3A%20
21+
icon: external
22+
variant: minimal
23+
---
24+
25+
If you followed an old Patch Pulse docs link, the page may have been renamed as the docs site structure evolved.
26+
27+
Use the navigation or search to find the current page.

0 commit comments

Comments
 (0)