Skip to content

Commit baf8083

Browse files
authored
Merge pull request #687 from vuejs/next-theme
feat: 1.0.0-alpha merge
2 parents 7cffbbb + 6e53be6 commit baf8083

File tree

246 files changed

+9845
-5731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+9845
-5731
lines changed

.github/contributing.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,24 @@ $ pnpm install
3434

3535
### Setup VitePress Dev Environment
3636

37-
You may start VitePress local dev environment by running `pnpm run dev`.
37+
At first, execute the `pnpm run build` command.
3838

3939
```bash
40-
$ pnpm run dev
40+
$ pnpm run build
4141
```
4242

43-
The easiest way to start testing out VitePress is to tweak the VitePress docs. You may run `pnpm run docs` folder to boot up VitePress documentation site locally, with live reloading of the source code.
43+
You only need to do this once for your fresh project. It copies required files and makes sure everything is in place. After this, you only need to run `dev` related commands.
44+
45+
The easiest way to start testing out VitePress is to tweak the VitePress docs. You may run `pnpm run docs` to boot up VitePress documentation site locally, with live reloading of the source code.
4446

4547
```bash
4648
$ pnpm run docs
4749
```
4850

4951
After executing the above command, visit http://localhost:3000 and try modifying the source code. You'll get live update.
52+
53+
If you don't need docs site up and running, you may start VitePress local dev environment with `pnpm run dev`.
54+
55+
```bash
56+
$ pnpm run dev
57+
```

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
uses: actions/checkout@v3
1414

1515
- name: Install pnpm
16-
uses: pnpm/action-setup@v2
16+
uses: pnpm/[email protected]
17+
with:
18+
version: 7.0.1
1719

1820
- name: Set node version to ${{ matrix.node_version }}
1921
uses: actions/setup-node@v3
@@ -24,8 +26,11 @@ jobs:
2426
- name: Install deps
2527
run: pnpm install
2628

27-
- name: Build
28-
run: pnpm run build
29+
- name: Lint
30+
run: pnpm run lint-fail
2931

3032
- name: Test
31-
run: pnpm run test
33+
run: pnpm run test-run
34+
35+
- name: Build
36+
run: pnpm run build

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/src/node/shared.ts
44
*.log
55
.DS_Store
6+
.idea
67
.vite_opt_cache
8+
.vscode
79
dist
810
node_modules
9-
TODOs.md
10-
.vscode
11-
.idea
1211
pnpm-global
12+
TODOs.md

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell-emulator=true

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/docs
2+
/examples
3+
*.css
4+
*.md
5+
*.vue
6+
dist
7+
pnpm-lock.yaml

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# (WIP) VitePress 📝💨
1+
# VitePress (alpha) 📝💨
22

33
[![Test](https://github.com/vuejs/vitepress/workflows/Test/badge.svg)](https://github.com/vuejs/vitepress/actions)
44
[![npm](https://img.shields.io/npm/v/vitepress)](https://www.npmjs.com/package/vitepress)
@@ -7,6 +7,8 @@
77

88
VitePress is [VuePress](https://vuepress.vuejs.org)' spiritual successor, built on top of [vite](https://github.com/vitejs/vite).
99

10+
Currently, it's in the `alpha` stage. It is already suitable for out-of-the-box documentation use, but the config and theming API may still change between minor releases.
11+
1012
## Documentation
1113

1214
To check out docs, visit [vitepress.vuejs.org](https://vitepress.vuejs.org).

__tests__/client/theme-default/support/sideBar.spec.ts

Lines changed: 0 additions & 134 deletions
This file was deleted.

__tests__/client/theme-default/utils.spec.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

__tests__/node/utils/deeplyParseHeader.spec.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1+
import { test, expect } from 'vitest'
12
import { deeplyParseHeader } from 'node/utils/parseHeader'
23

34
test('deeplyParseHeader', () => {
45
const asserts: Record<string, string> = {
5-
// Remove tail html
6+
// remove tail html
67
'# `H1` <Comp></Comp>': '# H1',
78
'# *H1* <Comp/>': '# H1',
89

9-
// Reserve code-wrapped tail html
10+
// reserve code-wrapped tail html
1011
'# `H1` `<Comp></Comp>`': '# H1 <Comp></Comp>',
1112
'# *H1* `<Comp/>`': '# H1 <Comp/>',
1213

13-
// Remove leading html
14+
// remove leading html
1415
'# <Comp></Comp> `H1`': '# H1',
1516
'# <Comp/> *H1*': '# H1',
1617

17-
// Reserve code-wrapped leading html
18+
// reserve code-wrapped leading html
1819
'# `<Comp></Comp>` `H1`': '# <Comp></Comp> H1',
1920
'# `<Comp/>` *H1*': '# <Comp/> H1',
2021

21-
// Remove middle html
22+
// remove middle html
2223
'# `H1` <Comp></Comp> `H2`': '# H1 H2',
2324
'# `H1` <Comp/> `H2`': '# H1 H2',
2425

25-
// Reserve middle html
26+
// reserve middle html
2627
'# `H1` `<Comp></Comp>` `H2`': '# H1 <Comp></Comp> H2',
2728
'# `H1` `<Comp/>` `H2`': '# H1 <Comp/> H2'
2829
}

__tests__/node/utils/parseHeader.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, test, expect } from 'vitest'
12
import { parseHeader } from 'node/utils/parseHeader'
23

34
describe('parseHeader', () => {

0 commit comments

Comments
 (0)