mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
87 lines
2.3 KiB
TypeScript
87 lines
2.3 KiB
TypeScript
import { resolve } from 'node:path'
|
|
import { withDocus } from '@docus/app'
|
|
|
|
export default withDocus({
|
|
/**
|
|
* Has to specify rootDir as we use nuxt-extend
|
|
*/
|
|
rootDir: __dirname,
|
|
head: {
|
|
titleTemplate: 'Nuxt 3 - %s',
|
|
link: [
|
|
{
|
|
rel: 'stylesheet',
|
|
href: 'https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=DM+Serif+Display:ital@0;1&display=swap'
|
|
},
|
|
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' }
|
|
],
|
|
meta: [
|
|
{ hid: 'og:site_name', property: 'og:site_name', content: 'Nuxt 3' },
|
|
{ hid: 'og:type', property: 'og:type', content: 'website' },
|
|
{ hid: 'twitter:site', name: 'twitter:site', content: '@nuxt_js' },
|
|
{
|
|
hid: 'twitter:card',
|
|
name: 'twitter:card',
|
|
content: 'summary_large_image'
|
|
},
|
|
{
|
|
hid: 'og:image',
|
|
property: 'og:image',
|
|
content: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png'
|
|
},
|
|
{
|
|
hid: 'og:image:secure_url',
|
|
property: 'og:image:secure_url',
|
|
content: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png'
|
|
},
|
|
{
|
|
hid: 'og:image:alt',
|
|
property: 'og:image:alt',
|
|
content: 'Nuxt 3'
|
|
},
|
|
{
|
|
hid: 'twitter:image',
|
|
name: 'twitter:image',
|
|
content: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png'
|
|
},
|
|
{
|
|
hid: 'og:video',
|
|
name: 'og:video',
|
|
content: 'https://res.cloudinary.com/nuxt/video/upload/v1634114611/nuxt3-beta_sznsf8.mp4'
|
|
},
|
|
{
|
|
hid: 'nuxt_doc_theme_color',
|
|
name: 'theme-color',
|
|
content: '#00db80'
|
|
}
|
|
],
|
|
bodyAttrs: {
|
|
class: ['min-w-xs']
|
|
}
|
|
},
|
|
loading: {
|
|
color: '#00DC82'
|
|
},
|
|
css: [resolve(__dirname, './assets/nuxt.css')],
|
|
windicss: {
|
|
root: resolve(__dirname),
|
|
config: resolve(__dirname, 'windi.config.js')
|
|
},
|
|
/**
|
|
* Modules
|
|
*/
|
|
buildModules: [
|
|
'@nuxt/typescript-build',
|
|
'@docus/github',
|
|
'vue-plausible'
|
|
],
|
|
plugins: [
|
|
'~/plugins/mq'
|
|
],
|
|
publicRuntimeConfig: {
|
|
plausible: {
|
|
domain: process.env.PLAUSIBLE_DOMAIN
|
|
}
|
|
}
|
|
})
|