Skip to content

Commit 10f46cb

Browse files
author
jsdnhk
committed
created toolset + fonts pages, richened bg video player
1 parent 3474032 commit 10f46cb

5,777 files changed

Lines changed: 594 additions & 51 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
assets/images/**/*.jpg filter=lfs diff=lfs merge=lfs -text
2+
assets/images/**/*.png filter=lfs diff=lfs merge=lfs -text
3+
assets/images/**/*.gif filter=lfs diff=lfs merge=lfs -text
4+
assets/videos/ filter=lfs diff=lfs merge=lfs -text

.github/workflows/audit.yaml

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,39 @@ on:
55
branches:
66
- master
77
jobs:
8-
lighthouse:
8+
lighthouse-stdout:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: "Audit URLs using Lighthouse"
13-
uses: treosh/lighthouse-ci-action@v2
14-
with:
15-
urls: |
16-
https://jsdn.hk
17-
https://jsdn.hk/resume
18-
https://jsdn.hk/blog
19-
https://jsdn.hk/quotes
20-
https://jsdn.hk/links
21-
- name: "Save audited results as artifact"
22-
uses: actions/upload-artifact@v1
23-
with:
24-
name: jsdn.hk.audit_result
25-
path: '.lighthouseci' # store as .json files
11+
- name: "mainpage performance"
12+
uses: jakejarvis/lighthouse-action@master
13+
with:
14+
url: 'https://jsdn.hk'
15+
- name: "resume performance"
16+
uses: jakejarvis/lighthouse-action@master
17+
with:
18+
url: 'https://jsdn.hk/resume'
19+
- name: "blog performance"
20+
uses: jakejarvis/lighthouse-action@master
21+
with:
22+
url: 'https://jsdn.hk/blog'
23+
- name: "quotes performance"
24+
uses: jakejarvis/lighthouse-action@master
25+
with:
26+
url: 'https://jsdn.hk/quotes'
27+
- name: "links performance"
28+
uses: jakejarvis/lighthouse-action@master
29+
with:
30+
url: 'https://jsdn.hk/links'
31+
- name: "toolset performance"
32+
uses: jakejarvis/lighthouse-action@master
33+
with:
34+
url: 'https://jsdn.hk/toolset'
35+
- name: "fonts performance"
36+
uses: jakejarvis/lighthouse-action@master
37+
with:
38+
url: 'https://jsdn.hk/fonts'
39+
- name: "Upload results as an artifact"
40+
uses: actions/upload-artifact@master
41+
with:
42+
name: lighthouse-report
43+
path: './report'

.github/workflows/audit.yaml.old

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: "Auditing"
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
lighthouse:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: "Audit URLs using Lighthouse"
13+
uses: treosh/lighthouse-ci-action@v2
14+
with:
15+
urls: |
16+
https://jsdn.hk
17+
https://jsdn.hk/resume
18+
https://jsdn.hk/blog
19+
https://jsdn.hk/quotes
20+
https://jsdn.hk/links
21+
- name: "Save audited results as artifact"
22+
uses: actions/upload-artifact@v1
23+
with:
24+
name: jsdn.hk.audit_result
25+
path: '.lighthouseci' # store as .json files

.github/workflows/deploy.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# Customized Jekyll deployment workflow (in test phase)
2+
# Custom Jekyll Builds on GitHub Pages (test phase)
33
name: "Deployment"
44
on:
55
push:
@@ -19,4 +19,14 @@ jobs:
1919
run: |
2020
current_time=$(TZ=Asia/Hong_Kong date)
2121
echo "Local Datetime: ${current_time}"
22-
echo "Checked out the code."
22+
echo "Checked out the code."
23+
# build-and-deploy:
24+
# runs-on: ubuntu-latest
25+
# needs: pre-deploy
26+
# steps:
27+
# - name: Build & Deploy to GitHub Pages
28+
# env:
29+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
# GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
31+
# GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
32+
# uses: BryanSchuetz/jekyll-deploy-gh-pages@master

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: "Changelog"
1414
- Integrated the portfolio page into the site
1515
- Updated documents and materials
1616

17-
### v19.06 (2020/01/11)
17+
### v20.01 (2020/01/11)
1818

1919
- Changed the portfolio display style
2020
- Changed domain to jsdn.hk

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
source 'https://rubygems.org'
22

33
# use current GitHub page dependencies
4-
gem 'github-pages', group: :jekyll_plugins
4+
5+
group :jekyll_plugins do
6+
gem 'github-pages'
7+
end
58

69
group :development, :test do
710
gem 'html-proofer'
811
gem 'rake'
912
gem 'parallel'
1013
gem 'rubocop'
1114
gem 'typhoeus'
15+
end
16+
17+
group :production do
1218
end

Rakefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ task :syncheck do
113113
system 'bundle exec rubocop -D -S'
114114
end
115115

116-
desc "Test the webpage in local"
117-
task :test do
116+
desc "Test the HTML pages elements in local"
117+
task :webtest do
118118
system 'bundle exec jekyll build'
119119
HTMLProofer.check_directory(DIRS['site'], check_html: true).run
120120
end
@@ -125,18 +125,18 @@ task :preview do
125125
end
126126

127127
desc "Reload the site info"
128-
task :reload do
128+
task :update do
129129
system "./get-pages-latest-date.rb", chdir: DIRS['scripts']
130130
end
131131

132132
desc "Push the current code to the master branch"
133-
task :cmpush => :reload do
133+
task :cmpush => :update do
134134
abort("rake aborted!") unless ask("Sure to commit all the change to remote?", %w(y n)) == 'y'
135135
system "./git-commit-push.sh", chdir: DIRS['scripts']
136136
end
137137

138138
desc "Push the current code to the master branch"
139-
task :verpush => :reload do
139+
task :verpush => :update do
140140
abort("rake aborted!") unless ask("Sure to push the new version to remote?", %w(y n)) == 'y'
141141
system "./git-version-push.sh", chdir: DIRS['scripts']
142142
end

_config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ disqus_shortname: jsdnhk
2626

2727
# build settings
2828
collections_dir: collections
29-
exclude: ["etc", "scripts", "vendor", "Gemfile*", "package.json*", "Rakefile", "node_modules", ".idea"]
29+
exclude: ["etc", "scripts", "vendor", "Gemfile*", "package.json*", "Rakefile", "node_modules", ".idea", ".github"]
3030
profile: true
3131
strict_front_matter: true
3232

@@ -39,6 +39,7 @@ kramdown:
3939
plugins:
4040
- jekyll-feed
4141
- jekyll-redirect-from
42+
- jekyll-relative-links
4243
- jekyll-seo-tag
4344
- jekyll-sitemap
4445
- jekyll-avatar

_data/fonts/family.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
- name: "Google Noto Fonts"
3+
url: "https://www.google.com/get/noto/"
4+
desc: "Harmonious look and feel, supported for all languages"
5+
6+
- name: "Google Roboto Fonts"
7+
url: "https://fonts.google.com/specimen/Roboto"
8+
desc: "Modern, yet approachable and emotional, used as the system font for Android"
9+
10+
- name: "Microsoft Segoe Fonts"
11+
url: "https://en.wikipedia.org/wiki/Segoe"
12+
desc: "Friendly and legible set, widely used in Microsoft products and materials"
13+
14+
- name: "PT Fonts"
15+
url: "https://en.wikipedia.org/wiki/PT_Fonts"
16+
desc: "Russian government used, displayed well at small font sizes by taller letters"

_data/fonts/monospace.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
- name: "Courier"
3+
url: "https://en.wikipedia.org/wiki/Courier_(typeface)"
4+
desc: "Initially created for IBM typewriters with device-flavored, suitable in dimmer background"
5+
6+
- name: "Courier New"
7+
url: "https://en.wikipedia.org/wiki/Courier_(typeface)#Courier_New"
8+
desc: "Thinner-look version from Courier for more legible on screens, suitable in lighter background"
9+
10+
- name: "D2Coding"
11+
url: "https://github.com/naver/d2codingfont"
12+
desc: "Published by NAVER(South Korea) for developers, provided high readability in Asian characters as well"
13+
14+
- name: "Input Mono"
15+
url: "https://djr.com/input/"
16+
desc: "Human-friendly font with easily-distinguishable characters, large punctuation, and rich letter-spacing"
17+
18+
- name: "JetBrains Mono"
19+
url: "https://jetbrains.com/mono/"
20+
desc: "Special attention to every detail for programming use, which resulted to a smooth-viewing font"

0 commit comments

Comments
 (0)