Skip to content

Remove generated files from repo, Add deploy plugin #51

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

leoj3n
Copy link
Contributor

@leoj3n leoj3n commented Mar 13, 2017

Use like:

grunt

grunt buildcontrol:pages

Despite having not having updated the docs (yet), this is functional and ready to go.

I think the only necessary change will be in Gruntfile.js:

The value of buildcontrol.pages.options.remote should be changed from git@github.com:leoj3n/documentcss.git to git@github.com:bitovi/documentcss.git so that when a maintainer with push access to https://github.com/bitovi/documentcss runs grunt buildcontrol:pages, the gh-pages branch is updated with the generated files.

Contributors will still be able to see their changes locally with grunt just as before.

@leoj3n
Copy link
Contributor Author

leoj3n commented Mar 13, 2017

To see the results of these changes check out:

https://github.com/leoj3n/documentcss/tree/deploy-to-gh-pages

Here is what is generated by the deploy command:

https://github.com/leoj3n/documentcss/tree/gh-pages

(site is live at https://leoj3n.github.io/documentcss/)

So, you can try these changes out on your own fork, just update

buildcontrol.pages.options.remote (in Gruntfile.js)

to point to git@github.com:YOURNAME/documentcss.git before running:

grunt && grunt buildcontrol:pages

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.

1 participant