Hyde publisher plugin for publishing content to Github Pages (User Pages).
https://github.com/vaidik/vaidik.github.io/tree/dev/publishers
- Make sure that the hyde project lives in your 
devbranch.masterbranch, in case of user github pages, is left for serving static files. - Create an orphan 
masterbranch. 
cd <hyde project directory>
git checkout dev
mkdir publishers
cd publishers
# create three files
# this one will be empty
touch __init__.py
touch ghpages.py
# copy contents of ghpages.py to the file you just created
touch ghpages.sh
# copy contents of ghpages.sh to the file you just created
- Add the following configuration to your site.yaml file:
 
publisher:
    ghpages:
        type: publishers.ghpages.GhPages
- To publish your content:
 
# switch to dev branch
# edit your content
# commit your changes to branch dev
# generate the static files
hyde gen
# now publish
hyde publish -p ghpages