Skip to content

Commit 7175b4a

Browse files
committed
build: moved to jekyll-pug (from jekyll-bliss)
1 parent 2981825 commit 7175b4a

File tree

8 files changed

+41
-13
lines changed

8 files changed

+41
-13
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
python-version: ${{ matrix.python_version }}
3030

3131
- name: Setup Ruby
32-
uses: actions/setup-ruby@v1
32+
uses: ruby/setup-ruby@v1
3333
with:
3434
ruby-version: ${{ matrix.ruby_version }}
35+
bundler-cache: true
3536

3637
- name: Install poetry & create virtualenv
3738
shell: bash
@@ -41,8 +42,7 @@ jobs:
4142
4243
- name: Install dependencies
4344
run: |
44-
sudo npm install --global pug pug-cli jekyll-bliss
45-
gem update --system
45+
sudo npm install --global pug pug-cli
4646
make install-deps
4747
4848
- name: Get latest releases

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ source "https://rubygems.org/"
33
gem 'jekyll', '~>4.0'
44

55
group :jekyll_plugins do
6-
#gem 'jekyll-pug'
76
gem 'jekyll-last-modified-at'
7+
8+
gem "jekyll-redirect-from", "~> 0.16.0"
9+
10+
gem 'jekyll-pug'
11+
12+
gem 'jekyll-feed'
813
end
14+

Gemfile.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ GEM
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
eventmachine (1.2.7)
12+
execjs (2.8.1)
1213
ffi (1.13.1)
1314
forwardable-extended (2.6.0)
1415
http_parser.rb (0.6.0)
@@ -29,9 +30,16 @@ GEM
2930
rouge (~> 3.0)
3031
safe_yaml (~> 1.0)
3132
terminal-table (~> 1.8)
33+
jekyll-feed (0.16.0)
34+
jekyll (>= 3.7, < 5.0)
3235
jekyll-last-modified-at (1.3.0)
3336
jekyll (>= 3.7, < 5.0)
3437
posix-spawn (~> 0.3.9)
38+
jekyll-pug (1.5.6)
39+
jekyll (>= 3.6, < 5.0)
40+
pug-ruby (~> 2.0)
41+
jekyll-redirect-from (0.16.0)
42+
jekyll (>= 3.3, < 5.0)
3543
jekyll-sass-converter (2.1.0)
3644
sassc (> 2.0.1, < 3.0)
3745
jekyll-watch (2.2.1)
@@ -44,14 +52,22 @@ GEM
4452
listen (3.2.1)
4553
rb-fsevent (~> 0.10, >= 0.10.3)
4654
rb-inotify (~> 0.9, >= 0.9.10)
55+
memoist (0.16.2)
4756
mercenary (0.4.0)
57+
method-not-implemented (1.0.1)
4858
pathutil (0.16.2)
4959
forwardable-extended (~> 2.6)
5060
posix-spawn (0.3.15)
5161
public_suffix (4.0.6)
62+
pug-ruby (2.0.1)
63+
execjs (~> 2.0)
64+
memoist (~> 0.15)
65+
method-not-implemented (~> 1.0, >= 1.0.1)
66+
regexp-match-polyfill (~> 1.0, >= 1.0.2)
5267
rb-fsevent (0.10.4)
5368
rb-inotify (0.10.1)
5469
ffi (~> 1.0)
70+
regexp-match-polyfill (1.0.2)
5571
rexml (3.2.5)
5672
rouge (3.21.0)
5773
safe_yaml (1.0.5)
@@ -66,7 +82,10 @@ PLATFORMS
6682

6783
DEPENDENCIES
6884
jekyll (~> 4.0)
85+
jekyll-feed
6986
jekyll-last-modified-at
87+
jekyll-pug
88+
jekyll-redirect-from (~> 0.16.0)
7089

7190
BUNDLED WITH
7291
2.1.0

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
build: assets
44
# compass compile
5-
bundle exec bliss build
5+
bundle exec jekyll build
66

77
dev: assets
8-
bundle exec bliss serve
8+
bundle exec jekyll serve
99

1010
assets: _includes/tables img/stats img/*.png
1111

1212
update-downloads:
1313
python3 scripts/update-downloads.py
1414

1515
install-deps:
16-
-sudo npm install -g jekyll-bliss
17-
bundle config set path 'vendor/bundle'
16+
# This shouldn't be set in CI, but it's maybe (?) useful for local development
17+
#bundle config set path 'vendor/bundle'
1818
bundle install
1919

2020
precommit:

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ sass:
2020

2121
plugins:
2222
- jekyll-last-modified-at
23+
- jekyll-redirect-from
24+
- jekyll-pug
25+
- jekyll-feed
2326

2427
jekyll-bliss:
2528
build-folder: _build

_includes/head.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ head
2121
link(href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', rel='stylesheet', integrity='sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN', crossorigin='anonymous')
2222

2323
// Google Analytics
24-
| {% include analytics.html %}
24+
| {% include analytics.pug %}
2525
//script
2626
|(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2727
|(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

_layouts/default.pug

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
doctype html
22
html
3-
| {% include head.html %}
3+
| {% include head.pug %}
44
body
5-
| {% include header.html %}
5+
| {% include header.pug %}
66
div.page-content
77
div
88
| {{ content }}
9-
| {% include footer.html %}
9+
| {% include footer.pug %}

index.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ article.wrapper.mt-4
1313

1414
.mb-5.mt-2
1515
.mb-2
16-
| {% include download-button.html %}
16+
| {% include download-button.pug %}
1717
a.mr-2.mb-2.btn.btn-primary(href='https://docs.activitywatch.net/en/latest/getting-started.html', target="_blank", style="vertical-align: top")
1818
i.fa.fa-question-circle.mr-2
1919
| Getting started guide

0 commit comments

Comments
 (0)