Skip to content

Commit d550bbb

Browse files
committed
chore: update
1 parent 684e247 commit d550bbb

File tree

6 files changed

+69
-3
lines changed

6 files changed

+69
-3
lines changed

packages/v2/.vitepress/config/shared.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ export const shared = defineConfig({
6161

6262
//
6363
// todo x: logo
64+
// - 如果自定义了 src 路径, 需要把 public, 放在 src/public 下, 才是正确匹配的
6465
//
65-
// logo: { src: '/vitepress-logo-mini.svg', width: 24, height: 24 },
66+
logo: { src: '/logo.svg', width: 24, height: 24 },
6667

6768
socialLinks: [
6869
{ icon: 'github', link: 'https://github.com/better-try' },

packages/v2/lunaria.config.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "./node_modules/@lunariajs/core/config.schema.json",
3+
"repository": {
4+
"name": "vuejs/vitepress",
5+
"rootDir": "docs"
6+
},
7+
"files": [
8+
{
9+
"location": ".vitepress/config/{en,zh,pt,ru}.ts",
10+
"pattern": ".vitepress/config/@lang.ts",
11+
"type": "universal"
12+
},
13+
{
14+
"location": "**/*.md",
15+
"pattern": "@lang/@path",
16+
"type": "universal"
17+
}
18+
],
19+
"defaultLocale": {
20+
"label": "English",
21+
"lang": "en"
22+
},
23+
"locales": [
24+
{
25+
"label": "简体中文",
26+
"lang": "zh"
27+
},
28+
{
29+
"label": "Português",
30+
"lang": "pt"
31+
},
32+
{
33+
"label": "Русский",
34+
"lang": "ru"
35+
}
36+
],
37+
"outDir": ".vitepress/dist/_translations",
38+
"ignoreKeywords": ["lunaria-ignore"]
39+
}

packages/v2/src/products/index.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ layout: home
44

55
hero:
66
name: "My Awesome Products"
7-
8-
tagline: My great project tagline
7+
# tagline: My great project tagline
98

109
features:
1110
- icon: ⚡️

packages/v2/src/public/_headers

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/assets/*
2+
cache-control: max-age=31536000
3+
cache-control: immutable
4+
5+
/_translations/*
6+
x-robots-tag: noindex
File renamed without changes.

packages/v2/src/public/logo.svg

+21
Loading

0 commit comments

Comments
 (0)