2022-04-15 15:19:05 +00:00
|
|
|
import { resolve } from 'node:path'
|
2021-07-28 07:50:09 +00:00
|
|
|
import { withDocus } from '@docus/app'
|
2021-06-07 11:49:37 +00:00
|
|
|
|
|
|
|
export default withDocus({
|
2021-07-28 07:50:09 +00:00
|
|
|
/**
|
|
|
|
* Has to specify rootDir as we use nuxt-extend
|
|
|
|
*/
|
|
|
|
rootDir: __dirname,
|
2021-10-11 12:57:54 +00:00
|
|
|
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',
|
2022-04-25 08:57:22 +00:00
|
|
|
content: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png'
|
2021-10-11 12:57:54 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
hid: 'og:image:secure_url',
|
|
|
|
property: 'og:image:secure_url',
|
2022-04-25 08:57:22 +00:00
|
|
|
content: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png'
|
2021-10-11 12:57:54 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
hid: 'og:image:alt',
|
|
|
|
property: 'og:image:alt',
|
|
|
|
content: 'Nuxt 3'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
hid: 'twitter:image',
|
|
|
|
name: 'twitter:image',
|
2022-04-25 08:57:22 +00:00
|
|
|
content: 'https://res.cloudinary.com/nuxt/image/upload/v1650870623/nuxt3-rc-social_z6qh3m.png'
|
2021-10-11 22:47:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
hid: 'og:video',
|
|
|
|
name: 'og:video',
|
2021-10-13 08:44:22 +00:00
|
|
|
content: 'https://res.cloudinary.com/nuxt/video/upload/v1634114611/nuxt3-beta_sznsf8.mp4'
|
2021-10-11 12:57:54 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
bodyAttrs: {
|
|
|
|
class: ['min-w-xs']
|
|
|
|
}
|
|
|
|
},
|
2021-10-11 23:33:32 +00:00
|
|
|
loading: {
|
|
|
|
color: '#00DC82'
|
|
|
|
},
|
2021-10-11 12:57:54 +00:00
|
|
|
css: [resolve(__dirname, './assets/nuxt.css')],
|
|
|
|
windicss: {
|
|
|
|
root: resolve(__dirname),
|
|
|
|
config: resolve(__dirname, 'windi.config.js')
|
|
|
|
},
|
2021-07-28 07:50:09 +00:00
|
|
|
/**
|
|
|
|
* Modules
|
|
|
|
*/
|
|
|
|
buildModules: [
|
|
|
|
'@nuxt/typescript-build',
|
|
|
|
'@docus/github',
|
2021-09-09 17:25:26 +00:00
|
|
|
'vue-plausible'
|
|
|
|
],
|
2021-10-11 12:57:54 +00:00
|
|
|
plugins: [
|
|
|
|
'~/plugins/mq'
|
|
|
|
],
|
2021-09-09 17:25:26 +00:00
|
|
|
publicRuntimeConfig: {
|
|
|
|
plausible: {
|
|
|
|
domain: process.env.PLAUSIBLE_DOMAIN
|
|
|
|
}
|
|
|
|
}
|
2021-06-07 11:49:37 +00:00
|
|
|
})
|