feat: Initialize VitePress configuration and add Node.js types dependency.

This commit is contained in:
dyzulk
2026-01-19 16:28:50 +07:00
parent 4876a89594
commit 2ba0d48919
3 changed files with 28 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
import { defineConfig } from 'vitepress'
import { createWriteStream } from 'fs'
import { resolve } from 'path'
import { sidebarEn, sidebarId } from './config/sidebars'
import { navEn, navId } from './config/nav'
@@ -11,6 +13,13 @@ export default defineConfig({
sitemap: {
hostname: 'https://mivodev.github.io'
},
buildEnd: ({ outDir }) => {
const sitemap = createWriteStream(resolve(outDir, 'robots.txt'))
sitemap.write('User-agent: *\n')
sitemap.write('Allow: /\n')
sitemap.write('Sitemap: https://mivodev.github.io/sitemap.xml\n')
sitemap.end()
},
head: [
['link', { rel: 'icon', href: '/logo-m.svg' }],

18
package-lock.json generated
View File

@@ -14,6 +14,7 @@
"markdown-it": "^14.1.0"
},
"devDependencies": {
"@types/node": "^25.0.9",
"autoprefixer": "^10.4.23",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.17",
@@ -1362,6 +1363,16 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "25.0.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.9.tgz",
"integrity": "sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~7.16.0"
}
},
"node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
@@ -3387,6 +3398,13 @@
"integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
"license": "MIT"
},
"node_modules/undici-types": {
"version": "7.16.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",
"dev": true,
"license": "MIT"
},
"node_modules/unist-util-is": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",

View File

@@ -17,6 +17,7 @@
"author": "MivoDev",
"license": "MIT",
"devDependencies": {
"@types/node": "^25.0.9",
"autoprefixer": "^10.4.23",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.17",