-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
59 lines (57 loc) · 2.29 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import { resolve } from "node:path";
export default defineNuxtConfig({
devtools: { enabled: true },
css: ["~/assets/css/main.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
modules: ["nuxt-icon", "@nuxt/content", "@nuxtjs/seo"],
site: {
url: "www.murchinroom.fun",
},
content: {
sources: {
// default source is the `content` directory: not used.
// Additional sources: SRC:/public/blogs/**/*.md -> DST_URL/blogs/**/*
blogs: {
prefix: '/blogs/',
driver: 'fs',
// Put blogs under public: support Markdown documents
// to access images or other attachments through relative paths.
// Bonus:
// - access DST_URL/blogs/xxx for rendered page,
// - access DST_URL/blogs/xxx.md to download the raw Markdown.
// ... Anyway, the whole site is open-sourced, no problem of information leakage.
base: resolve(__dirname, 'public/blogs')
}
},
navigation: {
fields: ['publishedAt']
},
markdown: {
rehypePlugins: {
// "rehype-mathjax": {},
"rehype-katex": {
output: 'mathml' // https://github.com/nuxt/content/discussions/2561
}
},
remarkPlugins: [
'remark-math'
],
},
highlight: {
// grep -IRn '```' | grep -v '```$' | grep '.md:' | grep -v '/plugins' | cut -d'`' -f4 | tr '[:upper:]' '[:lower:]' | sort | uniq | xargs
langs: ['asm', 'awk', 'bash', 'bibtex', 'c', 'c#', 'c++', 'cmd', 'ssh-config', 'cpp', 'cs', 'csharp', 'css', 'csv', 'dart', 'diff', 'docker', 'dockerfile', 'fish', 'go', 'html', 'http', 'ini', 'java', 'javascript', 'js', 'json', 'jsonl', 'latex', 'lisp', 'log', 'lua', 'make', 'makefile', 'markdown', 'matlab', 'md', 'mermaid', 'nginx', 'nix', 'perl', 'php', 'plsql', 'prolog', 'proto', 'protobuf', 'py', 'python', 'r', 'rust', 'sh', 'shell', 'shellscript', 'sql', 'swift', 'tex', 'toml', 'ts', 'typescript', 'vb', 'vue', 'xml', 'yaml', 'yml', 'zig', 'zsh'],
theme: {
default: 'github-light', // Default theme (same as single string)
dark: 'github-dark', // Theme used if `html.dark`
sepia: 'monokai', // Theme used if `html.sepia`
}
},
},
compatibilityDate: "2024-12-14"
});