Skip to content

Commit

Permalink
fix(docs): invalid hexo-adsense path
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaslanjaka committed Oct 31, 2024
1 parent 4105da9 commit fdf86e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,11 @@ function updateVersion() {
gulp.task('update', updateVersion);

async function copyDemo() {
await cp.async('npx', ['hexo', 'generate'], { cwd: path.join(__dirname, 'test/demo'), stdio: 'inherit' });
const dest = path.join(__dirname, '.deploy_git/docs/hexo-adsense');
const cwd = path.join(__dirname, 'test/demo');
await cp.async('npx', ['hexo', 'generate'], { cwd, stdio: 'inherit' });
const dest = path.join(__dirname, '.deploy_git/hexo-adsense');
if (fs.existsSync(dest)) await fs.rm(dest, { force: true, recursive: true });
const stream = gulp
.src('./test/demo/public/**/*', { cwd: __dirname })
.pipe(gulp.dest('./.deploy_git/docs/hexo-adsense'));
const stream = gulp.src('public/**/*', { cwd }).pipe(gulp.dest('./.deploy_git/hexo-adsense'));
await promiseStream(stream);
}

Expand Down

0 comments on commit fdf86e9

Please sign in to comment.