diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c086764 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,48 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + name: Build & Deploy + runs-on: ubuntu-latest + environment: + name: deploy + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # If your repository depends on submodule, please see: https://github.com/actions/checkout + submodules: recursive + - name: Timezone + uses: szenius/set-timezone@v1.0 + with: + timezoneLinux: "Asia/Shanghai" + - name: Use Node.js 22.x + uses: actions/setup-node@v4 + with: + node-version: "22" + - name: Cache NPM dependencies + uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.OS }}-npm-cache + restore-keys: | + ${{ runner.OS }}-npm-cache + - name: Install Dependencies + run: yarn + - name: Build + run: yarn run docs:build + - name: Deploy to Server + uses: wlixcc/SFTP-Deploy-Action@v1.2.6 + with: + username: ${{ secrets.SERVER_USERNAME }} + server: ${{ secrets.SERVER_IP }} + port: ${{ secrets.SERVER_PORT }} + ssh_private_key: ${{ secrets.DEPLOY_PRIVATE_KEY }} + ssh_passphrase: ${{ secrets.DEPLOY_PASSPHRASE }} + local_path: './docs/.vuepress/dist/*' + remote_path: ${{ secrets.DEPLOY_PATH }} diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 257061c..3522c09 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -73,7 +73,10 @@ module.exports = { markdown: { toc: { includeLevel:[1, 2, 3, 4] - } + }, + plugins: [ + 'markdown-it-mathjax3' + ] }, theme: 'vdoing', diff --git a/docs/.vuepress/dist/404.html b/docs/.vuepress/dist/404.html deleted file mode 100644 index 5da1b64..0000000 --- a/docs/.vuepress/dist/404.html +++ /dev/null @@ -1,24 +0,0 @@ - - -
- - --1}},function(e,t,n){var r=n(234),a=n(235),o=n(236);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,a,n)}},function(e,t){e.exports=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o=0&&Math.floor(t)===t&&isFinite(e)}function v(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===p?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function E(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Kn(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var o in n){var i=n[o];if(i){var l=i.name;l&&!t(l)&&Yn(n,o,r,a)}}}function Yn(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,y(n,t)}zn.prototype._init=function(e){var t=this;t._uid=Nn++,t._isVue=!0,t.__v_skip=!0,t._scope=new Ie(!0),t._scope._vm=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var a=r.componentOptions;n.propsData=a.propsData,n._parentListeners=a.listeners,n._renderChildren=a.children,n._componentTag=a.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Sn(Zn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Wt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,a=n&&n.context;e.$slots=pt(t._renderChildren,a),e.$scopedSlots=n?ht(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,a){return _t(e,t,n,r,a,!1)},e.$createElement=function(t,n,r,a){return _t(e,t,n,r,a,!0)};var o=n&&n.data;Te(e,"$attrs",o&&o.attrs||r,null,!0),Te(e,"$listeners",t._parentListeners||r,null,!0)}(t),Jt(t,"beforeCreate",void 0,!1),function(e){var t=dn(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(n){Te(e,n,t[n])})),ke(!0))}(t),Ln(t),function(e){var t=e.$options.provide;if(t){var n=c(t)?t.call(e):t;if(!u(n))return;for(var r=Ve(e),a=ce?Reflect.ownKeys(n):Object.keys(n),o=0;o was loaded but did not call our provided callback"),JSONPScriptError:s("JSONPScriptError","
-
-
-
-
-
-
-