Skip to content

Commit c245a29

Browse files
authored
docs: Add llms.txt to docs build (#1316)
### Description `@signalwire/docusaurus-plugin-llms-txt` will create .md files plus llms-python.txt, which will be linked in JS Crawlee `llms.txt` apify/crawlee#3085
1 parent 550142a commit c245a29

File tree

3 files changed

+260
-12
lines changed

3 files changed

+260
-12
lines changed

website/docusaurus.config.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ module.exports = {
9999
return `https://github.com/apify/crawlee-python/edit/master/website/${doc.versionDocsDirPath}/${doc.docPath}`;
100100
},
101101
},
102-
// blog: {
103-
// blogTitle: 'Crawlee Blog - learn how to build better scrapers',
104-
// blogDescription: 'Guides and tutorials on using Crawlee, the most reliable open-source web scraping and browser automation library for JavaScript and Node.js developers.',
105-
// },
106102
theme: {
107103
customCss: '/src/css/custom.css',
108104
},
@@ -168,6 +164,17 @@ module.exports = {
168164
id: 'GTM-5P7MCS7',
169165
},
170166
],
167+
[
168+
'@signalwire/docusaurus-plugin-llms-txt',
169+
{
170+
enableDescriptions: false,
171+
content: {
172+
includeVersionedDocs: false,
173+
enableLlmsFullTxt: true,
174+
relativePaths: false,
175+
},
176+
},
177+
],
171178
async function runnableCodeBlock() {
172179
return {
173180
name: 'runnable-code-block',

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@docusaurus/theme-mermaid": "3.8.1",
4545
"@giscus/react": "^3.0.0",
4646
"@mdx-js/react": "^3.0.1",
47+
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.1",
4748
"axios": "^1.5.0",
4849
"buffer": "^6.0.3",
4950
"clsx": "^2.0.0",

0 commit comments

Comments
 (0)