From f69490af58d0d32d77ca109e062c702c1dfa891a Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Tue, 13 Aug 2024 00:56:44 +0800 Subject: [PATCH] docs: update docs --- docs/notes/theme/config/主题配置.md | 4 ++-- docs/notes/theme/guide/功能/加密.md | 12 ++++++------ docs/notes/theme/guide/知识笔记.md | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/notes/theme/config/主题配置.md b/docs/notes/theme/config/主题配置.md index a46132c9..8959d148 100644 --- a/docs/notes/theme/config/主题配置.md +++ b/docs/notes/theme/config/主题配置.md @@ -256,7 +256,7 @@ interface BlogOptions { ``` ts export default { - theme: themePlume({ + theme: plumeTheme({ profile: { avatar: '/avatar.jpg', name: '张三', @@ -306,7 +306,7 @@ export default { ``` ts export default { - theme: themePlume({ + theme: plumeTheme({ social: [ { icon: 'github', link: 'https://github.com/zhangsan' } ] diff --git a/docs/notes/theme/guide/功能/加密.md b/docs/notes/theme/guide/功能/加密.md index ccc4dcba..1a4b1ed8 100644 --- a/docs/notes/theme/guide/功能/加密.md +++ b/docs/notes/theme/guide/功能/加密.md @@ -26,10 +26,10 @@ permalink: /guide/features/encryption/ ```ts import { defineUserConfig } from 'vuepress' -import { themePlume } from 'vuepress-theme-plume' +import { plumeTheme } from 'vuepress-theme-plume' export default defineUserConfig({ - theme: themePlume({ + theme: plumeTheme({ encrypt: { // more options... } @@ -45,7 +45,7 @@ export default defineUserConfig({ ```ts export default defineUserConfig({ - theme: themePlume({ + theme: plumeTheme({ encrypt: { global: true, admin: ['123456'], @@ -61,7 +61,7 @@ export default defineUserConfig({ ```ts export default defineUserConfig({ - theme: themePlume({ + theme: plumeTheme({ encrypt: { rules: { // 可以是 md 文件的相对路径,对该文件加密 @@ -130,10 +130,10 @@ export default defineUserConfig({ ```ts import { defineUserConfig } from 'vuepress' -import { themePlume } from 'vuepress-theme-plume' +import { plumeTheme } from 'vuepress-theme-plume' export default defineUserConfig({ - theme: themePlume({ + theme: plumeTheme({ locales: { '/': { encryptButtonText: 'Confirm', diff --git a/docs/notes/theme/guide/知识笔记.md b/docs/notes/theme/guide/知识笔记.md index 7504ff54..922e7381 100644 --- a/docs/notes/theme/guide/知识笔记.md +++ b/docs/notes/theme/guide/知识笔记.md @@ -37,10 +37,10 @@ tags: ```js import { defineUserConfig } from 'vuepress' -import { themePlume } from 'vuepress-theme-plume' +import { plumeTheme } from 'vuepress-theme-plume' export default defineUserConfig({ - theme: themePlume({ + theme: plumeTheme({ notes: { dir: '/notes/', // 声明所有笔记的目录 link: '/', // 声明所有笔记默认的链接前缀, 默认为 '/'