Skip to content

Commit 5cda79f

Browse files
committed
Merge branch 'main' into route-option
2 parents 675c02d + 5615fd3 commit 5cda79f

File tree

79 files changed

+1339
-864
lines changed

Some content is hidden

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

79 files changed

+1339
-864
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424

2525
- name: Install pnpm
26-
uses: pnpm/action-setup@v2
26+
uses: pnpm/action-setup@v4
2727

2828
- name: Use Node.js ${{ matrix.node }}
2929
uses: actions/setup-node@v4

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424

2525
- name: Install pnpm
26-
uses: pnpm/action-setup@v2
26+
uses: pnpm/action-setup@v4
2727

2828
- name: Setup Node.js
2929
uses: actions/setup-node@v4

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525

2626
- name: Install pnpm
27-
uses: pnpm/action-setup@v2
27+
uses: pnpm/action-setup@v4
2828

2929
- name: Use Node.js ${{ matrix.node }}
3030
uses: actions/setup-node@v4

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"frontmatter",
2929
"globby",
3030
"gtag",
31+
"lightningcss",
3132
"mdit",
3233
"nprogress",
3334
"prefetch",

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# [2.0.0-rc.11](https://github.com/vuepress/core/compare/v2.0.0-rc.10...v2.0.0-rc.11) (2024-05-16)
2+
3+
4+
### Features
5+
6+
* **client:** improve AutoLinkProps ([#1554](https://github.com/vuepress/core/issues/1554)) ([0777d09](https://github.com/vuepress/core/commit/0777d098e420ebc44ed9bb983009ee5d6367bb1d))
7+
* **client:** support slot props in AutoLink ([630e29a](https://github.com/vuepress/core/commit/630e29a0a64973cf41369b854c0663ea36b12608))
8+
9+
10+
111
# [2.0.0-rc.10](https://github.com/vuepress/core/compare/v2.0.0-rc.9...v2.0.0-rc.10) (2024-05-16)
212

313

e2e/docs/.vuepress/config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ export default defineUserConfig({
4141
['meta', { name: 'bar', content: 'foobar zh' }],
4242
],
4343
},
44+
'/中文/': {
45+
lang: '中文',
46+
title: 'VuePress E2E',
47+
description: 'VuePress E2E 测试站点',
48+
head: [
49+
['meta', { name: 'foo-中文', content: 'foo-中文' }],
50+
['meta', { name: 'bar', content: '中文' }],
51+
],
52+
},
4453
},
4554

4655
markdown: {

e2e/docs/.vuepress/theme/client/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineClientConfig } from 'vuepress/client'
22
import RootComponentFromTheme from './components/RootComponentFromTheme.vue'
3+
import CssModulesLayout from './layouts/CssModulesLayout.vue'
34
import CustomLayout from './layouts/CustomLayout.vue'
45
import Layout from './layouts/Layout.vue'
56
import NotFound from './layouts/NotFound.vue'
@@ -16,6 +17,7 @@ export default defineClientConfig({
1617
},
1718

1819
layouts: {
20+
CssModulesLayout,
1921
CustomLayout,
2022
Layout,
2123
NotFound,
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<script setup lang="ts">
2+
import styles from '../styles/styles.module.css'
3+
import variables from '../styles/variables.module.scss'
4+
</script>
5+
6+
<template>
7+
<div class="e2e-theme-css-modules-layout">
8+
<main class="e2e-theme-css-modules-layout-content">
9+
<div id="e2e-theme-css-modules-scss">{{ variables.fooScss }}</div>
10+
<div id="e2e-theme-css-modules-css" :class="styles.greenText">
11+
CSS modules green text
12+
</div>
13+
<Content />
14+
</main>
15+
</div>
16+
</template>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.greenText {
2+
color: rgb(0, 129, 0);
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:export {
2+
fooScss: 234px;
3+
}

0 commit comments

Comments
 (0)