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:
		| @@ -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(); | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -50,7 +50,7 @@ const primedBabel = babel({ | ||||
| }); | ||||
|  | ||||
| const progress = () => { | ||||
|   if (process.env.TRAVIS) { | ||||
|   if (process.env.TRAVIS || process.env.NETLIFY) { | ||||
|     return {}; | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user