-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Only build and deploy docs on a specific node version #976
Only build and deploy docs on a specific node version #976
Conversation
@@ -16,5 +16,5 @@ env: | |||
- DOCS_DIR: "../yeoman-generator-doc" | |||
- GH_OWNER: yeoman | |||
- GH_PROJECT_NAME: generator | |||
- PACKAGE_NAME: yeoman-generator | |||
- DEPLOY_ON_NODE_VERSION: v6 |
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.
You can define the Node version on which the docs should be generated and deployed in the .travis.yml
.
I think validating if there's changes or not can still be a valid check. |
Yeah was unsure about that. Gonna bring it back. |
»Change detection« is back. |
@@ -40,20 +46,16 @@ echo -e "Generated docs\n" | |||
# Change directory to $DOCS_DIR | |||
cd $DOCS_DIR | |||
|
|||
# Flatten content of $DOCS_DIR | |||
mv $PACKAGE_NAME/**/** ./ |
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 not necessary anymore?
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. It was needed to cleanup the directory mess caused by JSDoc when passing a package.json.
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.
Cool! Let's merge this 😄 |
🙆♂️ |
Simplified the prevention of multiple commits of docs in
gh-pages
branch as discussed in #975