|
|
@@ -1,30 +1,21 @@ |
|
|
|
# Updating Demo Page (GH-Pages branch) |
|
|
|
# Updating Demo Page |
|
|
|
(https://smcllns.github.io/css-social-buttons/) |
|
|
|
|
|
|
|
1. Rebase master to gh-pages |
|
|
|
1. Update zocial files or demo page (`index.html`) in `master` |
|
|
|
|
|
|
|
|
|
|
|
2. Copy latest zocial css and demo page to `gh-pages` |
|
|
|
|
|
|
|
```bash |
|
|
|
git checkout gh-pages // go to the gh-pages branch |
|
|
|
git rebase master // bring gh-pages up to date with master |
|
|
|
git checkout master css // copy css folder from master to gh-pages |
|
|
|
git checkout master index.html // copy index.html from master to gh-pages |
|
|
|
``` |
|
|
|
|
|
|
|
2. Delete nearly all files, leaving only those remaining to serve gh-pages: |
|
|
|
|
|
|
|
|
|
|
|
- /css |
|
|
|
- .gitignore |
|
|
|
- demo.html |
|
|
|
- README.md |
|
|
|
|
|
|
|
|
|
|
|
3. Rename demo.html to index.html |
|
|
|
|
|
|
|
4. Commit changes and push |
|
|
|
3. Commit changes and push |
|
|
|
|
|
|
|
```bash |
|
|
|
git add . |
|
|
|
git commit -m 'Some descriptive commit message' |
|
|
|
git push origin gh-pages |
|
|
|
``` |
|
|
|
|
|
|
|
--- |
|
|
|
I'm sure there's a better way to do this, but these steps work in the meantime |