Skip to content

Commit

Permalink
修改base
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonz1987 committed Jan 10, 2024
1 parent 545f69f commit 51f3101
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: npm run docs:build
# 部署到阿里云
- name: Deploy to Aliyun
uses: easingthemes/ssh-deploy@v2.1.1
uses: easingthemes/ssh-deploy@main
env:
# 私钥
SSH_PRIVATE_KEY: ${{ secrets.BSF_SERVER_SECRET }}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
.temp
.cache
.dist
1 change: 1 addition & 0 deletions docs/.vuepress/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
74 changes: 37 additions & 37 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import { defineUserConfig } from 'vuepress'
import { defaultTheme } from 'vuepress'
import { searchPlugin } from '@vuepress/plugin-search'
import { defineUserConfig } from "vuepress";
import { defaultTheme } from "vuepress";
import { searchPlugin } from "@vuepress/plugin-search";

import {
head,
navbarEn,
navbarZh,
sidebarEn,
sidebarZh,
} from './configs/index.js'
head,
navbarEn,
navbarZh,
sidebarEn,
sidebarZh,
} from "./configs/index.js";

export default defineUserConfig({
base: '/',
// extra tags in `<head>`
// head,
base: "/doc/cordova-plugin-wechat",
// extra tags in `<head>`
// head,
locales: {
// 键名是该语言所属的子路径
// 作为特例,默认语言可以使用 '/' 作为其路径。
'/': {
lang: 'zh-CN',
title: 'Cordova Plugin Wechat',
description: '微信openSDK cordova插件',
"/": {
lang: "zh-CN",
title: "Cordova Plugin Wechat",
description: "微信openSDK cordova插件",
},
// '/en/': {
// lang: 'en-US',
Expand All @@ -37,38 +37,38 @@ export default defineUserConfig({

theme: defaultTheme({
locales: {
'/': {
"/": {
// navbar
navbar: navbarZh,
selectLanguageName: '简体中文',
selectLanguageText: '选择语言',
selectLanguageAriaLabel: '选择语言',
selectLanguageName: "简体中文",
selectLanguageText: "选择语言",
selectLanguageAriaLabel: "选择语言",
// sidebar
sidebar: sidebarZh,
// page meta
editLinkText: '在 GitHub 上编辑此页',
lastUpdatedText: '上次更新',
contributorsText: '贡献者',
editLinkText: "在 GitHub 上编辑此页",
lastUpdatedText: "上次更新",
contributorsText: "贡献者",
// custom containers
tip: '提示',
warning: '注意',
danger: '警告',
tip: "提示",
warning: "注意",
danger: "警告",
// 404 page
notFound: [
'这里什么都没有',
'我们怎么到这来了?',
'这是一个 404 页面',
'看起来我们进入了错误的链接',
"这里什么都没有",
"我们怎么到这来了?",
"这是一个 404 页面",
"看起来我们进入了错误的链接",
],
backToHome: '返回首页',
backToHome: "返回首页",
// a11y
openInNewWindow: '在新窗口打开',
toggleColorMode: '切换颜色模式',
toggleSidebar: '切换侧边栏',
openInNewWindow: "在新窗口打开",
toggleColorMode: "切换颜色模式",
toggleSidebar: "切换侧边栏",
},
'/en': {
selectLanguageName: 'English',
"/en": {
selectLanguageName: "English",
},
},
}),
})
});

0 comments on commit 51f3101

Please sign in to comment.