mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
200 lines
4.2 KiB
TypeScript
200 lines
4.2 KiB
TypeScript
import type { ThemeCollectionItem } from 'vuepress-theme-plume'
|
|
import { defineCollection } from 'vuepress-theme-plume'
|
|
|
|
export const themeGuide: ThemeCollectionItem = defineCollection({
|
|
type: 'doc',
|
|
dir: 'guide',
|
|
title: '指南',
|
|
linkPrefix: '/guide/',
|
|
sidebar: [
|
|
{
|
|
text: '从这里开始',
|
|
collapsed: false,
|
|
icon: 'carbon:idea',
|
|
prefix: 'quick-start',
|
|
items: [
|
|
'intro',
|
|
'usage',
|
|
'project-structure',
|
|
{
|
|
text: '集合',
|
|
link: 'collection',
|
|
items: ['collection-post', 'collection-doc'],
|
|
},
|
|
'sidebar',
|
|
'write',
|
|
'locales',
|
|
'deployment',
|
|
'optimize-build',
|
|
],
|
|
},
|
|
{
|
|
text: '写作',
|
|
icon: 'fluent-mdl2:edit-create',
|
|
collapsed: false,
|
|
items: [
|
|
{
|
|
text: 'markdown',
|
|
icon: 'material-symbols:markdown-outline',
|
|
prefix: 'markdown',
|
|
collapsed: true,
|
|
items: [
|
|
'basic',
|
|
'extensions',
|
|
'attrs',
|
|
'emoji',
|
|
'math',
|
|
'table',
|
|
'icons',
|
|
'mark',
|
|
'plot',
|
|
'abbr',
|
|
'annotation',
|
|
'container',
|
|
'github-alerts',
|
|
'card',
|
|
'steps',
|
|
'file-tree',
|
|
'code-tree',
|
|
'field',
|
|
'tabs',
|
|
'qrcode',
|
|
'timeline',
|
|
'demo-wrapper',
|
|
'flex',
|
|
'collapse',
|
|
'npm-to',
|
|
'caniuse',
|
|
'chat',
|
|
'include',
|
|
],
|
|
},
|
|
{
|
|
text: '代码块',
|
|
prefix: 'code',
|
|
icon: 'ph:code-bold',
|
|
collapsed: true,
|
|
items: [
|
|
'intro',
|
|
'features',
|
|
'copy-code',
|
|
'code-tabs',
|
|
'import',
|
|
'twoslash',
|
|
],
|
|
},
|
|
{
|
|
text: '代码演示',
|
|
prefix: 'repl',
|
|
icon: 'carbon:demo',
|
|
collapsed: true,
|
|
items: [
|
|
'frontend',
|
|
'rust',
|
|
'golang',
|
|
'kotlin',
|
|
'python',
|
|
'codepen',
|
|
'jsFiddle',
|
|
'codeSandbox',
|
|
'replit',
|
|
],
|
|
},
|
|
{
|
|
text: '图表',
|
|
icon: 'mdi:chart-line',
|
|
prefix: 'chart',
|
|
collapsed: true,
|
|
items: [
|
|
'chart',
|
|
'echarts',
|
|
'mermaid',
|
|
'flowchart',
|
|
'markmap',
|
|
'plantuml',
|
|
],
|
|
},
|
|
{
|
|
text: '资源嵌入',
|
|
icon: 'dashicons:embed-video',
|
|
prefix: 'embed',
|
|
collapsed: true,
|
|
items: [
|
|
'pdf',
|
|
'bilibili',
|
|
'acfun',
|
|
'youtube',
|
|
'artplayer',
|
|
'audioReader',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
text: '功能',
|
|
icon: 'lucide:box',
|
|
collapsed: false,
|
|
prefix: 'features',
|
|
items: [
|
|
'icon',
|
|
'search',
|
|
'image-preview',
|
|
'comments',
|
|
'bulletin',
|
|
'encryption',
|
|
'contributors',
|
|
'changelog',
|
|
'copyright',
|
|
'watermark',
|
|
'friend-links',
|
|
'replace-assets',
|
|
'seo',
|
|
'sitemap',
|
|
'llmstxt',
|
|
],
|
|
},
|
|
{
|
|
text: '组件',
|
|
prefix: 'components',
|
|
icon: 'uiw:component',
|
|
collapsed: false,
|
|
items: [
|
|
'badge',
|
|
'icon',
|
|
'plot',
|
|
'card',
|
|
'link-card',
|
|
'image-card',
|
|
'card-grid',
|
|
'card-masonry',
|
|
'home-box',
|
|
'repo-card',
|
|
'npm-badge',
|
|
'swiper',
|
|
],
|
|
},
|
|
{
|
|
text: '自定义',
|
|
icon: 'material-symbols:dashboard-customize-outline-rounded',
|
|
collapsed: false,
|
|
prefix: 'custom',
|
|
items: [
|
|
{ text: '自定义首页', link: 'home', items: ['home-hero-effect'] },
|
|
'style',
|
|
'slots',
|
|
'component-overrides',
|
|
],
|
|
},
|
|
{
|
|
text: 'API',
|
|
icon: 'mdi:api',
|
|
prefix: 'api',
|
|
collapsed: false,
|
|
items: [
|
|
'client',
|
|
'node',
|
|
],
|
|
},
|
|
],
|
|
})
|