From 6894aeec8bd8c586808a35b80415c2604473fe56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=B0=E4=B8=8A=E9=A9=AC?= Date: Tue, 22 Feb 2022 02:54:01 +0000 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=BB=85=E6=9E=84=E5=BB=BAv3?= =?UTF-8?q?=20v4=20=E6=94=AF=E6=8C=81=E4=BB=85=E6=9E=84=E5=BB=BAv3=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 66d919907..8aa4e0e15 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,3 +72,24 @@ gulp.task('build_docs', gulp.series('build_v4_docs', 'copy_docs_index', 'move_do ]) .pipe(gulp.dest('docs')) })) + +gulp.task( + 'copy_docs_index_a2', + gulp.parallel('copy_v3_docs', () => { + return gulp + .src('v4/dist/v4/index.html') + .pipe( + rename({ + basename: '404', + }), + ) + .pipe(gulp.dest('v4/dist/v4')); + }), +); + +gulp.task( + 'build_docs_a2', + gulp.series('build_v4_docs', 'copy_docs_index_a2', 'move_docs_latest', () => { + return gulp.src(['v4/dist/**']).pipe(gulp.dest('docs')); + }), +); \ No newline at end of file -- Gitee