mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-08 23:41:06 +08:00
Compare commits
4 Commits
95bee73624
...
0b6de0aa77
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b6de0aa77 | ||
|
|
be22f4c1f8 | ||
|
|
e5cc7fadeb | ||
|
|
d5f8963d02 |
2
.github/workflows/deploy-v3-site.yml
vendored
2
.github/workflows/deploy-v3-site.yml
vendored
@ -6,6 +6,8 @@ on:
|
||||
paths:
|
||||
- 'packages/vant/docs/**'
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -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',
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user