Skip to content

Commit

Permalink
Update Jekyll configuration and workflows for improved deployment and…
Browse files Browse the repository at this point in the history
… theme settings
  • Loading branch information
daniel-butler-irl committed Nov 2, 2024
1 parent 2706923 commit 3bbdb83
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 23 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
# .github/workflows/jekyll-gh-pages.yml
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
Expand All @@ -33,12 +25,11 @@ jobs:
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
source: ./docs
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
Expand All @@ -48,4 +39,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
24 changes: 24 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
source "https://rubygems.org"

gem "github-pages", group: :jekyll_plugins
gem "jekyll-feed", "~> 0.12"
gem "minima"

group :jekyll_plugins do
gem "jekyll-feed"
gem "jekyll-seo-tag"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
43 changes: 31 additions & 12 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ description: Automation Engineer at IBM Cloud | Making Cloud Development Easier
url: "https://dbdev.ie"
baseurl: ""

# Build settings
markdown: kramdown
remote_theme: pages-themes/[email protected]
# Theme settings
theme: minima
plugins:
- jekyll-remote-theme
- jekyll-feed
- jekyll-seo-tag

# Author information
Expand All @@ -17,16 +16,36 @@ author:
github: daniel-butler-irl
linkedin: daniel-butler-1a525832

# Navigation
navigation:
- title: About
url: /
- title: Projects
url: /projects
- title: Blog
url: /blog
# Build settings
markdown: kramdown
kramdown:
input: GFM
hard_wrap: false

# Collections
collections:
projects:
output: true
permalink: /projects/:path/

# Defaults
defaults:
- scope:
path: ""
type: "posts"
values:
layout: "post"
- scope:
path: ""
values:
layout: "default"

# Exclude from processing
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/

0 comments on commit 3bbdb83

Please sign in to comment.