Skip to content

Commit ecaa902

Browse files
committed
Merge remote-tracking branch 'template/main'
2 parents 67cafb7 + d9febd9 commit ecaa902

5 files changed

Lines changed: 288 additions & 26752 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
key: ${{ env.key }}
4141

4242
- name: Cache extensions
43-
uses: actions/cache@v2
43+
uses: actions/cache@v4
4444
with:
4545
path: ${{ steps.extcache.outputs.dir }}
4646
key: ${{ steps.extcache.outputs.key }}
@@ -68,7 +68,7 @@ jobs:
6868
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
6969

7070
- name: Cache dependencies
71-
uses: actions/cache@v2
71+
uses: actions/cache@v4
7272
with:
7373
path: ${{ steps.composer-cache.outputs.dir }}
7474
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -87,7 +87,7 @@ jobs:
8787
id: yarn-cache-dir-path
8888
run: echo "::set-output name=dir::$(yarn cache dir)"
8989

90-
- uses: actions/cache@v2
90+
- uses: actions/cache@v4
9191
id: yarn-cache
9292
with:
9393
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

.github/workflows/update-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch:
44
jobs:
55
update-template:
6-
runs-on: ubuntu-latest
6+
runs-on: ubuntu-22.04
77
permissions:
88
contents: write
99
pull-requests: write
@@ -13,6 +13,6 @@ jobs:
1313
- name: actions-template-sync
1414
uses: AndreasAugustin/actions-template-sync@v2
1515
with:
16-
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
source_gh_token: ${{ secrets.GITHUB_TOKEN }}
1717
source_repo_path: chevere/docs-deploy
1818
upstream_branch: main

.vuepress/config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,15 @@ if (project.themeConfig.nav_after) {
3636
if (!project.themeConfig.sidebar) {
3737
project.themeConfig.sidebar = [];
3838
}
39+
project.chainWebpack = (config) => {
40+
config.module
41+
.rule('webp')
42+
.test(/\.webp$/)
43+
.use('file-loader')
44+
.loader('file-loader')
45+
.options({
46+
name: 'assets/img/[name].[hash:8].[ext]'
47+
});
48+
}
3949
project.themeConfig.sidebar = require('./sidebar/en');
4050
module.exports = project

0 commit comments

Comments
 (0)