This is the source of Zequez.com, powered by Github pages and Middleman.
That's correct, this is the master branch, Github processes this repository with
Jekyll and hosts it as a static website. This is the build directory created by Middleman, you
can see the source on the source branch.
I copied the .git folder into the build folder, then I switched the root
of the project to the source branch, and the build folder to the master branch.
Then when I want to commit a change in the source I commit from the root of the project
and when I want to commit a change in the build, I commit from the build folder.
So basically do the following:
git clone https://github.com/Zequez/zequez.github.io
cd zequez.github.io
mkdir build
cp -R .git build
checkout source
cd build
checkout masterTo mount the project for development or previewing something you're writing, use:
./server.shIf you want to preview the static server of the build directory to see that everything is alright (it should be):
./static_server.shAnd after you're done and want to commit your changes to Github:
./publish.shEdit: Thank you, me from the past for writing these instructions and scripts.