Compare commits

...

4 Commits

Author SHA1 Message Date
chenjiahan
0b6de0aa77 release: 3.5.0-beta.0 2022-05-29 10:39:44 +08:00
neverland
be22f4c1f8
docs: code split docsearch (#10648) 2022-05-29 10:19:13 +08:00
neverland
e5cc7fadeb
chore: support manually trigger deploy v3 site (#10647) 2022-05-29 10:07:51 +08:00
neverland
d5f8963d02
docs: remove search from v3 site (#10646) 2022-05-29 10:00:32 +08:00
4 changed files with 9 additions and 35 deletions

View File

@ -6,6 +6,8 @@ on:
paths:
- 'packages/vant/docs/**'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest

View File

@ -3,9 +3,6 @@
</template>
<script>
import '@docsearch/css';
import docsearch from '@docsearch/js';
export default {
name: 'VanDocSearch',
@ -27,9 +24,12 @@ export default {
methods: {
initDocsearch() {
if (this.searchConfig) {
docsearch({
...this.searchConfig,
container: '#docsearch',
import('@docsearch/css');
import('@docsearch/js').then((docsearch) => {
docsearch.default({
...this.searchConfig,
container: '#docsearch',
});
});
}
},

View File

@ -1,6 +1,6 @@
{
"name": "vant",
"version": "3.4.9",
"version": "3.5.0-beta.0",
"description": "Mobile UI Components built on Vue",
"main": "lib/vant.cjs.js",
"module": "es/index.mjs",

View File

@ -46,26 +46,6 @@ export default {
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
appId: 'BLI2GGOUL8',
apiKey: '07cb725cd26aa496996de6cb8ab9b5cc',
indexName: 'vant',
searchParameters: {
facetFilters: ['lang:zh-CN', 'version:v3'],
},
transformItems(items) {
if (location.hostname !== 'youzan.github.io') {
items.forEach((item) => {
if (item.url) {
item.url =
item.url &&
item.url.replace('youzan.github.io', location.hostname);
}
});
}
return items;
},
},
nav: [
{
title: '开发指南',
@ -490,14 +470,6 @@ export default {
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
appId: 'BLI2GGOUL8',
apiKey: '07cb725cd26aa496996de6cb8ab9b5cc',
indexName: 'vant',
searchParameters: {
facetFilters: ['lang:en-US', 'version:v3'],
},
},
nav: [
{
title: 'Essentials',