mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-28 05:59:03 +00:00
+2
-2
@@ -54,14 +54,14 @@ gulp.task('build-dev', (cb) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('hugo', (cb) => {
|
gulp.task('hugo', (cb) => {
|
||||||
return spawn('hugo', ['--buildFuture', '--baseURL=/docs'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
return spawn('hugo', ['--buildFuture', '--baseURL=https://rancher.com/docs'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
||||||
browserSync.reload();
|
browserSync.reload();
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('hugo-staging', (cb) => {
|
gulp.task('hugo-staging', (cb) => {
|
||||||
return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL=/docs'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL=https://staging.rancher.com/docs'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
||||||
browserSync.reload();
|
browserSync.reload();
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user