File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
22import markdownItTaskLists from 'markdown-it-task-lists'
33import { defineConfig } from 'vitepress'
44import { groupIconMdPlugin , groupIconVitePlugin , localIconLoader } from 'vitepress-plugin-group-icons'
5- import llmstxt from 'vitepress-plugin-llms'
5+ import llmstxt , { copyOrDownloadAsMarkdownButtons } from 'vitepress-plugin-llms'
66import { withMermaid } from 'vitepress-plugin-mermaid'
77
88export default withMermaid ( defineConfig ( {
@@ -19,6 +19,7 @@ export default withMermaid(defineConfig({
1919 config ( md ) {
2020 md . use ( groupIconMdPlugin )
2121 md . use ( markdownItTaskLists )
22+ md . use ( copyOrDownloadAsMarkdownButtons )
2223 } ,
2324 codeTransformers : [
2425 transformerTwoslash ( ) ,
Original file line number Diff line number Diff line change 11import type { EnhanceAppContext } from 'vitepress'
22import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
3+ import CopyOrDownloadAsMarkdownButtons from 'vitepress-plugin-llms/vitepress-components/CopyOrDownloadAsMarkdownButtons.vue'
34import Theme from 'vitepress/theme'
45import { h } from 'vue'
56import AsideSponsors from './components/AsideSponsors.vue'
@@ -13,6 +14,7 @@ export default {
1314 extends : Theme ,
1415 enhanceApp ( { app } : EnhanceAppContext ) {
1516 app . use ( TwoslashFloatingVue )
17+ app . component ( 'CopyOrDownloadAsMarkdownButtons' , CopyOrDownloadAsMarkdownButtons )
1618 } ,
1719 Layout ( ) {
1820 return h ( Theme . Layout , null , {
You can’t perform that action at this time.
0 commit comments