Skip to content

Commit 8ca7940

Browse files
authored
feat(docs): Add button to copy md of page (#461)
1 parent 9577ee8 commit 8ca7940

File tree

3 files changed

+854
-5
lines changed

3 files changed

+854
-5
lines changed

docs/docusaurus.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const config: Config = {
105105
indexBlog: false,
106106
} satisfies SearchLocalPluginOptions,
107107
],
108+
'@signalwire/docusaurus-theme-llms-txt',
108109
],
109110
plugins: [
110111
[
@@ -214,6 +215,9 @@ const config: Config = {
214215
'end development workflow that weaves together the best parts of ' +
215216
'React, GraphQL, Prisma, TypeScript, Vitest, and Storybook.',
216217
},
218+
ui: {
219+
copyPageContent: true,
220+
},
217221
} satisfies LlmsTxtPluginOptions,
218222
],
219223
],

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@easyops-cn/docusaurus-search-local": "^0.49.2",
3232
"@mdx-js/react": "3.0.1",
3333
"@signalwire/docusaurus-plugin-llms-txt": "2.0.0-alpha.2",
34+
"@signalwire/docusaurus-theme-llms-txt": "1.0.0-alpha.3",
3435
"clsx": "2.1.1",
3536
"prism-react-renderer": "2.4.1",
3637
"react": "18.2.0",

0 commit comments

Comments
 (0)