docs: update docs
This commit is contained in:
parent
784d43f297
commit
f69490af58
@ -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' }
|
||||
]
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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: '/', // 声明所有笔记默认的链接前缀, 默认为 '/'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user