Powered by Jekyll & Feeling Responsive.
In order to reproduce this workflow it is necessary to have this software correctly installed:
- git
- docker and docker-compose
- My benizar/jekyll image from Docker Hub.
This project has two git branches:
- The
sourcebranch contains the Jekyll project. - The
masterbranch publishes the website (gh-pages).
This approach is very convenient for using Jekyll plugins and deploy the website only when necessary.
Use docker-compose.yml as:
docker-compose upruns Jekyll with drafts and defaults.- Edit your website contents (pages, posts, etc) and see your edits in the browser.
- Remember to
docker-compose downwhen finished. git commitandgit pushyour edits. Watch out! It is very IMPORTANT to git commit and git push your edits to the source branch before deploying your website
Watch out! It is very IMPORTANT to git commit and git push your edits to the source branch before deploying your website
For deploying your website to GitHub you can do it by hand or using the deploy.sh script as follows:
bash deploy.shThis script is going to:
- Make sure you're on the SOURCE branch
jekyll buildyour site- Copy the _site to a temporary folder
- Delete the remote and local MASTER branch
- Create a new MASTER branch
- Copy the temporary folder contents to this branch (MASTER)
- Push your site to GitHub (MASTER)
- Switch bach to the SOURCE branch