Updating the Site
How to update the CanJS website.
Update canjs.com
canjs.com is hosted on GitHub pages from the canjs/canjs#gh-pages branch. To generate and push a new version of the website, verify you have push access to that branch. Then get all latest changes via:
git checkout master
git fetch --all && git rebase
npm cache clean
rm -rf node_modules
We also have to delete the local gh-pages
branch:
git branch -D gh-pages
Then run
make
This will generate and publish a new version of the website.
Update next.canjs.com
next.canjs.com is hosted on GitHub pages from the canjs/next#gh-pages branch. The canjs/canjs major branch is set up to push to the canjs/next repo.
To generate and push a new version of the website, verify you have push access to that branch. Then get all latest changes via:
git checkout major
git fetch --all && git rebase
We also have to delete the local gh-pages
branch:
git branch -D gh-pages
Then run
make
This will generate and publish a new version of the website.