Compare commits
	
		
			2 Commits
		
	
	
		
			7a1bffd4b1
			...
			f697db86db
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f697db86db | |||
| af46ee45d9 | 
@@ -5,6 +5,9 @@ import {
 | 
				
			|||||||
  GitChangelog,
 | 
					  GitChangelog,
 | 
				
			||||||
  GitChangelogMarkdownSection,
 | 
					  GitChangelogMarkdownSection,
 | 
				
			||||||
} from '@nolebase/vitepress-plugin-git-changelog/vite'
 | 
					} from '@nolebase/vitepress-plugin-git-changelog/vite'
 | 
				
			||||||
 | 
					// import {
 | 
				
			||||||
 | 
					//   InlineLinkPreviewElementTransform
 | 
				
			||||||
 | 
					// } from '@nolebase/vitepress-plugin-inline-link-preview/markdown-it'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// https://vitepress.dev/reference/site-config
 | 
					// https://vitepress.dev/reference/site-config
 | 
				
			||||||
export default defineConfig({
 | 
					export default defineConfig({
 | 
				
			||||||
@@ -24,6 +27,8 @@ export default defineConfig({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    optimizeDeps: {
 | 
					    optimizeDeps: {
 | 
				
			||||||
      exclude: [
 | 
					      exclude: [
 | 
				
			||||||
 | 
					        // [配置] 行内链接预览
 | 
				
			||||||
 | 
					        // '@nolebase/vitepress-plugin-inline-link-preview/client',
 | 
				
			||||||
        // [配置] 阅读增强
 | 
					        // [配置] 阅读增强
 | 
				
			||||||
        '@nolebase/vitepress-plugin-enhanced-readabilities/client',
 | 
					        '@nolebase/vitepress-plugin-enhanced-readabilities/client',
 | 
				
			||||||
        'vitepress',
 | 
					        'vitepress',
 | 
				
			||||||
@@ -33,6 +38,8 @@ export default defineConfig({
 | 
				
			|||||||
    ssr: {
 | 
					    ssr: {
 | 
				
			||||||
      noExternal: [
 | 
					      noExternal: [
 | 
				
			||||||
        // 如果还有别的依赖需要添加的话,并排填写和配置到这里即可 //
 | 
					        // 如果还有别的依赖需要添加的话,并排填写和配置到这里即可 //
 | 
				
			||||||
 | 
					        // [配置] 行内链接预览
 | 
				
			||||||
 | 
					        // '@nolebase/vitepress-plugin-inline-link-preview',
 | 
				
			||||||
        // [配置] 阅读增强
 | 
					        // [配置] 阅读增强
 | 
				
			||||||
        '@nolebase/vitepress-plugin-enhanced-readabilities',
 | 
					        '@nolebase/vitepress-plugin-enhanced-readabilities',
 | 
				
			||||||
        '@nolebase/ui',
 | 
					        '@nolebase/ui',
 | 
				
			||||||
@@ -97,8 +104,8 @@ export default defineConfig({
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    docFooter: {
 | 
					    docFooter: {
 | 
				
			||||||
      prev: '上一页',
 | 
					      prev: '上一篇',
 | 
				
			||||||
      next: '下一页'
 | 
					      next: '下一篇'
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    outline: {
 | 
					    outline: {
 | 
				
			||||||
@@ -120,4 +127,13 @@ export default defineConfig({
 | 
				
			|||||||
    lightModeSwitchTitle: '切换到浅色模式',
 | 
					    lightModeSwitchTitle: '切换到浅色模式',
 | 
				
			||||||
    darkModeSwitchTitle: '切换到深色模式'
 | 
					    darkModeSwitchTitle: '切换到深色模式'
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // markdown: {
 | 
				
			||||||
 | 
					  //   config(md) {
 | 
				
			||||||
 | 
					  //     // 其他 markdown-it 配置... //
 | 
				
			||||||
 | 
					  //     // [配置] 行内链接预览
 | 
				
			||||||
 | 
					  //     // refer: https://nolebase-integrations.ayaka.io/pages/zh-CN/integrations/vitepress-plugin-inline-link-preview/getting-started
 | 
				
			||||||
 | 
					  //     md.use(InlineLinkPreviewElementTransform)
 | 
				
			||||||
 | 
					  //   }
 | 
				
			||||||
 | 
					  // },
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,17 +9,17 @@ hero:
 | 
				
			|||||||
    src: /assets/logo.svg
 | 
					    src: /assets/logo.svg
 | 
				
			||||||
    alt: VitePress
 | 
					    alt: VitePress
 | 
				
			||||||
    style: "border-radius: 50%"
 | 
					    style: "border-radius: 50%"
 | 
				
			||||||
  tagline: 时间应该更重要的事情
 | 
					  tagline: 你的时间应该去做更重要的事情
 | 
				
			||||||
  actions:
 | 
					  actions:
 | 
				
			||||||
    - theme: brand
 | 
					    - theme: brand
 | 
				
			||||||
      text: 进入教程
 | 
					      text: 进入教程
 | 
				
			||||||
      link: /how-to/intro
 | 
					      link: /how-to/intro
 | 
				
			||||||
    - theme: alt
 | 
					    # - theme: alt
 | 
				
			||||||
      text: Markdown Examples
 | 
					    #   text: Markdown Examples
 | 
				
			||||||
      link: /markdown-examples
 | 
					    #   link: /markdown-examples
 | 
				
			||||||
    - theme: alt
 | 
					    # - theme: alt
 | 
				
			||||||
      text: API Examples
 | 
					    #   text: API Examples
 | 
				
			||||||
      link: /api-examples
 | 
					    #   link: /api-examples
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# features:
 | 
					# features:
 | 
				
			||||||
#   - title: Feature A
 | 
					#   - title: Feature A
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user