This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
88 lines (81 loc) · 2.17 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
import { fileURLToPath } from 'url'
import { defineNuxtConfig } from 'nuxt'
import { resolve } from 'pathe'
import theme from './theme'
// Custom resolve function to resolve theme files locally
const themeDir = fileURLToPath(new URL('./', import.meta.url))
const resolveThemeDir = (path: string) => resolve(themeDir, path)
const components = [
// {
// prefix: '',
// path: resolveThemeDir('./components/app'),
// global: true,
// },
{
prefix: '',
path: resolveThemeDir('./components/content'),
global: true,
},
{
prefix: '',
path: resolveThemeDir('./components/icons'),
global: true,
},
]
export default defineNuxtConfig({
// Extends `@docus/docs-theme`
// extends: ['./node_modules/@docus/docs-theme'],
extends: [resolveThemeDir('../../@docus/docs-theme')],
modules: [],
components,
theme,
vite: {
build: {
chunkSizeWarningLimit: Infinity
},
optimizeDeps: {
include: ['mermaid/dist/mermaid']
}
},
tailwindcss: {
config: {
content: [
// resolveThemeDir('assets/**/*.{mjs,vue,js,ts}'),
resolveThemeDir('components/**/*.{mjs,vue,js,ts}'),
// resolveThemeDir('layouts/**/*.{mjs,vue,js,ts}'),
resolveThemeDir('pages/**/*.{mjs,vue,js,ts}'),
resolveThemeDir('./theme.ts'),
],
theme: {
extend: {
colors: {
primary: {
100: '#FFFFFF',
200: '#F2EFFF',
300: '#D1C7FF',
400: '#AF9EFF',
500: '#8E75FF', // strapi primary color
600: '#603DFF',
700: '#3205FF',
800: '#2500CC',
900: '#1B0094',
}
}
}
}
}
},
app: {
head: {
title: 'Strapi plugin documentation',
meta: [
{ hid: 'og:site_name', property: 'og:site_name', content: 'Strapi plugin documentation' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
],
link: [
{ hid: 'icon/svg', rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
{ hid: 'icon/png', rel: 'icon', type: 'image/png', href: '/favicon.png' },
]
},
},
})