Powered by Jekyll & Minimal Mistakes (and some other nice tools :).
In order to reproduce this workflow it is necessary to have this software correctly installed:
This project has two git branches:
source
branch contains the Jekyll project.master
branch publishes the website (gh-pages).This approach is very convenient for using Jekyll plugins and deploy the website only when necessary.
However, the target branch for GH-pages is reseted every time and it is necessary select it by hand.
Use Makefile as usual but, when you execute make
, it shows info about the most common tasks of my workflow:
make 1-new-draft
: Helps to create a new draft (and opens it in gedit).make 2-start-server
: Starts the jekyll server using dockers (and opens it in a web browser).make 3-stop-server
: Stops the docker and removes everything.make 4-push-source
: Pushes all edits to the source branch.make 5-deploy-website
: Pushes the updated .Watch out! It is very IMPORTANT to git commit and git push your edits to the source branch before deploying your website (or you can do make 4-push-source
)
For deploying your website to GitHub you can do it by hand or using the deploy-website.sh script as follows:
bash deploy-website.sh
This script is going to:
jekyll build
your site