From c2f5aa03d16b09cc262602267c2ccfe99db4d09d Mon Sep 17 00:00:00 2001 From: saturneric Date: Mon, 7 Jul 2025 10:52:25 +0200 Subject: feat(config): add starlight-links-validator integration * Integrated `starlight-links-validator` into the Astro configuration. * Updated `package.json` and `package-lock.json` to include the new dependency. * Removed outdated note from the sync public keys documentation. --- astro.config.mjs | 3 +- package-lock.json | 61 +++++++++++++++++++++++---- package.json | 1 + src/content/docs/advanced/sync-public-keys.md | 2 - 4 files changed, 55 insertions(+), 12 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 3d25b76..00348b3 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,13 +3,14 @@ import starlight from "@astrojs/starlight"; import netlify from "@astrojs/netlify"; import starlightThemeNova from "starlight-theme-nova"; import sitemap from "@astrojs/sitemap"; +import starlightLinksValidator from "starlight-links-validator"; // https://astro.build/config export default defineConfig({ site: "https://gpgfrontend.bktus.com", integrations: [ starlight({ - plugins: [starlightThemeNova()], + plugins: [starlightThemeNova(), starlightLinksValidator()], title: "GpgFrontend", description: "A Free, Easy-to-Use, Cross-Platform OpenPGP Crypto Tool.", logo: { diff --git a/package-lock.json b/package-lock.json index 3727557..9ff4636 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@astrojs/starlight": "^0.34.2", "astro": "^5.6.1", "sharp": "^0.32.5", + "starlight-links-validator": "^0.17.0", "starlight-theme-black": "^0.6.0", "starlight-theme-nova": "^0.6.1" } @@ -2031,6 +2032,12 @@ "undici-types": "~6.21.0" } }, + "node_modules/@types/picomatch": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/picomatch/-/picomatch-3.0.2.tgz", + "integrity": "sha512-n0i8TD3UDB7paoMMxA3Y65vUncFJXjcUf7lQY7YyKGl6031FNjfsLs6pdLFCy2GNFxItPJG8GvvpbZc2skH7WA==", + "license": "MIT" + }, "node_modules/@types/sax": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz", @@ -2635,9 +2642,9 @@ } }, "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" @@ -3984,6 +3991,18 @@ "url": "https://github.com/sponsors/brc-dd" } }, + "node_modules/is-absolute-url": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-4.0.1.tgz", + "integrity": "sha512-/51/TKE88Lmm7Gc4/8btclNXWS+g50wXhYJq8HWIBAGUBnoAdRu1aXeh364t/O7wXDAcTJDP8PNuNKWUDWie+A==", + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-alphabetical": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", @@ -5818,9 +5837,9 @@ } }, "node_modules/prebuild-install/node_modules/tar-fs": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.2.tgz", - "integrity": "sha512-EsaAXwxmx8UB7FRKqeozqEPop69DXcmYwTQwXvyAPF352HJsPdkVhvTaDPYqfNgruveJIJy3TA2l+2zj8LJIJA==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.3.tgz", + "integrity": "sha512-090nwYJDmlhwFwEW3QQl+vaNnxsO2yVsd45eTKRBzSzu+hlb1w2K9inVq5b0ngXuLVqQ4ApvsUHHnu/zQNkWAg==", "license": "MIT", "dependencies": { "chownr": "^1.1.1", @@ -6608,6 +6627,30 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/starlight-links-validator": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/starlight-links-validator/-/starlight-links-validator-0.17.0.tgz", + "integrity": "sha512-D+j0W7Z6CVSxPlt8jskBcApqaAU16JmuxE4c483Xj2sWJteiz0wW2xvk0cG3o/cW1q9x44Ezc668OnUi3a5LAA==", + "license": "MIT", + "dependencies": { + "@types/picomatch": "^3.0.1", + "github-slugger": "^2.0.0", + "hast-util-from-html": "^2.0.3", + "hast-util-has-property": "^3.0.0", + "is-absolute-url": "^4.0.1", + "kleur": "^4.1.5", + "mdast-util-mdx-jsx": "^3.1.3", + "mdast-util-to-string": "^4.0.0", + "picomatch": "^4.0.2", + "unist-util-visit": "^5.0.0" + }, + "engines": { + "node": ">=18.17.1" + }, + "peerDependencies": { + "@astrojs/starlight": ">=0.32.0" + } + }, "node_modules/starlight-theme-black": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/starlight-theme-black/-/starlight-theme-black-0.6.0.tgz", @@ -6833,9 +6876,9 @@ } }, "node_modules/tar-fs": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.8.tgz", - "integrity": "sha512-ZoROL70jptorGAlgAYiLoBLItEKw/fUxg9BSYK/dF/GAGYFJOJJJMvjPAKDJraCXFwadD456FCuvLWgfhMsPwg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.0.tgz", + "integrity": "sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==", "license": "MIT", "dependencies": { "pump": "^3.0.0", diff --git a/package.json b/package.json index e8637bc..787ffe5 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@astrojs/starlight": "^0.34.2", "astro": "^5.6.1", "sharp": "^0.32.5", + "starlight-links-validator": "^0.17.0", "starlight-theme-black": "^0.6.0", "starlight-theme-nova": "^0.6.1" } diff --git a/src/content/docs/advanced/sync-public-keys.md b/src/content/docs/advanced/sync-public-keys.md index 07d19a4..e4e0db2 100644 --- a/src/content/docs/advanced/sync-public-keys.md +++ b/src/content/docs/advanced/sync-public-keys.md @@ -73,8 +73,6 @@ Setting a default key server **only affects key searches/imports**. This behavior ensures improved security and global consistency in public key management. -Or: [Want to restore previous behavior?](/guides/key-server-operations/#want-to-restore-previous-behavior) - ::: ## Best Practices for Key Synchronization -- cgit v1.2.3