docs(llms): generate llms.txt from content (#3246)

This commit is contained in:
Farnabaz
2025-02-05 18:25:39 +01:00
committed by GitHub
parent dfa48828ff
commit c5bb540519
5 changed files with 230 additions and 1 deletions

View File

@@ -22,7 +22,8 @@ export default defineNuxtConfig({
nuxt.hook('components:dirs', (dirs) => {
dirs.unshift({ path: resolve('./app/components/content/examples'), pathPrefix: false, prefix: '', global: true })
})
}
},
'~~/modules/llms/module'
],
app: {
@@ -147,6 +148,50 @@ export default defineNuxtConfig({
image: {
provider: 'ipx'
},
llms: {
domain: 'https://ui3.nuxt.dev',
title: 'Nuxt UI v3',
description: 'A comprehensive, Nuxt-integrated UI library providing a rich set of fully-styled, accessible and highly customizable components for building modern web applications.',
sections: [
{
title: 'Getting Started',
collection: 'content',
filters: [
{
field: 'path',
operator: 'LIKE',
value: '/getting-started%'
}
]
},
{
title: 'Components',
collection: 'content',
filters: [
{
field: 'path',
operator: 'LIKE',
value: '/components/%'
}
]
},
{
title: 'Composables',
collection: 'content',
filters: [
{
field: 'path',
operator: 'LIKE',
value: '/composables/%'
}
]
}
],
notes: [
'The documentation excludes Nuxt UI v2 content.',
'The content is automatically generated from the same source as the official documentation.'
]
},
uiPro: {
license: 'oss'