Skip to content

Commit 1eb25e1

Browse files
authored
Merge pull request #121 from Klaaktu/master
PoC: Minima 3, auto dark mode, wide width text
2 parents 5c8b9fe + e92f4be commit 1eb25e1

File tree

12 files changed

+143
-36
lines changed

12 files changed

+143
-36
lines changed

.github/workflows/jekyll.yml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
8+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: ["master"]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
37+
# Use GitHub Actions' cache to cache dependencies on servers
38+
- uses: actions/cache@v4
39+
with:
40+
path: |
41+
.asdf/**
42+
vendor/bundle
43+
key: ${{ runner.os }}-cache-${{ hashFiles('**/cache.key') }}
44+
restore-keys: |
45+
${{ runner.os }}-cache-
46+
47+
- name: Set up Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: '3.12'
51+
52+
- name: Generate Glossary
53+
run: python scripts/generate_glossary.py
54+
55+
- name: Setup Ruby
56+
uses: ruby/[email protected]
57+
with:
58+
ruby-version: '3.3' # Not needed with a .ruby-version file
59+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
60+
cache-version: 0 # Increment this number if you need to re-download cached gems
61+
- name: Setup Pages
62+
id: pages
63+
uses: actions/configure-pages@v5
64+
- name: Build with Jekyll
65+
# Outputs to the './_site' directory by default
66+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
67+
env:
68+
JEKYLL_ENV: production
69+
- name: Upload artifact
70+
# Automatically uploads an artifact from the './_site' directory by default
71+
uses: actions/upload-pages-artifact@v3
72+
73+
# Deployment job
74+
deploy:
75+
environment:
76+
name: github-pages
77+
url: ${{ steps.deployment.outputs.page_url }}
78+
runs-on: ubuntu-latest
79+
needs: build
80+
steps:
81+
- name: Deploy to GitHub Pages
82+
id: deployment
83+
uses: actions/deploy-pages@v4

404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: base
33
---
44

55
<style type="text/css" media="screen">

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source "https://rubygems.org"
44
# Run Jekyll: bundle exec jekyll serve
55

66
gem "minima"
7-
gem "jekyll", "~> 4.2.0"
7+
gem "jekyll"#, "~> 4.2.0"
88
gem "jekyll-feed", "~> 0.12"
99
gem "jekyll-sitemap", "~> 1.4"
1010
gem "jekyll-sass-converter", "~> 2.1"
@@ -18,3 +18,4 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
1818
# Performance-booster for watching directories on Windows
1919
gem "wdm", "~> 0.1.0" if Gem.win_platform?
2020

21+
gem "jekyll-remote-theme"

Gemfile.lock

+32-23
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,43 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.6)
5-
public_suffix (>= 2.0.2, < 6.0)
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.2.2)
7+
concurrent-ruby (1.3.4)
88
em-websocket (0.5.3)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0)
1111
eventmachine (1.2.7)
12-
ffi (1.17.0)
12+
ffi (1.17.0-x64-mingw-ucrt)
13+
ffi (1.17.0-x86_64-linux-gnu)
1314
forwardable-extended (2.6.0)
1415
http_parser.rb (0.8.0)
1516
i18n (1.14.5)
1617
concurrent-ruby (~> 1.0)
17-
jekyll (4.2.2)
18+
jekyll (4.3.3)
1819
addressable (~> 2.4)
1920
colorator (~> 1.0)
2021
em-websocket (~> 0.5)
2122
i18n (~> 1.0)
22-
jekyll-sass-converter (~> 2.0)
23+
jekyll-sass-converter (>= 2.0, < 4.0)
2324
jekyll-watch (~> 2.0)
24-
kramdown (~> 2.3)
25+
kramdown (~> 2.3, >= 2.3.1)
2526
kramdown-parser-gfm (~> 1.0)
2627
liquid (~> 4.0)
27-
mercenary (~> 0.4.0)
28+
mercenary (>= 0.3.6, < 0.5)
2829
pathutil (~> 0.9)
29-
rouge (~> 3.0)
30+
rouge (>= 3.0, < 5.0)
3031
safe_yaml (~> 1.0)
31-
terminal-table (~> 2.0)
32+
terminal-table (>= 1.8, < 4.0)
33+
webrick (~> 1.7)
3234
jekyll-feed (0.17.0)
3335
jekyll (>= 3.7, < 5.0)
36+
jekyll-remote-theme (0.4.3)
37+
addressable (~> 2.0)
38+
jekyll (>= 3.5, < 5.0)
39+
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
40+
rubyzip (>= 1.3.0, < 3.0)
3441
jekyll-sass-converter (2.2.0)
3542
sassc (> 2.0.1, < 3.0)
3643
jekyll-seo-tag (2.8.0)
@@ -48,44 +55,46 @@ GEM
4855
rb-fsevent (~> 0.10, >= 0.10.3)
4956
rb-inotify (~> 0.9, >= 0.9.10)
5057
mercenary (0.4.0)
51-
mini_portile2 (2.8.7)
5258
minima (2.5.1)
5359
jekyll (>= 3.5, < 5.0)
5460
jekyll-feed (~> 0.9)
5561
jekyll-seo-tag (~> 2.1)
56-
nokogiri (1.16.5)
57-
mini_portile2 (~> 2.8.2)
62+
nokogiri (1.16.7-x64-mingw-ucrt)
63+
racc (~> 1.4)
64+
nokogiri (1.16.7-x86_64-linux)
5865
racc (~> 1.4)
5966
pathutil (0.16.2)
6067
forwardable-extended (~> 2.6)
61-
public_suffix (5.0.5)
62-
racc (1.8.0)
68+
public_suffix (6.0.1)
69+
racc (1.8.1)
6370
rb-fsevent (0.11.2)
6471
rb-inotify (0.11.1)
6572
ffi (~> 1.0)
66-
rexml (3.3.3)
73+
rexml (3.3.5)
6774
strscan
68-
rouge (3.30.0)
75+
rouge (4.3.0)
76+
rubyzip (2.3.2)
6977
safe_yaml (1.0.5)
7078
sassc (2.4.0)
7179
ffi (~> 1.9)
7280
strscan (3.1.0)
73-
terminal-table (2.0.0)
74-
unicode-display_width (~> 1.1, >= 1.1.1)
81+
terminal-table (3.0.2)
82+
unicode-display_width (>= 1.1.1, < 3)
7583
tzinfo (2.0.6)
7684
concurrent-ruby (~> 1.0)
77-
tzinfo-data (1.2023.3)
85+
tzinfo-data (1.2024.1)
7886
tzinfo (>= 1.0.0)
79-
unicode-display_width (1.8.0)
87+
unicode-display_width (2.5.0)
8088
webrick (1.8.1)
8189

8290
PLATFORMS
8391
x64-mingw-ucrt
8492
x86_64-linux
8593

8694
DEPENDENCIES
87-
jekyll (~> 4.2.0)
95+
jekyll
8896
jekyll-feed (~> 0.12)
97+
jekyll-remote-theme
8998
jekyll-sass-converter (~> 2.1)
9099
jekyll-sitemap (~> 1.4)
91100
minima
@@ -94,4 +103,4 @@ DEPENDENCIES
94103
webrick
95104

96105
BUNDLED WITH
97-
2.4.15
106+
2.5.17

_config.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,28 @@ title: Tim’s code stuff
1717
1818
description: >- # this means to ignore newlines until "baseurl:"
1919
Examples and tutorials for various programming paradigms.
20-
twitter_username: immersivecola
21-
github_username: tgdwyer
20+
#twitter_username: immersivecola
21+
#github_username: tgdwyer
2222
# Google Analytics
2323
google_analytics: UA-159840333-1
2424

2525
# Build settings
2626
markdown: kramdown
27-
theme: minima
27+
#theme: minima
28+
remote_theme: jekyll/minima
2829

2930
plugins:
3031
- jekyll-feed
3132
- jekyll-sitemap
33+
- jekyll-remote-theme
34+
35+
minima:
36+
skin: auto
37+
social_links:
38+
- platform: github
39+
user_url: "https://github.com/tgdwyer"
40+
- platform: x
41+
user_url: "https://x.com/immersivecola"
3242

3343
plugins_dir: _plugins
3444

_includes/head.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
{%- seo -%}
66
<link rel="shortcut icon" href="{{ "/assets/images/favicon.ico" | relative_url }}" />
7-
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
8-
<link rel="stylesheet" href="{{ "/assets/css/styles.css" | relative_url }}">
7+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
98
{%- feed_meta -%}
109
{%- if jekyll.environment == 'production' and site.google_analytics -%}
1110
{%- include google-analytics.html -%}
1211
{%- endif -%}
1312

1413
{%- include custom-head.html -%}
1514

16-
</head>
15+
</head>
File renamed without changes.

_layouts/chapter.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: default
2+
layout: base
33
---
44
<article class="post">
55
{% include pagination.html %}
@@ -11,4 +11,4 @@ <h1 class="post-title">{{ page.title | escape }}</h1>
1111
{{ content }}
1212
</div>
1313
{% include pagination.html %}
14-
</article>
14+
</article>
File renamed without changes.

_sass/minima/custom-variables.scss

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$content-width: 80%;

assets/css/style.scss

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# Only the main Sass file needs front matter (the dashes are enough)
3+
---
4+
5+
@import
6+
"minima/skins/{{ site.minima.skin | default: 'classic' }}",
7+
"minima/initialize";

assets/css/styles.scss

-3
This file was deleted.

0 commit comments

Comments
 (0)