diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 3dd09b12f..0027bca79 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -6,6 +6,7 @@ import { generateImages, generateMeta, generateFeed } from "./hooks"; import { toggleStarredPlugin } from "./markdown/toggleStarred"; import { base64DecodePlugin } from "./markdown/base64"; +const baseUrl = process.env.GITHUB_ACTIONS ? "/FMHYedit" : "/"; export default defineConfig({ title: "FMHY", description: meta.description, @@ -14,7 +15,7 @@ export default defineConfig({ lastUpdated: false, cleanUrls: true, appearance: "dark", - base: process.env.GITHUB_ACTIONS ? "/FMHYEdit" : "/", + base: baseUrl, srcExclude: ["readme.md", "single-page"], ignoreDeadLinks: true, sitemap: { diff --git a/package.json b/package.json index 068131bc1..5a85ef10b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fmhy", "type": "module", - "packageManager": "pnpm@8.14.2", + "packageManager": "pnpm@8.14.3", "scripts": { "docs:dev": "vitepress dev", "docs:build": "vitepress build", @@ -37,7 +37,7 @@ "@iconify-json/twemoji": "^1.1.15", "@taskylizard/eslint-config": "^1.1.1", "@types/fs-extra": "^11.0.4", - "@types/node": "^20.11.5", + "@types/node": "^20.11.6", "@types/nprogress": "^0.2.3", "eslint": "^8.56.0", "prettier": "^3.2.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3570ce51d..3c7788820 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,7 +40,7 @@ dependencies: version: 0.58.3(postcss@8.4.33)(vite@5.0.11) vitepress: specifier: npm:@taskylizard/vitepress@1.0.10 - version: /@taskylizard/vitepress@1.0.10(@types/node@20.11.5)(nprogress@0.2.0)(postcss@8.4.33)(search-insights@2.13.0)(typescript@5.3.3) + version: /@taskylizard/vitepress@1.0.10(@algolia/client-search@4.22.1)(@types/node@20.11.6)(nprogress@0.2.0)(postcss@8.4.33)(search-insights@2.13.0)(typescript@5.3.3) vue: specifier: ^3.4.15 version: 3.4.15(typescript@5.3.3) @@ -65,8 +65,8 @@ devDependencies: specifier: ^11.0.4 version: 11.0.4 '@types/node': - specifier: ^20.11.5 - version: 20.11.5 + specifier: ^20.11.6 + version: 20.11.6 '@types/nprogress': specifier: ^0.2.3 version: 0.2.3 @@ -84,51 +84,47 @@ packages: engines: {node: '>=0.10.0'} dev: true - /@algolia/autocomplete-core@1.9.3(algoliasearch@4.22.1)(search-insights@2.13.0): + /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0): resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==} dependencies: - '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(algoliasearch@4.22.1)(search-insights@2.13.0) - '@algolia/autocomplete-shared': 1.9.3(algoliasearch@4.22.1) + '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1) transitivePeerDependencies: - '@algolia/client-search' - algoliasearch - search-insights dev: false - /@algolia/autocomplete-plugin-algolia-insights@1.9.3(algoliasearch@4.22.1)(search-insights@2.13.0): + /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0): resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==} peerDependencies: search-insights: '>= 1 < 3' dependencies: - '@algolia/autocomplete-shared': 1.9.3(algoliasearch@4.22.1) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1) search-insights: 2.13.0 transitivePeerDependencies: - '@algolia/client-search' - algoliasearch dev: false - /@algolia/autocomplete-preset-algolia@1.9.3(algoliasearch@4.22.1): + /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1): resolution: {integrity: sha512-d4qlt6YmrLMYy95n5TB52wtNDr6EgAIPH81dvvvW8UmuWRgxEtY0NJiPwl/h95JtG2vmRM804M0DSwMCNZlzRA==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' - peerDependenciesMeta: - '@algolia/client-search': - optional: true dependencies: - '@algolia/autocomplete-shared': 1.9.3(algoliasearch@4.22.1) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1) + '@algolia/client-search': 4.22.1 algoliasearch: 4.22.1 dev: false - /@algolia/autocomplete-shared@1.9.3(algoliasearch@4.22.1): + /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1): resolution: {integrity: sha512-Wnm9E4Ye6Rl6sTTqjoymD+l8DjSTHsHboVRYrKgEt8Q7UHm9nYbqhN/i0fhUYA3OAEH7WA8x3jfpnmJm3rKvaQ==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' - peerDependenciesMeta: - '@algolia/client-search': - optional: true dependencies: + '@algolia/client-search': 4.22.1 algoliasearch: 4.22.1 dev: false @@ -571,10 +567,10 @@ packages: resolution: {integrity: sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==} dev: false - /@docsearch/js@3.5.2(search-insights@2.13.0): + /@docsearch/js@3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0): resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==} dependencies: - '@docsearch/react': 3.5.2(search-insights@2.13.0) + '@docsearch/react': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) preact: 10.19.3 transitivePeerDependencies: - '@algolia/client-search' @@ -584,7 +580,7 @@ packages: - search-insights dev: false - /@docsearch/react@3.5.2(search-insights@2.13.0): + /@docsearch/react@3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0): resolution: {integrity: sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -601,8 +597,8 @@ packages: search-insights: optional: true dependencies: - '@algolia/autocomplete-core': 1.9.3(algoliasearch@4.22.1)(search-insights@2.13.0) - '@algolia/autocomplete-preset-algolia': 1.9.3(algoliasearch@4.22.1) + '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0) + '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1) '@docsearch/css': 3.5.2 algoliasearch: 4.22.1 search-insights: 2.13.0 @@ -1880,7 +1876,7 @@ packages: - svelte-eslint-parser dev: true - /@taskylizard/vitepress@1.0.10(@types/node@20.11.5)(nprogress@0.2.0)(postcss@8.4.33)(search-insights@2.13.0)(typescript@5.3.3): + /@taskylizard/vitepress@1.0.10(@algolia/client-search@4.22.1)(@types/node@20.11.6)(nprogress@0.2.0)(postcss@8.4.33)(search-insights@2.13.0)(typescript@5.3.3): resolution: {integrity: sha512-RujuaVtPmoWis1b1B+BdAkakRPRxsZ+y4g35auJZpf7m+xt+vG2Bw6MdwdpJVPfkfqAuNRYyEaYJRQVpmlNnsw==} hasBin: true peerDependencies: @@ -1893,7 +1889,7 @@ packages: optional: true dependencies: '@docsearch/css': 3.5.2 - '@docsearch/js': 3.5.2(search-insights@2.13.0) + '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0) '@types/markdown-it': 13.0.7 '@vitejs/plugin-vue': 5.0.3(vite@5.0.11)(vue@3.4.15) '@vue/devtools-api': 6.5.1 @@ -1906,7 +1902,7 @@ packages: shikiji: 0.9.19 shikiji-core: 0.9.19 shikiji-transformers: 0.9.19 - vite: 5.0.11(@types/node@20.11.5) + vite: 5.0.11(@types/node@20.11.6) vue: 3.4.15(typescript@5.3.3) transitivePeerDependencies: - '@algolia/client-search' @@ -1954,13 +1950,13 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 20.11.5 + '@types/node': 20.11.6 dev: true /@types/http-proxy@1.17.13: resolution: {integrity: sha512-GkhdWcMNiR5QSQRYnJ+/oXzu0+7JJEPC8vkWXK351BkhjraZF+1W13CUYARUvX9+NqIU2n6YHA4iwywsc/M6Sw==} dependencies: - '@types/node': 20.11.5 + '@types/node': 20.11.6 dev: false /@types/json-schema@7.0.15: @@ -1974,7 +1970,7 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 20.11.5 + '@types/node': 20.11.6 dev: true /@types/linkify-it@3.0.5: @@ -1998,8 +1994,8 @@ packages: resolution: {integrity: sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==} dev: false - /@types/node@20.11.5: - resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==} + /@types/node@20.11.6: + resolution: {integrity: sha512-+EOokTnksGVgip2PbYbr3xnR7kZigh4LbybAfBAw5BpnQ+FqBYUsvCEjYd70IXKlbohQ64mzEYmMtlWUY8q//Q==} dependencies: undici-types: 5.26.5 @@ -2236,7 +2232,7 @@ packages: '@unocss/core': 0.58.3 '@unocss/reset': 0.58.3 '@unocss/vite': 0.58.3(vite@5.0.11) - vite: 5.0.11(@types/node@20.11.5) + vite: 5.0.11(@types/node@20.11.6) transitivePeerDependencies: - rollup dev: false @@ -2447,7 +2443,7 @@ packages: chokidar: 3.5.3 fast-glob: 3.3.2 magic-string: 0.30.5 - vite: 5.0.11(@types/node@20.11.5) + vite: 5.0.11(@types/node@20.11.6) transitivePeerDependencies: - rollup dev: false @@ -2480,7 +2476,7 @@ packages: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.11(@types/node@20.11.5) + vite: 5.0.11(@types/node@20.11.6) vue: 3.4.15(typescript@5.3.3) dev: false @@ -7164,7 +7160,7 @@ packages: '@unocss/transformer-directives': 0.58.3 '@unocss/transformer-variant-group': 0.58.3 '@unocss/vite': 0.58.3(vite@5.0.11) - vite: 5.0.11(@types/node@20.11.5) + vite: 5.0.11(@types/node@20.11.6) transitivePeerDependencies: - postcss - rollup @@ -7291,7 +7287,7 @@ packages: engines: {node: '>= 0.8'} dev: false - /vite@5.0.11(@types/node@20.11.5): + /vite@5.0.11(@types/node@20.11.6): resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -7319,7 +7315,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.5 + '@types/node': 20.11.6 esbuild: 0.19.11 postcss: 8.4.33 rollup: 4.9.5