chore: setup lunaria (#3444)

pull/3451/head
Divyansh Singh 9 months ago committed by GitHub
parent 78abf47b8b
commit 6eecfb338f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,25 @@
{
"$schema": "./node_modules/@lunariajs/core/config.schema.json",
"repository": {
"name": "vuejs/vitepress",
"rootDir": "docs"
},
"files": [
{
"location": "**/*.md",
"pattern": "@lang/@path",
"type": "universal"
}
],
"defaultLocale": {
"label": "English",
"lang": "en"
},
"locales": [
{
"label": "简体中文",
"lang": "zh"
}
],
"outDir": ".vitepress/dist/_translations"
}

@ -5,10 +5,14 @@
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
"preview": "vitepress preview",
"lunaria:build": "lunaria build",
"lunaria:open": "open-cli .vitepress/dist/_translations/index.html"
},
"devDependencies": {
"@lunariajs/core": "^0.0.25",
"markdown-it-mathjax3": "^4.3.2",
"open-cli": "^8.0.0",
"vitepress": "workspace:*"
}
}

@ -1,3 +1,6 @@
/assets/*
cache-control: max-age=31536000
cache-control: immutable
/_translations/*
x-robots-tag: noindex

@ -1,6 +1,6 @@
[build.environment]
NODE_VERSION = "18"
NODE_VERSION = "20"
[build]
publish = "docs/.vitepress/dist"
command = "pnpm docs:build"
command = "pnpm docs:build && pnpm docs:lunaria:build"

@ -83,6 +83,8 @@
"docs:build": "run-s build docs:build:only",
"docs:build:only": "pnpm -F=docs build",
"docs:preview": "pnpm -F=docs preview",
"docs:lunaria:build": "pnpm -F=docs lunaria:build",
"docs:lunaria:open": "pnpm -F=docs lunaria:open",
"format": "prettier --check --write .",
"format:fail": "prettier --check .",
"check": "run-s format:fail build test",

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save