Skip to content

Commit

Permalink
chore: update autobar & some config
Browse files Browse the repository at this point in the history
  • Loading branch information
z979054461 committed Mar 17, 2024
1 parent 89747fa commit 5094f05
Show file tree
Hide file tree
Showing 7 changed files with 10,926 additions and 34,726 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@ name: Node.js CI

on:
push:
branches: [ "master" ]
branches: ['master']
pull_request:
branches: [ "master" ]
branches: ['master']

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [14.x] #[14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: sh ./deploy.sh
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: sh ./deploy.sh
2 changes: 1 addition & 1 deletion .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
trailingComma: 'all'
tabWidth: 4
tabWidth: 2
semi: false
singleQuote: true
printWidth: 120
Expand Down
17 changes: 10 additions & 7 deletions docs/.vuepress/config/themeConfig/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const sidebar = require('./sidebar.js')
const getConfig = require('vuepress-bar')
const locales = require('./locales.js')

const { nav, sidebar } = getConfig(`${process.cwd()}/docs`, { pinyinNav: true }) // Use default location of `.vuepress`: `${__dirname}/..`

module.exports = {
type: 'HomePageOne',
logo: '/logo.png',
Expand All @@ -9,7 +11,8 @@ module.exports = {
searchMaxSuggestions: 10,
locales,
// 自动形成侧边导航
// sidebar: 'auto',//这里的sidebar会被插件覆盖,需要每个md文件中开启
sidebar,
nav,
// 最后更新时间
lastUpdated: 'Last Updated', // string | boolean
// 作者
Expand All @@ -21,7 +24,7 @@ module.exports = {
startYear: '2020',
algolia: {
apiKey: '97357e58cac743c6de62036cb152f18b',
indexName: 'vuepress-theme-reco'
indexName: 'vuepress-theme-reco',
// inputSelector: '### REPLACE ME ####',
// algoliaOptions: { 'facetFilters': ["lang:$LANG"] },
// debug: false // Set debug to true if you want to inspect the dropdown
Expand All @@ -32,9 +35,9 @@ module.exports = {
appKey: 'dXOH7cT8Wmm045cqzcC4PfkY',
placeholder: '填写邮箱可以收到回复提醒哦!',
verify: true, // 验证码服务
notify: true, //
notify: true, //
recordIP: true,
showComment: true
showComment: true,
},
// displayAllHeaders: true, // 默认值:false 相当于全部展开
// 假定是 GitHub. 同时也可以是一个完整的 GitLab URL
Expand All @@ -46,5 +49,5 @@ module.exports = {
// // 默认是 false, 设置为 true 来启用
editLinks: true,
mode: 'light',
codeTheme: 'tomorrow'
}
codeTheme: 'tomorrow',
}
4 changes: 4 additions & 0 deletions docs/.vuepress/config/themeConfig/sidebar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @deprecated 已弃用,使用插件自动生成
*/

module.exports = {
'zh': Object.assign({}, {
'/02.js/': [
Expand Down
Loading

0 comments on commit 5094f05

Please sign in to comment.