From f6c6227cd8f38962c96f2d70ce820151bce301d1 Mon Sep 17 00:00:00 2001 From: misike12 <59843249+misike12@users.noreply.github.com> Date: Sat, 29 Jun 2024 14:55:04 +0200 Subject: [PATCH] Add page properties --- .vitepress/theme/index.ts | 6 +++++ package.json | 1 + pnpm-lock.yaml | 50 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index cd9e5d8a..f6109ab5 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -8,6 +8,11 @@ import './style.css' import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client' import '@nolebase/vitepress-plugin-git-changelog/client/style.css' +import { + NolebasePagePropertiesPlugin, +} from '@nolebase/vitepress-plugin-page-properties/client' +import '@nolebase/vitepress-plugin-page-properties/client/style.css' + import { NolebaseHighlightTargetedHeading, } from '@nolebase/vitepress-plugin-highlight-targeted-heading/client' @@ -51,6 +56,7 @@ export default { app.provide(InjectionKey, { // Configuration } as Options) + app.use(NolebaseGitChangelogPlugin) app.use(NolebaseInlineLinkPreviewPlugin) app.use(NolebaseGitChangelogPlugin, { // Configuration diff --git a/package.json b/package.json index 9247a783..69c52d2f 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "@nolebase/vitepress-plugin-git-changelog": "^2.2.0", "@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.2.0", "@nolebase/vitepress-plugin-inline-link-preview": "^2.2.0", + "@nolebase/vitepress-plugin-page-properties": "^2.2.0", "less": "^4.2.0", "medium-zoom": "^1.1.0", "sass": "^1.77.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a92f9a40..007b2ded 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,6 +29,9 @@ importers: '@nolebase/vitepress-plugin-inline-link-preview': specifier: ^2.2.0 version: 2.2.0(@algolia/client-search@4.24.0)(postcss@8.4.38)(sass@1.77.6)(search-insights@2.14.0) + '@nolebase/vitepress-plugin-page-properties': + specifier: ^2.2.0 + version: 2.2.0(@algolia/client-search@4.24.0)(postcss@8.4.38)(sass@1.77.6)(search-insights@2.14.0) less: specifier: ^4.2.0 version: 4.2.0 @@ -375,6 +378,9 @@ packages: '@nolebase/vitepress-plugin-inline-link-preview@2.2.0': resolution: {integrity: sha512-OKtdgMI9TM+VYx08MOZhLyACaynvcA0mQqhi99SpXU/J4vZpj/ul5tZZK8PlShpMwDUkRqFJLBW9pXVkDQWivQ==} + '@nolebase/vitepress-plugin-page-properties@2.2.0': + resolution: {integrity: sha512-1p6R3Bf2u4+Vj1Z4uTf9hLP4DJOAKLsgLt0T/SMHQtE02ZPto74/C7IsoEZoHtamPuHoCB/2bEdTO6seFhQ9Qg==} + '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -1184,6 +1190,10 @@ packages: resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==} engines: {node: '>=18'} + uuid@9.0.1: + resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} + hasBin: true + vite@5.3.2: resolution: {integrity: sha512-6lA7OBHBlXUxiJxbO5aAY2fsHHzDr1q7DvXYnyZycRs2Dz+dXBWuhpWHvmljTRTpQC2uvGmUFFkSHF2vGo90MA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -1730,6 +1740,44 @@ snapshots: - typescript - universal-cookie + '@nolebase/vitepress-plugin-page-properties@2.2.0(@algolia/client-search@4.24.0)(postcss@8.4.38)(sass@1.77.6)(search-insights@2.14.0)': + dependencies: + '@iconify-json/icon-park-outline': 1.1.15 + '@iconify-json/octicon': 1.1.55 + '@nolebase/ui': 2.2.0(@algolia/client-search@4.24.0)(postcss@8.4.38)(sass@1.77.6)(search-insights@2.14.0) + date-fns: 3.6.0 + gray-matter: 4.0.3 + less: 4.2.0 + uuid: 9.0.1 + vitepress: 1.2.3(@algolia/client-search@4.24.0)(less@4.2.0)(postcss@8.4.38)(sass@1.77.6)(search-insights@2.14.0) + transitivePeerDependencies: + - '@algolia/client-search' + - '@types/node' + - '@types/react' + - '@vue/composition-api' + - async-validator + - axios + - change-case + - drauu + - fuse.js + - idb-keyval + - jwt-decode + - lightningcss + - markdown-it-mathjax3 + - nprogress + - postcss + - qrcode + - react + - react-dom + - sass + - search-insights + - sortablejs + - stylus + - sugarss + - terser + - typescript + - universal-cookie + '@pkgjs/parseargs@0.11.0': optional: true @@ -2515,6 +2563,8 @@ snapshots: unicorn-magic@0.1.0: {} + uuid@9.0.1: {} + vite@5.3.2(less@4.2.0)(sass@1.77.6): dependencies: esbuild: 0.21.5