Skip to content

Commit c898421

Browse files
authored
chore: Configure Jekyll for the website (#7)
2 parents 7eb342b + 2cef6eb commit c898421

File tree

13 files changed

+519
-27
lines changed

13 files changed

+519
-27
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for bundler
4+
- package-ecosystem: bundler
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
9+
# Enable version updates for GitHub Actions
10+
- package-ecosystem: github-actions
11+
directory: /
12+
schedule:
13+
interval: weekly

.github/workflows/build-site.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build The Website
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
build:
11+
name: Build Website
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
- name: Setup Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
bundler-cache: true
20+
cache-version: 0
21+
- name: Setup GitHub Pages
22+
uses: actions/configure-pages@v5
23+
- name: Build Website with Jekyll
24+
uses: actions/jekyll-build-pages@v1
25+
- name: Upload Website to GitHub Artifacts
26+
uses: actions/upload-pages-artifact@v3

.github/workflows/deploy.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Webite to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
14+
15+
jobs:
16+
build:
17+
name: Build Website
18+
uses: ./.github/workflows/build-site.yml
19+
20+
deploy:
21+
name: Website Deployment
22+
needs: build
23+
runs-on: ubuntu-latest
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
steps:
28+
- name: Deploy to GitHub Pages
29+
id: deployment
30+
uses: actions/deploy-pages@v4

.github/workflows/static.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Website Validations
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
build:
11+
name: Website Build Validation
12+
uses: ./.github/workflows/build-site.yml

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
_site/
2+
.sass-cache/
3+
.jekyll-cache/
4+
.jekyll-metadata
5+
# Ignore folders generated by Bundler
6+
.bundle/
7+
vendor/

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1.7

404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Oops! Page not found :(
3+
layout: default
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

Gemfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
source "https://rubygems.org"
2+
3+
# Hello! This is where you manage which Jekyll version is used to run.
4+
# When you want to use a different version, change it below, save the
5+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6+
#
7+
# bundle exec jekyll serve
8+
#
9+
# This will help ensure the proper Jekyll version is running.
10+
# Happy Jekylling!
11+
# gem "jekyll", "~> 3.10.0"
12+
13+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15+
gem "github-pages", group: :jekyll_plugins
16+
17+
# If you have any plugins, put them here!
18+
group :jekyll_plugins do
19+
gem 'jekyll-redirect-from', "~> 0.16.0"
20+
#gem "jekyll-feed", "~> 0.6"
21+
end
22+
23+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
24+
# and associated library.
25+
platforms :mingw, :x64_mingw, :mswin, :jruby do
26+
gem "tzinfo", ">= 1", "< 3"
27+
gem "tzinfo-data"
28+
end
29+
30+
# Performance-booster for watching directories on Windows
31+
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?
32+
33+
# kramdown v2 ships without the gfm parser by default. If you're using
34+
# kramdown v1, comment out this line.
35+
gem "kramdown-parser-gfm"
36+
37+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
38+
# do not have a Java counterpart.
39+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

0 commit comments

Comments
 (0)