-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: generate a test example on netlify on PRs #4912
Conversation
IT WORKED! https://deploy-preview-4912--videojs-docs.netlify.com/test-example/ |
@@ -449,7 +448,6 @@ module.exports = function(grunt) { | |||
'cssmin', | |||
|
|||
'copy:fonts', | |||
'copy:swf', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
our switch to node 8/npm 5 meant that packages were flattened, so, the swf snuck back into the dist folder.
@@ -16,4 +17,9 @@ if (process.env.BRANCH === 'master' && semver.valid(output.trim()) === null) { | |||
|
|||
// copy the legacy docs over | |||
sh.cp('-R', 'docs/legacy-docs', 'docs/api/docs'); | |||
|
|||
if (process.env.BRANCH !== 'master') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no need or want to generate this in the master branch currently, I don't think.
|
||
// copy the `dist` dir | ||
sh.cp('-R', 'dist', path.join(dest, 'dist')); | ||
sh.rm(path.join(dest, 'dist', `video-js-${pkg.version}.zip`)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need the zip file published here.
sandbox/icons.html.example
Outdated
@@ -4,7 +4,7 @@ | |||
<meta charset="utf-8" /> | |||
<title>Video.js Icons Sandbox</title> | |||
|
|||
<link href="../build/temp/video-js.css" rel="stylesheet" type="text/css"> | |||
<link href="../build/video-js.css" rel="stylesheet" type="text/css"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this one intentionally using build
instead of dist
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope. Probably got confused about it, heh.
Sometimes, we get a small PR that has code that's good but testing it means that we have to check out the code locally. This should generate a
test-example
folder on the docs site for the PR with a built version of Video.js from the PR.Hopefully, this PR will be the the very first example of it too.