Repository navigation
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
98 lines (88 loc) · 1.9 KB
/
Copy pathnuxt.config.ts
File metadata and controls
98 lines (88 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
export default defineNuxtConfig({
modules: [
'@nuxt/eslint',
'@nuxt/image',
'@nuxt/ui',
'@nuxt/content',
'nuxt-og-image',
'nuxt-llms'
],
devtools: {
enabled: true
},
css: ['~/assets/css/main.css'],
content: {
build: {
markdown: {
toc: {
searchDepth: 1
}
}
}
},
compatibilityDate: '2024-07-11',
// ⭐ ADD THIS - Critical for GitHub Pages subdirectory
app: {
baseURL: '/cs-documentation/', // Must match your repo name
buildAssetsDir: 'assets',
// Add this to configure favicon
head: {
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: 'favicon_nfdi4chem.ico' // Nuxt will auto-prefix with baseURL
}
]
}// Avoid Jekyll conflicts
},
nitro: {
preset: 'github_pages',
prerender: {
routes: ['/'],
crawlLinks: true,
autoSubfolderIndex: false
}
},
postcss: {
plugins: {
'@tailwindcss/postcss': {},
},
},
eslint: {
config: {
stylistic: {
commaDangle: 'never',
braceStyle: '1tbs'
}
}
},
icon: {
provider: 'iconify'
},
llms: {
domain: 'https://docs-template.nuxt.dev/',
title: 'Nuxt Docs Template',
description: 'A template for building documentation with Nuxt UI and Nuxt Content.',
full: {
title: 'Nuxt Docs Template - Full Documentation',
description: 'This is the full documentation for the Nuxt Docs Template.'
},
sections: [
{
title: 'Getting Started',
contentCollection: 'docs',
contentFilters: [
{ field: 'path', operator: 'LIKE', value: '/getting-started%' }
]
},
{
title: 'Essentials',
contentCollection: 'docs',
contentFilters: [
{ field: 'path', operator: 'LIKE', value: '/essentials%' }
]
}
]
}
})