Skip to content

Commit a6a8037

Browse files
author
lei.liao
committed
chore: add star prompts and search verification support
1 parent 4cf37ae commit a6a8037

6 files changed

Lines changed: 257 additions & 26 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<a href="https://winwin.nexsail.top"><strong>Visit WinWin Media at winwin.nexsail.top »</strong></a>
1414
</p>
1515

16+
<p align="center">
17+
<strong>If BVM saves you time, please give it a GitHub Star.</strong>
18+
<br />
19+
<a href="https://github.com/EricLLLLLL/bvm"><strong>Star BVM on GitHub »</strong></a>
20+
</p>
21+
1622
<p align="center">
1723
<a href="https://bvm-core.nexsail.top"><strong>Official Website & Documentation »</strong></a>
1824
<br />
@@ -32,6 +38,9 @@
3238
<a href="https://github.com/EricLLLLLL/bvm/releases">
3339
<img src="https://img.shields.io/github/v/release/EricLLLLLL/bvm?color=f472b6&label=latest" alt="Release" />
3440
</a>
41+
<a href="https://github.com/EricLLLLLL/bvm/stargazers">
42+
<img src="https://img.shields.io/github/stars/EricLLLLLL/bvm?style=social" alt="GitHub stars" />
43+
</a>
3544
<a href="https://github.com/EricLLLLLL/bvm/blob/main/LICENSE">
3645
<img src="https://img.shields.io/github/license/EricLLLLLL/bvm?color=orange" alt="License" />
3746
</a>

README.zh-CN.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<a href="https://winwin.nexsail.top"><strong>访问 winwin.nexsail.top »</strong></a>
1414
</p>
1515

16+
<p align="center">
17+
<strong>如果 BVM 对你有帮助,欢迎给项目点一个 GitHub Star。</strong>
18+
<br />
19+
<a href="https://github.com/EricLLLLLL/bvm"><strong>去 GitHub 点 Star »</strong></a>
20+
</p>
21+
1622
<p align="center">
1723
<a href="https://bvm-core.nexsail.top"><strong>官方网站与文档 »</strong></a>
1824
<br />
@@ -32,6 +38,9 @@
3238
<a href="https://github.com/EricLLLLLL/bvm/releases">
3339
<img src="https://img.shields.io/github/v/release/EricLLLLLL/bvm?color=f472b6&label=latest" alt="Release" />
3440
</a>
41+
<a href="https://github.com/EricLLLLLL/bvm/stargazers">
42+
<img src="https://img.shields.io/github/stars/EricLLLLLL/bvm?style=social" alt="GitHub stars" />
43+
</a>
3544
<a href="https://github.com/EricLLLLLL/bvm/blob/main/LICENSE">
3645
<img src="https://img.shields.io/github/license/EricLLLLLL/bvm?color=orange" alt="License" />
3746
</a>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Google / Bing 提交清单
2+
3+
目标站点:`https://bvm-core.nexsail.top`
4+
5+
## 已就绪
6+
7+
- `robots.txt`
8+
- 地址:`https://bvm-core.nexsail.top/robots.txt`
9+
- 当前已声明 sitemap
10+
- `sitemap.xml`
11+
- 由 VitePress sitemap 生成
12+
- 基础域名来自 `website/docs/.vitepress/config.ts`
13+
- Google 验证 meta
14+
- 环境变量:`BVM_GOOGLE_SITE_VERIFICATION`
15+
- 输出标签:`<meta name="google-site-verification" content="...">`
16+
- Bing 验证 meta
17+
- 环境变量:`BVM_BING_SITE_VERIFICATION`
18+
- 输出标签:`<meta name="msvalidate.01" content="...">`
19+
20+
## 你需要提供
21+
22+
- Google Search Console 给出的 verification token
23+
- Bing Webmaster Tools 给出的 verification token
24+
25+
## 部署前设置
26+
27+
在构建站点的环境变量里增加:
28+
29+
```bash
30+
BVM_GOOGLE_SITE_VERIFICATION=你的_google_token
31+
BVM_BING_SITE_VERIFICATION=你的_bing_token
32+
```
33+
34+
## 提交步骤
35+
36+
### Google Search Console
37+
38+
1. 添加资源:`https://bvm-core.nexsail.top/`
39+
2. 优先选择 `HTML 标记` 验证
40+
3. 把 token 填到 `BVM_GOOGLE_SITE_VERIFICATION`
41+
4. 部署后打开首页,确认存在:
42+
43+
```html
44+
<meta name="google-site-verification" content="你的_token">
45+
```
46+
47+
5. 点击验证
48+
6. 提交 sitemap:`https://bvm-core.nexsail.top/sitemap.xml`
49+
50+
### Bing Webmaster Tools
51+
52+
1. 添加站点:`https://bvm-core.nexsail.top/`
53+
2. 选择 `Meta tag` 验证
54+
3. 把 token 填到 `BVM_BING_SITE_VERIFICATION`
55+
4. 部署后打开首页,确认存在:
56+
57+
```html
58+
<meta name="msvalidate.01" content="你的_token">
59+
```
60+
61+
5. 点击验证
62+
6. 提交 sitemap:`https://bvm-core.nexsail.top/sitemap.xml`
63+
64+
## 可选方案
65+
66+
如果你不想走 meta 验证,也可以改成根目录文件验证:
67+
68+
- Google:放平台给的 `google*.html` 到站点根目录
69+
- Bing:放平台给的 `BingSiteAuth.xml` 到站点根目录
70+
71+
当前仓库更适合优先走 meta 验证,因为不需要为每次 token 变更新增文件。

website/docs/.vitepress/config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { defineConfig, type TransformPageContext } from 'vitepress';
33
const SITE_URL = 'https://bvm-core.nexsail.top';
44
const UMAMI_SRC = process.env.BVM_UMAMI_SRC?.trim();
55
const UMAMI_WEBSITE_ID = process.env.BVM_UMAMI_WEBSITE_ID?.trim();
6+
const GOOGLE_SITE_VERIFICATION = process.env.BVM_GOOGLE_SITE_VERIFICATION?.trim() || 'IMcyUrktAh6wU92AAoSovkOXVHMnnklzBuyjGGyFB6Q';
7+
const BING_SITE_VERIFICATION = process.env.BVM_BING_SITE_VERIFICATION?.trim();
68

79
const head: NonNullable<ReturnType<typeof defineConfig>['head']> = [
810
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1' }],
@@ -18,6 +20,14 @@ const head: NonNullable<ReturnType<typeof defineConfig>['head']> = [
1820
['meta', { name: 'twitter:image', content: `${SITE_URL}/og.png` }],
1921
];
2022

23+
if (GOOGLE_SITE_VERIFICATION) {
24+
head.push(['meta', { name: 'google-site-verification', content: GOOGLE_SITE_VERIFICATION }]);
25+
}
26+
27+
if (BING_SITE_VERIFICATION) {
28+
head.push(['meta', { name: 'msvalidate.01', content: BING_SITE_VERIFICATION }]);
29+
}
30+
2131
if (process.env.NODE_ENV === 'production' && UMAMI_SRC && UMAMI_WEBSITE_ID) {
2232
head.push(['script', { async: '', src: UMAMI_SRC, 'data-website-id': UMAMI_WEBSITE_ID }]);
2333
}

website/docs/index.md

Lines changed: 79 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ hero:
1313
- theme: brand
1414
text: Get Started
1515
link: /guide/getting-started
16+
- theme: alt
17+
text: Star on GitHub
18+
link: https://github.com/EricLLLLLL/bvm
1619
- theme: alt
1720
text: 中文
1821
link: /zh/
1922
- theme: alt
2023
text: Troubleshooting
2124
link: /guide/troubleshooting
22-
- theme: alt
23-
text: View on GitHub
24-
link: https://github.com/EricLLLLLL/bvm
2525

2626
features:
2727
- title: 🚀 Zero Latency
@@ -49,6 +49,18 @@ const copy = (text, type) => {
4949
</script>
5050

5151
<div class="spotlight-section">
52+
<div class="star-card">
53+
<div class="star-eyebrow">Open source support</div>
54+
<h2>If BVM helps your Bun workflow, give it a GitHub Star.</h2>
55+
<p>
56+
A Star helps more developers discover BVM, trust the project faster, and try it in real multi-version Bun setups.
57+
</p>
58+
<div class="star-actions">
59+
<a class="star-primary" href="https://github.com/EricLLLLLL/bvm">Star BVM on GitHub</a>
60+
<a class="star-secondary" href="https://github.com/EricLLLLLL/bvm/stargazers">See stargazers</a>
61+
</div>
62+
</div>
63+
5264
<div class="spotlight-card">
5365
<div class="spotlight-eyebrow">From the NexSail ecosystem</div>
5466
<h2>Need premium lead generation, paid acquisition, SEO, or GEO growth?</h2>
@@ -153,49 +165,62 @@ const copy = (text, type) => {
153165
margin-top: 1.5rem;
154166
}
155167

168+
.star-card,
156169
.spotlight-card {
157170
padding: 1.4rem;
158171
border-radius: 18px;
172+
}
173+
174+
.star-card {
175+
margin-bottom: 1rem;
159176
background:
160-
radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
161-
linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
162-
border: 1px solid rgba(245, 158, 11, 0.28);
163-
box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
164-
color: #f8fafc;
177+
radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
178+
linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
179+
border: 1px solid rgba(59, 130, 246, 0.16);
180+
box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
181+
color: #0f172a;
165182
}
166183

167-
.spotlight-eyebrow {
184+
.star-eyebrow {
168185
font-size: 0.8rem;
169186
font-weight: 700;
170187
letter-spacing: 0.08em;
171188
text-transform: uppercase;
172-
color: #fbbf24;
189+
color: #2563eb;
173190
}
174191

192+
.star-card h2,
175193
.spotlight-card h2 {
176194
margin: 0.45rem 0 0.65rem;
177195
font-size: 1.7rem;
196+
}
197+
198+
.star-card h2 {
178199
line-height: 1.15;
179-
color: #fff;
200+
color: #0f172a;
180201
}
181202

182-
.spotlight-card p {
203+
.star-card p {
183204
margin: 0;
184205
max-width: 52rem;
185-
color: rgba(248, 250, 252, 0.9);
206+
color: #334155;
186207
}
187208

209+
.star-actions,
188210
.spotlight-actions {
189211
margin-top: 1rem;
190212
display: flex;
191213
flex-wrap: wrap;
192214
gap: 0.75rem;
193215
}
194216

217+
.star-actions a,
195218
.spotlight-actions a {
196219
text-decoration: none;
197220
}
198221

222+
.star-primary,
223+
.star-secondary,
199224
.spotlight-primary,
200225
.spotlight-secondary {
201226
display: inline-flex;
@@ -207,6 +232,44 @@ const copy = (text, type) => {
207232
font-weight: 700;
208233
}
209234

235+
.star-primary {
236+
background: #0f172a;
237+
color: #f8fafc;
238+
}
239+
240+
.star-secondary {
241+
border: 1px solid rgba(15, 23, 42, 0.14);
242+
color: #0f172a;
243+
}
244+
245+
.spotlight-card {
246+
background:
247+
radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
248+
linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
249+
border: 1px solid rgba(245, 158, 11, 0.28);
250+
box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
251+
color: #f8fafc;
252+
}
253+
254+
.spotlight-eyebrow {
255+
font-size: 0.8rem;
256+
font-weight: 700;
257+
letter-spacing: 0.08em;
258+
text-transform: uppercase;
259+
color: #fbbf24;
260+
}
261+
262+
.spotlight-card h2 {
263+
line-height: 1.15;
264+
color: #fff;
265+
}
266+
267+
.spotlight-card p {
268+
margin: 0;
269+
max-width: 52rem;
270+
color: rgba(248, 250, 252, 0.9);
271+
}
272+
210273
.spotlight-primary {
211274
background: #f59e0b;
212275
color: #111827;
@@ -226,10 +289,13 @@ const copy = (text, type) => {
226289
}
227290

228291
@media (max-width: 640px) {
292+
.star-card h2,
229293
.spotlight-card h2 {
230294
font-size: 1.4rem;
231295
}
232296

297+
.star-primary,
298+
.star-secondary,
233299
.spotlight-primary,
234300
.spotlight-secondary {
235301
width: 100%;

0 commit comments

Comments
 (0)