diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 644c2f1..282c2d9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index 28a0f62..d46af72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ node_modules .temp .cache -.dist diff --git a/docs/.vuepress/.gitignore b/docs/.vuepress/.gitignore new file mode 100644 index 0000000..53c37a1 --- /dev/null +++ b/docs/.vuepress/.gitignore @@ -0,0 +1 @@ +dist \ No newline at end of file diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 874314b..fd06854 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -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, + base: "/doc/cordova-plugin-wechat", + // extra tags in `` + // 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', @@ -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", }, }, }), -}) \ No newline at end of file +});