Skip to content

Commit ba76716

Browse files
committed
Replace docusaurus-plugin-llms-txt with @signalwire/docusaurus-plugin-llms-txt
1 parent 60eead5 commit ba76716

3 files changed

Lines changed: 891 additions & 2016 deletions

File tree

docusaurus.config.ts

Lines changed: 11 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -168,53 +168,19 @@ const config: Config = {
168168

169169
plugins: [
170170
[
171-
'docusaurus-plugin-llms',
171+
'@signalwire/docusaurus-plugin-llms-txt',
172172
{
173-
// Options here
174-
generateLLMsTxt: true,
175-
generateLLMsFullTxt: true,
176-
docsDir: 'docs',
177-
ignoreFiles: ['advanced/*', 'private/*'],
178-
title: 'psake Documentation',
179-
description: 'Complete reference documentation for psake',
180-
includeBlog: true,
181-
// Content cleaning options
182-
excludeImports: true,
183-
removeDuplicateHeadings: true,
184-
// Control documentation order
185-
//includeOrder: [
186-
// 'getting-started/*',
187-
// 'guides/*',
188-
// 'api/*',
189-
//],
190-
includeUnmatchedLast: true,
191-
// Path transformation options
192-
pathTransformation: {
193-
// Paths to ignore when constructing URLs (will be removed if found)
194-
ignorePaths: ['docs'],
195-
// Paths to add when constructing URLs (will be prepended if not already present)
196-
addPaths: ['api'],
197-
},
198-
// Custom LLM files for specific documentation sections
199-
// customLLMFiles: [
200-
// {
201-
// filename: 'llms-python.txt',
202-
// includePatterns: ['api/python/**/*.md', 'guides/python/*.md'],
203-
// fullContent: true,
204-
// title: 'Python API Documentation',
205-
// description: 'Complete reference for Python API'
206-
// },
207-
// {
208-
// filename: 'llms-tutorials.txt',
209-
// includePatterns: ['tutorials/**/*.md'],
210-
// fullContent: false,
211-
// title: 'Tutorial Documentation',
212-
// description: 'All tutorials in a single file'
213-
// }
214-
// ],
215-
},
173+
siteTitle: 'Psake',
174+
siteDescription: 'Comprehensive guide to the psake build automation tool, including installation, usage, and advanced features.',
175+
depth: 2,
176+
content: {
177+
includeBlog: true,
178+
includePages: true,
179+
enableLlmsFullTxt: true // Optional: generates llms-full.txt
180+
}
181+
}
216182
],
217-
],
183+
]
218184
};
219185

220186
export default config;

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
"@docusaurus/core": "^3.8.1",
1919
"@docusaurus/preset-classic": "^3.8.1",
2020
"@mdx-js/react": "^3.0.0",
21+
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
2122
"clsx": "^2.0.0",
22-
"docusaurus-plugin-llms": "^0.1.5",
23-
"docusaurus-plugin-llms-txt": "^0.1.3",
2423
"prism-react-renderer": "^2.3.0",
2524
"react": "^18.0.0",
2625
"react-dom": "^18.0.0"

0 commit comments

Comments
 (0)