Skip to content

Commit 2e73b74

Browse files
committed
feat: remove dist from gitignore in website
1 parent 01e24be commit 2e73b74

17 files changed

+11381
-47
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules
22
types
3-
dist
43
dist.zip
54

65
.cache

packages/docs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

packages/docs/.vitepress/theme/style.scss

+42-42
Original file line numberDiff line numberDiff line change
@@ -8,62 +8,60 @@
88
* -------------------------------------------------------------------------- */
99

1010
:root {
11-
--codeplayer-vp-c-brand: #006aff;
12-
--codeplayer-vp-c-brand-light: #2e8cff;
13-
--codeplayer-vp-c-brand-lighter: #5dabff;
14-
--codeplayer-vp-c-brand-lightest: #8bc7ff;
15-
--codeplayer-vp-c-brand-dark: #0051d2;
16-
--codeplayer-vp-c-brand-darker: #003aa6;
17-
--codeplayer-vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
11+
--vp-c-brand: #006aff;
12+
--vp-c-brand-light: #2e8cff;
13+
--vp-c-brand-lighter: #5dabff;
14+
--vp-c-brand-lightest: #8bc7ff;
15+
--vp-c-brand-dark: #0051d2;
16+
--vp-c-brand-darker: #003aa6;
17+
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
1818
}
1919

2020
/**
2121
* Component: Button
2222
* -------------------------------------------------------------------------- */
2323

2424
:root {
25-
--codeplayer-vp-button-brand-border: var(--codeplayer-vp-c-brand-light);
26-
--codeplayer-vp-button-brand-text: var(--codeplayer-vp-c-white);
27-
--codeplayer-vp-button-brand-bg: var(--codeplayer-vp-c-brand);
28-
--codeplayer-vp-button-brand-hover-border: var(--codeplayer-vp-c-brand-light);
29-
--codeplayer-vp-button-brand-hover-text: var(--codeplayer-vp-c-white);
30-
--codeplayer-vp-button-brand-hover-bg: var(--codeplayer-vp-c-brand-light);
31-
--codeplayer-vp-button-brand-active-border: var(
32-
--codeplayer-vp-c-brand-light
33-
);
34-
--codeplayer-vp-button-brand-active-text: var(--codeplayer-vp-c-white);
35-
--codeplayer-vp-button-brand-active-bg: var(--codeplayer-vp-button-brand-bg);
25+
--vp-button-brand-border: var(--vp-c-brand);
26+
--vp-button-brand-text: var(--vp-c-white);
27+
--vp-button-brand-bg: var(--vp-c-brand);
28+
--vp-button-brand-hover-border: var(--vp-c-brand-light);
29+
--vp-button-brand-hover-text: var(--vp-c-white);
30+
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
31+
--vp-button-brand-active-border: var(--vp-c-brand-light);
32+
--vp-button-brand-active-text: var(--vp-c-white);
33+
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
3634
}
3735

3836
/**
3937
* Component: Home
4038
* -------------------------------------------------------------------------- */
4139

4240
:root {
43-
--codeplayer-vp-home-hero-name-color: transparent;
44-
--codeplayer-vp-home-hero-name-background: -webkit-linear-gradient(
41+
--vp-home-hero-name-color: transparent;
42+
--vp-home-hero-name-background: -webkit-linear-gradient(
4543
120deg,
46-
#006aff 30%,
47-
#41d1ff
44+
#006aff 20%,
45+
#8bc7ff
4846
);
4947

50-
--codeplayer-vp-home-hero-image-background-image: linear-gradient(
48+
--vp-home-hero-image-background-image: linear-gradient(
5149
-45deg,
52-
#bae0ff 80%,
53-
#41d1ff 80%
50+
rgba(250, 78, 62, 0.5) 50%,
51+
rgba(0, 106, 255, 0.5) 50%
5452
);
55-
--codeplayer-vp-home-hero-image-filter: blur(40px);
53+
--vp-home-hero-image-filter: blur(40px);
5654
}
5755

5856
@media (min-width: 640px) {
5957
:root {
60-
--codeplayer-vp-home-hero-image-filter: blur(56px);
58+
--vp-home-hero-image-filter: blur(56px);
6159
}
6260
}
6361

6462
@media (min-width: 960px) {
6563
:root {
66-
--codeplayer-vp-home-hero-image-filter: blur(72px);
64+
--vp-home-hero-image-filter: blur(72px);
6765
}
6866
}
6967

@@ -72,31 +70,33 @@
7270
* -------------------------------------------------------------------------- */
7371

7472
:root {
75-
--codeplayer-vp-custom-block-tip-border: var(--codeplayer-vp-c-brand);
76-
--codeplayer-vp-custom-block-tip-text: var(--codeplayer-vp-c-brand-darker);
77-
--codeplayer-vp-custom-block-tip-bg: var(--codeplayer-vp-c-brand-dimm);
73+
--vp-custom-block-tip-border: var(--vp-c-brand);
74+
--vp-custom-block-tip-text: var(--vp-c-brand-darker);
75+
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
7876
}
7977

8078
.dark {
81-
--codeplayer-vp-custom-block-tip-border: var(--codeplayer-vp-c-brand);
82-
--codeplayer-vp-custom-block-tip-text: var(--codeplayer-vp-c-brand-lightest);
83-
--codeplayer-vp-custom-block-tip-bg: var(--codeplayer-vp-c-brand-dimm);
79+
--vp-custom-block-tip-border: var(--vp-c-brand);
80+
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
81+
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
8482
}
8583

8684
/**
8785
* Component: Algolia
8886
* -------------------------------------------------------------------------- */
8987

9088
.DocSearch {
91-
--codeplayer-docsearch-primary-color: var(--codeplayer-vp-c-brand) !important;
89+
--docsearch-primary-color: var(--vp-c-brand) !important;
9290
}
9391

94-
.options-table {
95-
display: table;
96-
width: 100%;
97-
th,
98-
td {
99-
overflow: hidden;
100-
word-break: break-all;
92+
.VPDoc {
93+
& > .container {
94+
& > .content {
95+
padding-left: 0;
96+
padding-right: 0;
97+
.content-container {
98+
min-width: 100% !important;
99+
}
100+
}
101101
}
102102
}

packages/docs/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ hero:
2222
features:
2323
- icon: 🚀
2424
title: 极致的运行速度
25-
details: 可以在 3 秒内完成依赖安装、代码的编译及运行,速度远超 CodeSandbox/Stackblitz/CodePen 等同类型的产品
25+
details: 3 秒内完成依赖安装、代码编译及运行等全部过程,速度远超 CodeSandboxStackblitz 等同类型产品
2626
- icon: 📖
2727
title: 免登录直接使用
28-
details: 无需登录即可在线编写 demo 使用,文件及代码通过 Hash 和压缩后自动同步至 url,可以通过 url 一键分享或者保存
28+
details: 无需注册登录,直接在线编写 demo,demo 文件及代码将通过 Hash 和压缩后自动同步至 url 进行保存及分享
2929
- icon: 🎨
3030
title: 广泛的语法支持
31-
details: 支持 html、javascript、typescript、react、vue、css、less、sass 等多种 web 相关的语法的代码编写和运行
31+
details: 支持 html、javascript、typescript、react、vue、css、less、sass 等多种 web 相关的代码编写和运行
3232
---

packages/website/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pnpm-debug.log*
88
lerna-debug.log*
99

1010
node_modules
11-
dist
1211
dist-ssr
1312
*.local
1413

0 commit comments

Comments
 (0)