Simplify VitePress config: set ignoreDeadLinks to true for streamlined link management
This commit is contained in:
@@ -8,23 +8,7 @@ export default defineConfig({
|
|||||||
lang: "en-US",
|
lang: "en-US",
|
||||||
// lastUpdated: true,
|
// lastUpdated: true,
|
||||||
|
|
||||||
ignoreDeadLinks: [
|
ignoreDeadLinks: true,
|
||||||
// ignore exact url "/playground"
|
|
||||||
"/playground",
|
|
||||||
// ignore all localhost links
|
|
||||||
/^https?:\/\/localhost/,
|
|
||||||
// ignore localhost links with any port
|
|
||||||
// ignore http://localhost:8015
|
|
||||||
/^https?:\/\/localhost:\d+/,
|
|
||||||
/^http?:\/\/localhost:\d+/,
|
|
||||||
// ignore all links include "/playground/"
|
|
||||||
// ignore all links include "/repl/""
|
|
||||||
/\/repl\//,
|
|
||||||
// custom function, ignore all links include "ignore"
|
|
||||||
(url) => {
|
|
||||||
return url.toLowerCase().includes("ignore");
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
sitemap: {
|
sitemap: {
|
||||||
hostname: "https://adventurelog.app",
|
hostname: "https://adventurelog.app",
|
||||||
|
|||||||
Reference in New Issue
Block a user