-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
51 lines (49 loc) · 1.75 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
const generateContentRoutes = require('./generateContentRoutes');
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxt/content", "@nuxtjs/tailwindcss", "@nuxtjs/seo"],
site: {
url: 'https://roadmap.rustlang-es.org',
name: 'Hoja de Ruta Definitiva para Aprender Rust',
description: 'Nuestra hoja de ruta te guiará paso a paso en tu viaje de aprendizaje de Rust diseñada para principiantes y desarrolladores experimentados',
defaultLocale: 'es'
},
ogImage: { enabled: false },
nitro: {
prerender: {
routes: ['/sitemap.xml'],
}
},
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
link: [
{ rel: "preconnect", href:"https://fonts.googleapis.com" },
{ rel: "preconnect", href:"https://fonts.gstatic.com", crossorigin: true },
{ rel: 'stylesheet', href:"https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" },
{ rel: 'stylesheet', href:"https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" },
]
}
},
content: {
highlight: {
langs: ['c', 'cpp', 'rs', 'java', 'js', 'cs', 'asm', 'toml', 'console', 'sh', 'bash', "vim"],
// Themes from https://github.com/shikijs/textmate-grammars-themes/tree/main/packages/tm-themes
theme: {
default: 'vitesse-dark',
dark: 'vitesse-dark',
sepia: 'monokai'
}
},
},
hooks: {
async 'prerender:routes'(ctx) {
const contentRoutes = await generateContentRoutes();
for (const route of contentRoutes) {
ctx.routes.add(route)
}
}
}
})