jekyll-publishing-helper

jekyll-publishing-helper

Helper scripts to simplify the publishing process to GitHub Pages and S3 for Jekyll projects

Jekyll Publishing Helper Scripts

Purpose

These scripts are intended to help automate and simplify your Jekyll content publishing workflow, including the initial project setup. At the moment, the supported publishing endpoints are:

  • GitHub Pages
  • AWS S3

Jekyll Setup Approaches

Your Jekyll Setup and publishing workflow will largely depend on where you're planning to publish your content.

Source files in Master Branch

If all you're planning to do is publish your site to GitHub pages, this is by far the simplest approach. You don't need any scripts. Just commit your Jekyll project to the master branch of your GitHub repo and enable GitHub Pages:

  • In GitHub, go to the repo settings -> GitHub Pages -> Source -> select "master branch"

Source files in Master branch, generated content in /docs folder

This is almost the same thing as above, but you generate your static content into the /docs folder using the --destination option. Here you'll find a useful script to help you quickly publish your updates to GitHub Pages and/or AWS S3.

Source files in Master branch, generated content in gh-pages branch

This was mostly an experimental set of scripts that I put together before I realized that GitHub automatically generates the Pages from you Jekyll project. It's an overthought approach, but it does work and I've keep these scripts for reference.

If you're interested in going down this route, you can check it out here.

Jekyll starting projects with customized themes

If you want a couple of good base Jekyll projects with customized themes to get you started, these are my go-to ones:

To get started with these, do the following:

  • git clone [PROJECT_NAME]
  • jekyll build
  • jekyll serve