Skip to content
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

Merged

Conversation

mischah
Copy link
Member

@mischah mischah commented Nov 9, 2016

Simplified the prevention of multiple commits of docs in gh-pages branch as discussed in #975

@@ -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
Copy link
Member Author

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.

@SBoudrias
Copy link
Member

I think validating if there's changes or not can still be a valid check.

@mischah
Copy link
Member Author

mischah commented Nov 9, 2016

Yeah was unsure about that. Gonna bring it back.

@mischah
Copy link
Member Author

mischah commented Nov 9, 2016

»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/**/** ./
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

That was how it looked.
Ist now flat again by default.

@SBoudrias
Copy link
Member

Cool! Let's merge this 😄

@SBoudrias SBoudrias merged commit 102dd97 into yeoman:master Nov 9, 2016
@mischah
Copy link
Member Author

mischah commented Nov 9, 2016

🙆‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants