1
0
mirror of https://github.com/videojs/video.js.git synced 2025-10-31 00:08:01 +02:00

chore(netlify): make docs build properly (#5636)

Refactor of the clean task added docs/api, which didn't happen
previously. Re-order when things are generated to work around it.

Also, don't show rollup progress on netlify either.
This commit is contained in:
Gary Katsevman
2018-11-30 17:53:08 -05:00
committed by GitHub
parent d72786fc0c
commit a8828cd76d
2 changed files with 6 additions and 5 deletions

View File

@@ -12,14 +12,15 @@ if (process.env.BRANCH === 'master' && semver.valid(output.trim()) === null) {
// if we're on any other branch, we can regenerate docs
} else {
if (process.env.BRANCH !== 'master') {
// generate the example
generateExample();
}
// generate the docs
sh.exec('npm run docs:api');
// copy the legacy docs over
sh.cp('-R', 'docs/legacy-docs', 'docs/api/docs');
if (process.env.BRANCH !== 'master') {
// generate the example
generateExample();
}
}

View File

@@ -50,7 +50,7 @@ const primedBabel = babel({
});
const progress = () => {
if (process.env.TRAVIS) {
if (process.env.TRAVIS || process.env.NETLIFY) {
return {};
}