import type { ThemeCollectionItem } from 'vuepress-theme-plume' import { defineCollection } from 'vuepress-theme-plume' export const themeGuide: ThemeCollectionItem = defineCollection({ type: 'doc', dir: 'guide', title: 'Guide', linkPrefix: '/guide/', sidebar: [ { text: 'Quick Start', collapsed: false, icon: 'carbon:idea', prefix: 'quick-start', items: [ 'intro', 'usage', 'project-structure', { text: 'Collection', link: 'collection', items: ['collection-post', 'collection-doc'], }, 'sidebar', 'write', 'auto-frontmatter', 'locales', 'deployment', 'optimize-build', ], }, { text: 'Write', 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', 'env', 'obsidian', ], }, { text: 'code block', prefix: 'code', icon: 'ph:code-bold', collapsed: true, items: [ 'intro', 'features', 'copy-code', 'code-tabs', 'import', 'twoslash', ], }, { text: 'code repl', prefix: 'repl', icon: 'carbon:demo', collapsed: true, items: [ 'frontend', 'rust', 'golang', 'kotlin', 'python', 'codepen', 'jsFiddle', 'codeSandbox', 'replit', ], }, { text: 'charts', icon: 'mdi:chart-line', prefix: 'chart', collapsed: true, items: [ 'chart', 'echarts', 'mermaid', 'flowchart', 'markmap', 'plantuml', ], }, { text: 'resource embedded', icon: 'dashicons:embed-video', prefix: 'embed', collapsed: true, items: [ 'pdf', 'bilibili', 'acfun', 'youtube', 'artplayer', 'audioReader', ], }, ], }, { text: 'Features', 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: 'Component', 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: 'Customization', icon: 'material-symbols:dashboard-customize-outline-rounded', collapsed: false, prefix: 'custom', items: [ { text: 'Custom Homepage', link: 'home', items: ['home-hero-effect'] }, 'style', 'slots', 'component-overrides', ], }, { text: 'API', icon: 'mdi:api', prefix: 'api', collapsed: false, items: [ 'client', 'node', ], }, ], })