File tree Expand file tree Collapse file tree 5 files changed +252
-0
lines changed
Expand file tree Collapse file tree 5 files changed +252
-0
lines changed Original file line number Diff line number Diff line change 11import { withPwa } from '@vite-pwa/vitepress'
22import { defineConfig } from 'vitepress'
3+ import llmstxt , { copyOrDownloadAsMarkdownButtons } from 'vitepress-plugin-llms'
34import { version } from '../../package.json'
45import { ogImage , ogUrl } from './constants'
56import { pwa } from './pwa'
@@ -36,6 +37,9 @@ export default withPwa(defineConfig({
3637 light : 'github-light' ,
3738 dark : 'github-dark' ,
3839 } ,
40+ config ( md ) {
41+ md . use ( copyOrDownloadAsMarkdownButtons )
42+ } ,
3943 } ,
4044 themeConfig : {
4145 logo : '/logo_h.svg' ,
@@ -161,6 +165,7 @@ export default withPwa(defineConfig({
161165 } ,
162166 vite : {
163167 logLevel : 'info' ,
168+ plugins : [ llmstxt ( ) ] ,
164169 } ,
165170 pwa,
166171 buildEnd,
Original file line number Diff line number Diff line change 11import type { Theme } from 'vitepress'
22import * as Swetrix from 'swetrix'
33import { inBrowser } from 'vitepress'
4+ import CopyOrDownloadAsMarkdownButtons from 'vitepress-plugin-llms/vitepress-components/CopyOrDownloadAsMarkdownButtons.vue'
45import DefaultTheme from 'vitepress/theme'
56import CompatibilityMatrix from './components/CompatibilityMatrix.vue'
67import HomeHeroCopy from './components/HomeHeroCopy.vue'
@@ -21,6 +22,7 @@ export default {
2122 enhanceApp ( { app } ) {
2223 app . component ( 'HomeHeroCopy' , HomeHeroCopy )
2324 app . component ( 'CompatibilityMatrix' , CompatibilityMatrix )
25+ app . component ( 'CopyOrDownloadAsMarkdownButtons' , CopyOrDownloadAsMarkdownButtons )
2426
2527 Swetrix . init ( 'KMc9xOD28UCn' , {
2628 apiURL : 'https://swetrix-api.vuetifyjs.com/log' ,
Original file line number Diff line number Diff line change 2323 "unocss" : " catalog:" ,
2424 "vite-plugin-pwa" : " catalog:" ,
2525 "vitepress" : " catalog:" ,
26+ "vitepress-plugin-llms" : " catalog:" ,
2627 "workbox-window" : " catalog:"
2728 }
2829}
You can’t perform that action at this time.
0 commit comments