Skip to content

Commit 572f240

Browse files
committed
feat: updated Jekyll to v4, added new screenshot, moved screenshots to img folder, updated README, ran optipng on some files
1 parent facf2f7 commit 572f240

12 files changed

+77
-40
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
ruby: ['2.6']
17+
ruby: ['2.7']
1818
python: ['3.7']
1919
steps:
2020
- name: Checkout 🛎️

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org/"
22

3-
gem 'jekyll', '~>3.1'
3+
gem 'jekyll', '~>4.0'
44

55
group :jekyll_plugins do
66
#gem 'jekyll-pug'

Gemfile.lock

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,68 @@ GEM
44
addressable (2.7.0)
55
public_suffix (>= 2.0.2, < 5.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.1.5)
7+
concurrent-ruby (1.1.6)
88
em-websocket (0.5.1)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
eventmachine (1.2.7)
12-
ffi (1.11.3)
12+
ffi (1.13.1)
1313
forwardable-extended (2.6.0)
1414
http_parser.rb (0.6.0)
15-
i18n (0.9.5)
15+
i18n (1.8.5)
1616
concurrent-ruby (~> 1.0)
17-
jekyll (3.8.6)
17+
jekyll (4.1.1)
1818
addressable (~> 2.4)
1919
colorator (~> 1.0)
2020
em-websocket (~> 0.5)
21-
i18n (~> 0.7)
22-
jekyll-sass-converter (~> 1.0)
21+
i18n (~> 1.0)
22+
jekyll-sass-converter (~> 2.0)
2323
jekyll-watch (~> 2.0)
24-
kramdown (~> 1.14)
24+
kramdown (~> 2.1)
25+
kramdown-parser-gfm (~> 1.0)
2526
liquid (~> 4.0)
26-
mercenary (~> 0.3.3)
27+
mercenary (~> 0.4.0)
2728
pathutil (~> 0.9)
28-
rouge (>= 1.7, < 4)
29+
rouge (~> 3.0)
2930
safe_yaml (~> 1.0)
30-
jekyll-last-modified-at (1.2.1)
31+
terminal-table (~> 1.8)
32+
jekyll-last-modified-at (1.3.0)
3133
jekyll (>= 3.7, < 5.0)
3234
posix-spawn (~> 0.3.9)
33-
jekyll-sass-converter (1.5.2)
34-
sass (~> 3.4)
35+
jekyll-sass-converter (2.1.0)
36+
sassc (> 2.0.1, < 3.0)
3537
jekyll-watch (2.2.1)
3638
listen (~> 3.0)
37-
kramdown (1.17.0)
39+
kramdown (2.3.0)
40+
rexml
41+
kramdown-parser-gfm (1.1.0)
42+
kramdown (~> 2.0)
3843
liquid (4.0.3)
3944
listen (3.2.1)
4045
rb-fsevent (~> 0.10, >= 0.10.3)
4146
rb-inotify (~> 0.9, >= 0.9.10)
42-
mercenary (0.3.6)
47+
mercenary (0.4.0)
4348
pathutil (0.16.2)
4449
forwardable-extended (~> 2.6)
45-
posix-spawn (0.3.13)
46-
public_suffix (4.0.1)
47-
rb-fsevent (0.10.3)
48-
rb-inotify (0.10.0)
50+
posix-spawn (0.3.15)
51+
public_suffix (4.0.5)
52+
rb-fsevent (0.10.4)
53+
rb-inotify (0.10.1)
4954
ffi (~> 1.0)
50-
rouge (3.14.0)
55+
rexml (3.2.4)
56+
rouge (3.21.0)
5157
safe_yaml (1.0.5)
52-
sass (3.7.4)
53-
sass-listen (~> 4.0.0)
54-
sass-listen (4.0.0)
55-
rb-fsevent (~> 0.9, >= 0.9.4)
56-
rb-inotify (~> 0.9, >= 0.9.7)
58+
sassc (2.4.0)
59+
ffi (~> 1.9)
60+
terminal-table (1.8.0)
61+
unicode-display_width (~> 1.1, >= 1.1.1)
62+
unicode-display_width (1.7.0)
5763

5864
PLATFORMS
5965
ruby
6066

6167
DEPENDENCIES
62-
jekyll (~> 3.1)
68+
jekyll (~> 4.0)
6369
jekyll-last-modified-at
6470

6571
BUNDLED WITH

Makefile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build: assets
77
dev: assets
88
bundle exec bliss serve
99

10-
assets: _includes/tables img/stats
10+
assets: _includes/tables img/stats img/*.png
1111

1212
push-github:
1313
./scripts/push-build.sh
@@ -20,8 +20,18 @@ install-deps:
2020
bundle config set path 'vendor/bundle'
2121
bundle install
2222

23+
precommit:
24+
25+
# Used to optimize png filesizes (which need to be <128K due to https://github.com/DougBeney/Jekyll-Bliss/issues/4)
26+
# If files are still >128K, then you might want reduce the number of colors and remove metadata to reduce size:
27+
# convert $INPUT $OUTPUT -colors 256 -strip -define png:exclude-chunk=all
28+
# optipng $INPUT $OUTPUT
29+
img/%.png:
30+
optipng -o5 $@
31+
2332
clean:
2433
-rm -r _site
34+
-rm -r _build
2535
-rm -r _includes/tables
2636
-make --directory=contributor-stats clean
2737

@@ -36,14 +46,12 @@ stats:
3646
contributor-stats:
3747
git clone --recurse-submodules https://github.com/ActivityWatch/contributor-stats.git || true
3848

39-
_includes/tables: contributor-stats/tables
49+
_includes/tables: contributor-stats
50+
make --directory=contributor-stats build-aw
4051
cp -r contributor-stats/tables _includes/
4152

4253
img/stats: stats
4354
pip show poetry || pip install poetry
4455
cd stats && poetry install
4556
mkdir -p img/stats
4657
cd stats && mkdir -p out && poetry run python analyze_stats.py --since 2017-07-01 --column downloads --save ../img/stats/downloads.png
47-
48-
contributor-stats/tables: contributor-stats
49-
make --directory=contributor-stats build-aw

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,25 @@ activitywatch.github.io
55

66
Official ActivityWatch site
77

8+
## Building
9+
10+
Run `make install-deps` to install dependencies (like jekyll-bliss and jekyll).
11+
12+
Run `make dev` to build assets and start development server.
13+
14+
## Editing
15+
16+
We use [jekyll-bliss](https://jekyll-pug.dougie.io/) to build the site. It uses Jekyll under the hood.
17+
18+
Pages are written either as `.html` or `.pug` files.
19+
20+
For example:
21+
22+
```
23+
dest | source
24+
----------------------------------
25+
/ | index.pug
26+
/ci/ | ci.pug
27+
/stats/ | stats.pug
28+
/contributors/ | contributors.html
29+
```

img/banner.png

-18.3 KB
Loading

img/logo.png

-16.9 KB
Loading
File renamed without changes.

img/screenshot-v0.9.3-activity.png

115 KB
Loading
File renamed without changes.

index.pug

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ article.wrapper.mt-4
3030

3131
div.container
3232
div.row
33-
.col-md-9
33+
.col-md-8
3434
h2 Features
3535
ul
3636
li #[b Tracking:] Tracks active application and window title out of the box, more with #[a(href="https://docs.activitywatch.net/en/latest/watchers.html") watchers].
@@ -54,21 +54,22 @@ div.container
5454
li Gain "self-knowledge through numbers" (#[a(href="https://en.wikipedia.org/wiki/Quantified_self") Quantified Self])
5555
li Keep a log of your digital life (#[a(href="https://en.wikipedia.org/wiki/Lifelog") lifelogging]).
5656
li Research attention, productivity, and behavior (researchers: contact us!)
57-
li Track who creates the things you use, so that you can give them incentive to continue (The mission of the #[a(href='#thankful') Thankful] project).
57+
li Track who creates the things you use, so you can incentivize them to continue
58+
ul
59+
li The goal of the #[a(href='#thankful') Thankful] app
5860

5961
p
6062
| Our users are diverse and we keep being surprised by what people use ActivityWatch for.
6163
| If you've built something cool that you've want to share with us, post about it on #[a(href="https://forum.activitywatch.net") the forum]!
6264

63-
.col-md-3
65+
.col-md-4
6466
h4 Screenshots
65-
div.mb-2 #[b Note:] These screenshots are old and missing many new features (like categorization), they will be updated soon.
66-
a(href='/screenshot-v0.8.0b9-today.png')
67+
a(href='/img/screenshot-v0.9.3-activity.png')
6768
figure(style='width: 100%; border: 1px #999 solid; border-radius: 2px')
68-
img(style='width: 100%' src='/screenshot-v0.8.0b9-today.png')
69-
a(href='/screenshot-v0.8.0b9-timeline.png')
69+
img(style='width: 100%' src='/img/screenshot-v0.9.3-activity.png')
70+
a(href='/img/screenshot-v0.8.0b9-timeline.png')
7071
figure(style='width: 100%; border: 1px #999 solid; border-radius: 2px')
71-
img(style='width: 100%' src='/screenshot-v0.8.0b9-timeline.png')
72+
img(style='width: 100%' src='/img/screenshot-v0.8.0b9-timeline.png')
7273

7374
div.row.mt-4
7475
.col-md-6

0 commit comments

Comments
 (0)