-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
88 lines (85 loc) · 2.88 KB
/
nuxt.config.ts
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
// https://nuxt.com/docs/api/configuration/nuxt-config
const translations = {
button: {
buttonText: 'Recherche',
buttonAriaLabel: 'Recherche',
},
modal: {
searchBox: {
resetButtonTitle: 'Clear the query',
resetButtonAriaLabel: 'Clear the query',
cancelButtonText: 'Cancel',
cancelButtonAriaLabel: 'Cancel',
},
startScreen: {
recentSearchesTitle: 'Recherches récentes',
noRecentSearchesText: 'Aucune recherche récente',
saveRecentSearchButtonTitle: 'Save this search',
removeRecentSearchButtonTitle: 'Remove this search from history',
favoriteSearchesTitle: 'Favorite',
removeFavoriteSearchButtonTitle: 'Remove this search from favorites',
},
errorScreen: {
titleText: 'Unable to fetch results',
helpText: 'You might want to check your network connection.',
},
footer: {
selectText: 'pour sélectionner',
selectKeyAriaLabel: 'Enter key',
navigateText: 'pour naviguer',
navigateUpKeyAriaLabel: 'Arrow up',
navigateDownKeyAriaLabel: 'Arrow down',
closeText: 'pour fermer',
closeKeyAriaLabel: 'Escape key',
searchByText: 'Recherche proposée par',
},
noResultsScreen: {
noResultsText: 'Aucun résultat pour',
suggestedQueryText: 'Try searching for',
reportMissingResultsText: 'Believe this query should return results?',
reportMissingResultsLinkText: 'Let us know.',
},
},
}
const modules = ['@nuxt/content', '@nuxt/ui', '@nuxt/fonts', '@nuxthq/studio', 'nuxt-og-image']
if (process.env.DOCSEARCH_API_KEY && !process.env.DISABLE_DOCSEARCH) {
modules.push('@nuxtjs/algolia')
}
export default defineNuxtConfig({
extends: ['@nuxt/ui-pro'],
modules: modules,
hooks: {
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
'components:extend': (components) => {
const globals = components.filter((c) => ['UButton', 'UIcon'].includes(c.pascalName))
globals.forEach((c) => c.global = true)
}
},
ui: {
icons: ['heroicons', 'simple-icons', 'mdi', 'vaadin', 'uil', 'carbon', 'material-symbols', 'fluent', 'eos-icons', 'ri', 'icon-park-outline', 'ep', 'clarity', 'fontisto', 'ic', 'codicon', 'octicon', 'feather', 'logos', 'healthicons', 'gg', 'iconoir', 'system-uicons', 'fa6-solid', 'fa6-brands', 'cib', 'devicon-plain']
},
devtools: {
enabled: true
},
typescript: {
strict: false
},
content: {
highlight: {
preload: ['xml', 'python', 'jinja', 'perl']
},
locales: ['fr'],
defaultLocale: 'fr',
},
algolia: {
apiKey: process.env.DOCSEARCH_API_KEY,
applicationId: process.env.DOCSEARCH_APP_ID,
// DocSearch key is used to configure DocSearch extension.
docSearch: {
indexName: 'dokos',
placeholder: 'Rechercher un article',
translations: translations,
langAttribute: 'lang',
},
}
})