Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
239 commits
Select commit Hold shift + click to select a range
5dbda0c
build(deps-dev): replace the deprecated libraries (#1559)
seod0209 Feb 25, 2024
b641b3f
feat(analytics)!: add post pageviews for GoatCounter (#1543)
kungfux Feb 25, 2024
e436387
feat: change site verification settings (#1561)
kungfux Feb 26, 2024
f8390d4
perf!: rename comment setting parameter (#1563)
cotes2020 Feb 26, 2024
8a1568c
Merge branch 'production'
cotes2020 Feb 26, 2024
9592146
feat: add support for embed video files (#1558)
kungfux Feb 27, 2024
4ddd5c4
perf: improve <hr> visibility in dark mode (#1565)
kungfux Feb 28, 2024
0f5abc8
Merge branch 'production'
cotes2020 Feb 29, 2024
e24a0c7
refactor: use explicit url for goatcounter (#1578)
kungfux Feb 29, 2024
6112b15
refactor: change alternate url for embed video file (#1579)
kungfux Feb 29, 2024
8a2afae
fix: search result prompt is empty (#1583)
cotes2020 Mar 1, 2024
25b2ffa
build: configure rules for `markdownlint`
cotes2020 Mar 1, 2024
25c4166
style(markdown): resolve `markdownlint` warnings
cotes2020 Mar 1, 2024
2a7b56b
build(deps-dev): bump the npm group with 5 updates
cotes2020 Mar 4, 2024
547b95c
feat(i18n): allow `page.lang` to override `site.lang` (#1586)
neilboyd Mar 4, 2024
0f8e782
Merge branch 'production'
cotes2020 Mar 7, 2024
f865336
feat: make post description customizable (#1602)
kungfux Mar 18, 2024
8349314
feat: display theme version in footer (#1611)
MrMurdock11 Mar 18, 2024
8e5fbb7
fix: use `https` for Weibo sharing URL (#1612)
long-910 Mar 18, 2024
700fd5b
feat: add support for giscus strict title matching (#1614)
GetOutOfMyBakery Mar 18, 2024
6044df4
Merge branch 'production'
cotes2020 Mar 22, 2024
319a082
refactor(post): reduce the margin between title and description
cotes2020 Mar 22, 2024
c5d5e1f
build(deps-dev): bump the npm group with 7 updates
cotes2020 Mar 23, 2024
ce96d7e
Merge branch 'production'
cotes2020 Mar 23, 2024
13bf51e
chore(editor): update markdown extension settings
cotes2020 Mar 23, 2024
9508391
refactor: fix reference to comment parameter `site.comments.provider`…
mascari4615 Mar 24, 2024
3cc1510
build(deps): update `wagoid/commitlint-github-action` from 5 to 6
cotes2020 Apr 2, 2024
01076cb
build(deps-dev): bump the npm group with 2 updates
cotes2020 Apr 2, 2024
23be416
feat(media): support audio and video tag with multi sources (#1618)
MrMurdock11 Apr 4, 2024
61bdca2
feat(analytics): add Umami and Matomo tracking codes (#1658)
ildoc Apr 9, 2024
9f8aeaa
refactor!: rename media-url file and related parameters (#1651)
MrMurdock11 Apr 12, 2024
7d48d32
ci: avoid duplicate builds for PR commits
cotes2020 Apr 13, 2024
44f552c
feat(deps): move `MathJax` configuration to a separate file (#1670)
cotes2020 Apr 13, 2024
1914c78
docs: add missing head to changelog
cotes2020 Apr 13, 2024
7808ee1
chore: move starter workflow into subfolder
cotes2020 Apr 13, 2024
8c1be9f
ci: fix checkout depth for commitlint
cotes2020 Apr 13, 2024
bf16d60
ci(release): replace `standard-version` with `semantic-release` (#1666)
cotes2020 Apr 13, 2024
c85e9e2
ci: avoid trigger redundant workflows (#1682)
cotes2020 Apr 16, 2024
fe7afa3
perf: replace jQuery with Vanilla JS (#1681)
cotes2020 Apr 16, 2024
d013c11
docs: update readme
cotes2020 Apr 17, 2024
662cd33
chore: add `.jekyll-metadata` to .gitignore (#1686)
vmrocha Apr 19, 2024
63c5138
chore: remove comments from compressed HTML
cotes2020 Apr 20, 2024
015d567
refactor: reduce custom CSS
cotes2020 Apr 20, 2024
cd37f63
fix: mode toggle not outlined when receiving keyboard focus (#1690)
cotes2020 Apr 20, 2024
2cfa548
ci: drop Ruby 3.0 and introduce Ruby 3.3 (#1691)
cotes2020 Apr 20, 2024
d4a6d64
perf: simplify mode toggle script (#1692)
cotes2020 Apr 20, 2024
05e3689
build(deps-dev): bump the npm group with 6 updates
cotes2020 Apr 20, 2024
e09831b
ci: specify the node version (#1694)
cotes2020 Apr 20, 2024
72d93b1
build: improve init tool
cotes2020 Apr 27, 2024
796c386
refactor: add date factor to the recommended posts (#1699)
huanyushi Apr 27, 2024
778ebdf
chore: delete JS comments from HTML
cotes2020 Apr 28, 2024
e0950fc
fix: make TOC title and entries visible at the same time (#1711)
cotes2020 Apr 28, 2024
b77767f
refactor: improve js module loading order
cotes2020 Apr 28, 2024
76d58fe
fix(pwa): skip range requests in service worker (#1672)
MrMurdock11 Apr 29, 2024
8608147
fix: prevent footnote back arrow from becoming an emoji (#1716)
huanyushi May 1, 2024
05ebfb7
chore: update discussion template
cotes2020 May 1, 2024
f1c6d2a
build: enhance the run script
cotes2020 May 1, 2024
dcb0add
refactor!: optimize the resource hints (#1717)
cotes2020 May 1, 2024
12c340e
ci: update dependabot settings
cotes2020 May 3, 2024
c17fba4
feat: add cloudflare web analytics (#1723)
dqhntt May 4, 2024
ddb48ed
perf: lean bootstrap javascript (#1734)
cotes2020 May 11, 2024
363a3d9
perf: tree shaking Bootstrap CSS (#1736)
cotes2020 May 11, 2024
75891e7
build(deps-dev): bump the npm group across 1 directory with 6 updates
cotes2020 May 11, 2024
fdbd7f0
build(deps): update assets submodule
cotes2020 May 11, 2024
f87fdd0
build(deps): upgrade `html-proofer` to v5.x
cotes2020 May 11, 2024
b224549
build(deps): upgrade `jekyll-compress-html` to v3.2.0
cotes2020 May 11, 2024
febc01d
docs: update supported versions of Security Policy
cotes2020 May 11, 2024
37827d8
chore: correct npm script name
cotes2020 May 11, 2024
9ffd997
ci(release): skip git status check in prep phase
cotes2020 May 11, 2024
09b300b
Merge branch 'master' into production
cotes2020 May 11, 2024
e33547f
chore(release): 7.0.0
semantic-release-bot May 11, 2024
90a4cc7
Merge branch 'production'
semantic-release-bot May 11, 2024
9630fd6
ci(release): pass secrets to called workflow
cotes2020 May 11, 2024
c4b58e3
build: upgrade dependencies
cotes2020 May 16, 2024
5cdde7d
ci: enable ci/style-lint for the `hotfix` branches
cotes2020 May 17, 2024
00a27a1
fix: audio/video path apply variable `media_subpath` (#1745)
kungfux May 18, 2024
33a1fa7
fix(analytics): goatcounter pv greater than 1K cannot be converted to…
cotes2020 May 18, 2024
39e4338
Merge branch 'hotfix/7.0.1' into production
cotes2020 May 18, 2024
20987f2
chore(release): 7.0.1
semantic-release-bot May 18, 2024
6cb1a5a
Merge branch 'production'
semantic-release-bot May 18, 2024
0102aba
feat: add Bluesky social links (#1759)
jasontenpenny May 18, 2024
64ae7a3
docs: correct markdown syntax of tutorial (#1787)
cotes2020 May 29, 2024
1c5fa08
refactor: restore shell script extensions
cotes2020 May 31, 2024
1e3d4a6
feat(dev): support vscode dev-container (#1781)
cotes2020 Jun 3, 2024
3b46629
build(deps-dev): bump the npm group across 1 directory with 8 updates
cotes2020 Jun 3, 2024
88b844c
build(deps): improve dependency grouping
cotes2020 Jun 4, 2024
250880c
docs: change ordering of badges
cotes2020 Jun 4, 2024
7ca9c59
build(deps-dev): remove package `rollup-plugin-license` (#1796)
cotes2020 Jun 5, 2024
cf853f1
chore: upgrade `husky` v9 settings
cotes2020 Jun 7, 2024
f1d3583
build(devcontainer): add omz plugins & verify extension signature
cotes2020 Jun 7, 2024
0709854
fix: adapt the giscus localization parameter (#1810)
cotes2020 Jun 16, 2024
9ca7519
docs: unify the style of badges
cotes2020 Jun 26, 2024
c876731
feat(ui): improve visibility of inline code (#1831)
cotes2020 Jun 30, 2024
fbba0a4
chore: fix typos in project files and docs
cotes2020 Jul 1, 2024
e6532ad
refactor: fix typos in locale variable
cotes2020 Jul 3, 2024
db9e58b
build(deps-dev): bump the dev-deps group with 3 updates (#1824)
dependabot[bot] Jul 3, 2024
a07a57e
feat(ui): make `info-prompt` icon looks like the letter "i" (#1835)
cotes2020 Jul 3, 2024
8673e13
feat: add Reddit social option (#1836)
goodnightkara Jul 5, 2024
e3a78b6
feat: add Threads social links (#1837)
goodnightkara Jul 5, 2024
e4db1a1
feat(dev): add vscode tasks (#1843)
kungfux Jul 10, 2024
8c30f0a
build(dev): support for running tasks in macOS
cotes2020 Jul 11, 2024
979f86c
fix: avoid caching pageviews data (#1849)
kungfux Jul 17, 2024
b641b36
ci: set node version to LTS
cotes2020 Jul 17, 2024
5c5910f
fix: remove extra dual-mode images from lightbox (#1883)
cotes2020 Jul 29, 2024
35fdea0
docs: add devcontainers tutorial (#1844)
cotes2020 Aug 8, 2024
e347d06
build: update ruby version requirements
cotes2020 Aug 8, 2024
23729c9
refactor: update the sass mixed declarations (#1872)
classicrocker883 Aug 9, 2024
d74bfae
chore(tools): improve the init-script
cotes2020 Aug 13, 2024
7f83c3d
refactor: improve the efficiency of `GLightbox` switching
cotes2020 Aug 19, 2024
efd2941
build: resume platform-specific dependencies
cotes2020 Aug 21, 2024
99eaf60
chore: remove duplicate config
cotes2020 Aug 21, 2024
bf6c996
chore: move entries in git-ignore
cotes2020 Aug 21, 2024
befc4ce
feat(analytics): add fathom analytics (#1913)
juliusgb Aug 21, 2024
80bd792
feat(ui): improve block quote layout
cotes2020 Aug 24, 2024
707a209
refactor: improve heading layout
cotes2020 Aug 24, 2024
64c7262
feat(ui): set `<kbd>` font to 'Lato'
cotes2020 Aug 24, 2024
8cfd721
build(deps-dev): bump the dev-deps
cotes2020 Aug 24, 2024
5f4dab1
build: upgrade dependencies
cotes2020 Aug 24, 2024
31e19c6
refactor(ui): standardize the border radius (#1920)
cotes2020 Aug 25, 2024
604e01e
chore(deps): correct `Tocbot` version number
cotes2020 Aug 25, 2024
fc3d101
build: improve the JS build for PWA (#1923)
cotes2020 Aug 26, 2024
8b7dba7
docs: update tutorial and readme
cotes2020 Aug 27, 2024
a2bf5dc
Merge branch 'master' into production
cotes2020 Aug 27, 2024
a784f0a
chore(release): 7.1.0
semantic-release-bot Aug 27, 2024
cbc9319
Merge branch 'production'
semantic-release-bot Aug 27, 2024
367262e
fix(i18n): correct fr-FR translations (#1949)
denis-games Sep 16, 2024
3ab3b84
refactor: replace deprecated meta element
cotes2020 Sep 18, 2024
5a63244
fix(pwa): site baseurl not passed to `app.js` (#1955)
cotes2020 Sep 18, 2024
fac6116
build(dev-deps): bump 7 dependencies versions
cotes2020 Sep 23, 2024
fbcdf8c
Merge branch 'master' into production
cotes2020 Sep 23, 2024
fd0df83
chore(release): 7.1.1
semantic-release-bot Sep 23, 2024
7374906
Merge branch 'production'
semantic-release-bot Sep 23, 2024
e6b87d2
chore: remove `h1` element from site title (#1960)
kungfux Sep 24, 2024
93f616b
fix: pagination error when pinned posts exceed the page size (#1965)
cotes2020 Sep 26, 2024
740bd84
chore(i18n): update hungarian translation (#1976)
borosbence Oct 1, 2024
8a064a5
feat: show toc on mobile screens (#1964)
kungfux Oct 11, 2024
03e302c
chore: close toc-popup gracefully with Esc key (#1990)
kungfux Oct 13, 2024
6f46113
refactor: improve toc popup module
cotes2020 Oct 19, 2024
c1bd9eb
refactor: reduce duplicate scss
cotes2020 Oct 20, 2024
d4f7f39
refactor: simplify sidebar animation
cotes2020 Oct 22, 2024
74ed063
ci: block invalid pull requests (#2010)
cotes2020 Oct 25, 2024
c7f9675
ci: skip test for invalid PRs (#2013)
cotes2020 Oct 26, 2024
4ef3cd8
ci: improve workflow triggers (#2017)
cotes2020 Oct 29, 2024
86b13c9
chore: improve feed interoperability (#2024)
kungfux Nov 1, 2024
42dea8e
build(deps): update `wdm` gem version for compatibility (#2028)
supreethmv Nov 3, 2024
2f84497
chore: change stale label to `inactive`
cotes2020 Nov 8, 2024
d51345e
ci: reduce unnecessary pr-filter runs (#2033)
cotes2020 Nov 8, 2024
65f960c
perf: speed up page rendering and jekyll build process (#2034)
cotes2020 Nov 16, 2024
c69914e
ci: avoid repeated runs of stylelint (#2057)
cotes2020 Nov 23, 2024
35c794c
perf: modular sass architecture (#2052)
cotes2020 Nov 24, 2024
5756b8f
build(deps-dev): upgrade dependencies
cotes2020 Nov 24, 2024
1164769
build(deps): update dependencies version
cotes2020 Nov 24, 2024
5265b03
feat: support vertical scrolling for toc in desktop mode (#2064)
cotes2020 Nov 27, 2024
82ba82e
Merge branch 'master' into production
cotes2020 Nov 28, 2024
3df83fd
chore(release): 7.2.0
semantic-release-bot Nov 28, 2024
2966fc1
Merge branch 'production'
semantic-release-bot Nov 28, 2024
b4019f3
fix: ensure pageviews are fetched after DOM is loaded (#2071)
kungfux Nov 30, 2024
8e55e4d
build: correct the js rollup watch path (#2074)
cotes2020 Nov 30, 2024
a16aa7d
fix: correct the import condition for theme script (#2075)
kungfux Nov 30, 2024
4180992
style: add indentation to js code
cotes2020 Dec 3, 2024
8280adb
fix(toc): resume fade up animation in desktop mode (#2085)
cotes2020 Dec 3, 2024
7ea3545
refactor: reduce the height of the TOC bottom overlay in desktop mode
cotes2020 Dec 5, 2024
976e1a1
fix(build): exclude `purgecss.js` from output files (#2090)
cotes2020 Dec 5, 2024
6c112c6
Merge branch 'master' into production
cotes2020 Dec 5, 2024
7630356
chore(release): 7.2.1
semantic-release-bot Dec 5, 2024
4925a58
Merge branch 'production'
semantic-release-bot Dec 5, 2024
981ddba
feat(i18n): add Dutch locale (#2076)
DeanLemans Dec 5, 2024
f55cc31
fix: js files in subdirectories are excluded from the site output (#2…
cotes2020 Dec 6, 2024
d87c2de
Merge branch 'hotfix/7.2.2' into production
cotes2020 Dec 6, 2024
0360c9e
chore(release): 7.2.2
semantic-release-bot Dec 6, 2024
f40fa6a
Merge branch 'production'
semantic-release-bot Dec 6, 2024
2f00d41
fix: refreshing mermaid theme may fail (#2113)
cotes2020 Dec 11, 2024
1b4e318
fix(ui): gap between TOC entries is inconsistent (#2119)
cotes2020 Dec 15, 2024
e0c3faf
fix(ui): slow script loading hides TOC fade-up effect in desktop (#2120)
cotes2020 Dec 15, 2024
e741aa4
Merge branch 'hotfix/7.2.3' into production
cotes2020 Dec 15, 2024
c174f62
chore(release): 7.2.3
semantic-release-bot Dec 15, 2024
c12875f
Merge branch 'production'
semantic-release-bot Dec 15, 2024
32051da
fix: toc not visible when switching from mobile to desktop mode (#2139)
cotes2020 Dec 21, 2024
1b93f6d
docs: update the setting name for the comments
cotes2020 Dec 21, 2024
8a4d0bc
fix(ui): left borderline of TOC is notched (#2140)
cotes2020 Dec 21, 2024
774ee93
Release v7.2.4 (#2141)
cotes2020 Dec 21, 2024
5e41d87
chore(release): 7.2.4
semantic-release-bot Dec 21, 2024
e44c048
Merge branch 'production'
semantic-release-bot Dec 21, 2024
0eb7efa
fix(search): avoid missing spaces between paragraphs in search result…
cotes2020 Jan 20, 2025
231956d
docs: using long form Jekyll subcommand (#2231)
algorithmic-parallels Feb 6, 2025
7d4d35c
feat(i18n): add persian language (#2238)
masihgh Feb 9, 2025
e315864
docs: fix typo in `2019-08-08-write-a-new-post.md` (#2281)
cgoldberg Mar 4, 2025
54d4d59
perf(seo): improve accessibility and aligns with best practices (#2289)
bkayranci Mar 8, 2025
571c90f
feat(i18n): add Japanese locale (#2295)
manabu-nakamura Mar 28, 2025
db40db6
chore: add parameter in `search-results.html` (#2330)
alazaroc Apr 4, 2025
f744929
fix: prevent the search bar from moving when focused (#2336)
MrAnno Apr 7, 2025
167c98c
feat(i18n): add Catalan Spanish locale translation (#2349)
delynchoong Apr 13, 2025
7708adb
fix: recognize global theme mode (#2357)
cotes2020 Apr 16, 2025
c626447
fix(ui): fix incomplete border color on hover for tags (#2359)
MrAnno Apr 24, 2025
b48ea68
chore: update `linkedin` sharing url (#2307)
iSpeakNerd Apr 24, 2025
23d953c
chore(deps): remove plugin `jekyll-redirect-from`
cotes2020 May 3, 2025
9f38a2d
refactor: move the path of `theme.js`
cotes2020 May 3, 2025
61ae6cc
chore(dev-deps): add eslint config file
cotes2020 May 5, 2025
ada38aa
chore: avoid auto-formatting liquid and sass mixed code
cotes2020 May 5, 2025
401e2af
fix: avoid `mathjax` loading failure on page refresh (#2389)
cotes2020 May 5, 2025
d0f8f95
fix: improve accuracy of moving `img` element classes (#2399)
cotes2020 May 11, 2025
519e4f1
chore: upgrade dependencies to the latest version (#2409)
cotes2020 May 18, 2025
d84b727
Merge branch 'master' into production
cotes2020 May 18, 2025
53770e4
chore(release): 7.3.0
semantic-release-bot May 18, 2025
09948da
Merge branch 'production'
cotes2020 May 18, 2025
f5802b8
feat(i18n): add Danish locale (#2410)
Nicolai9852 May 21, 2025
18c48b4
feat(i18n): add locale files for some rtl languages (#2415)
zakariaf May 21, 2025
c706799
fix: correct GoatCounter pageviews extraction (#2420)
kungfux May 31, 2025
1bac96a
fix: resolve discrepancy in lqip between post and main page (#2453)
XerxesDGreat Jun 27, 2025
7615d72
fix: escape special JSON characters in search results (#2481)
cotes2020 Jul 26, 2025
81886b1
Merge branch 'hotfix/7.3.1' into production
cotes2020 Jul 26, 2025
c0e4756
chore(release): 7.3.1
semantic-release-bot Jul 26, 2025
8bf72fc
Merge branch 'production'
semantic-release-bot Jul 26, 2025
49519d1
chore: complete ESLint v9 configuration
cotes2020 Jul 26, 2025
b855e8b
style: unify quote style in rollup config
cotes2020 Jul 26, 2025
648398c
ci: migrate eslint and stylelint from codacy to gh-actions
cotes2020 Jul 26, 2025
29bf95e
style: change css color functions to use modern notation
cotes2020 Jul 27, 2025
eaf5e57
ci: change filter script to ESM format
cotes2020 Jul 30, 2025
5f8ec7f
fix: avoid unconfigured social options in sidebar (#2507)
JasonRaveling Aug 31, 2025
cda62e2
feat: add support for embed spotify (#2515)
kungfux Sep 8, 2025
4d6c788
docs: update timezone picker reference (#2518)
kungfux Sep 8, 2025
221ca9f
fix: restore blurry animation for homepage LQIP (#2551)
cotes2020 Oct 13, 2025
f51641b
chore: remove deprecated URL
cotes2020 Oct 13, 2025
a385ffa
chore: improve ESLint config
cotes2020 Oct 13, 2025
ee68395
build(deps): bump the gh-actions group across 1 directory with 5 upda…
dependabot[bot] Oct 13, 2025
b3d7db3
refactor: avoid converting media‘s relative paths to absolute paths (…
cotes2020 Oct 16, 2025
604528e
fix(search): restore full-text search for posts with description (#2557)
cotes2020 Oct 19, 2025
aa832c2
refactor: update favicon files and documentation (#2558)
cotes2020 Oct 19, 2025
022b963
build(dev-deps): upgrade dependencies
cotes2020 Oct 19, 2025
3578111
refactor: resolve various StyleLint warnings
cotes2020 Oct 19, 2025
45cb428
build(deps): upgrade dependencies
cotes2020 Oct 19, 2025
078cf86
Merge branch 'master' into production
cotes2020 Oct 19, 2025
18ab8fc
chore(release): 7.4.0
semantic-release-bot Oct 19, 2025
7f35d8e
Merge branch 'production'
semantic-release-bot Oct 19, 2025
37377a4
Revert "refactor: avoid converting media‘s relative paths to absolute…
cotes2020 Oct 26, 2025
66bf232
fix: avoid duplicate base URL for homepage preview images (#2568)
cotes2020 Oct 26, 2025
4950edc
Merge branch 'master' into production
cotes2020 Oct 26, 2025
525c288
chore(release): 7.4.1
semantic-release-bot Oct 26, 2025
cecfc42
Merge branch 'production'
semantic-release-bot Oct 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Jekyll",
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye",
"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"postCreateCommand": "bash .devcontainer/post-create.sh",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
// Liquid tags auto-complete
"killalau.vscode-liquid-snippets",
// Liquid syntax highlighting and formatting
"Shopify.theme-check-vscode",
// Shell
"timonwong.shellcheck",
"mkhl.shfmt",
// Common formatter
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"yzhang.markdown-all-in-one",
// Git
"mhutchie.git-graph"
]
}
}
}
18 changes: 18 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

if [ -f package.json ]; then
bash -i -c "nvm install --lts && nvm install-latest-npm"
npm i
npm run build
fi

# Install dependencies for shfmt extension
curl -sS https://webi.sh/shfmt | sh &>/dev/null

# Add OMZ plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
sed -i -E "s/^(plugins=\()(git)(\))/\1\2 zsh-syntax-highlighting zsh-autosuggestions\3/" ~/.zshrc

# Avoid git log use less
echo -e "\nunset LESS" >>~/.zshrc
9 changes: 0 additions & 9 deletions .github/DISCUSSION_TEMPLATE/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ body:
[contributing guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/CONTRIBUTING.md).
required: true

- type: dropdown
attributes:
label: What is the topic?
options:
- Sharing tips and tricks
- Just chatting
validations:
required: true

- type: textarea
attributes:
label: Description
Expand Down
7 changes: 7 additions & 0 deletions .github/DISCUSSION_TEMPLATE/ideas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
body:
- type: textarea
attributes:
label: Description
description: Please describe in detail what you want to share.
validations:
required: true
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ko_fi: coteschung
custom: https://sponsor.cotes.page
14 changes: 8 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ version: 2
updates:
- package-ecosystem: "bundler"
directory: "/"
versioning-strategy: increase
groups:
bundler:
dependency-type: "production"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
versioning-strategy: increase
groups:
npm:
dependency-type: "development"
prod-deps:
dependency-type: production
dev-deps:
dependency-type: development
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
Expand All @@ -24,3 +22,7 @@ updates:
- "major"
schedule:
interval: "weekly"
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
42 changes: 32 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
name: CD

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- docs
branches: [production]
tags-ignore: ["**"]

jobs:
launch:
release:
if: ${{ ! startsWith(github.event.head_commit.message, 'chore(release)') }}
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
https://api.github.com/repos/${{ secrets.BUILDER }}/dispatches \
-d '{"event_type":"deploy", "client_payload":{"branch": "${{ github.ref_name }}"}}'
- uses: actions/checkout@v5

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true

- uses: actions/setup-node@v5
with:
node-version: lts/*

- run: npm install
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}

publish:
needs: release
uses: ./.github/workflows/publish.yml
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
BUILDER: ${{ secrets.BUILDER }}
34 changes: 21 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
name: "CI"
name: CI

on:
push:
branches-ignore:
- "production"
- "docs"
branches:
- master
- "hotfix/*"
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
- ".gitignore"
- .gitignore
- "docs/**"
- "README.md"
- "LICENSE"
- README.md
- LICENSE
pull_request:
paths:
- "**"
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
- .gitignore
- "docs/**"
- README.md
- LICENSE

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
ruby: ["3.0", "3.1", "3.2"]
ruby: ["3.1", "3.2", "3.3"]

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0 # for posts's lastmod

Expand All @@ -36,10 +42,12 @@ jobs:
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: lts/*

- name: Build Assets
run: npm i && npm run build

- name: Test Site
run: bash tools/test
run: bash tools/test.sh
9 changes: 5 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "CodeQL"

on:
push:
branches: ["master"]
paths: ["_javascript/**/*.js"]
pull_request:
paths: ["_javascript/**/*.js"]
Expand All @@ -23,21 +24,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: "${{ matrix.language }}"
config-file: .github/codeql/codeql-config.yml

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
14 changes: 9 additions & 5 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Lint Commit Messages
on: pull_request

on:
push:
branches:
- master
- "hotfix/*"
pull_request:

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
- uses: actions/checkout@v5
- uses: wagoid/commitlint-github-action@v6
30 changes: 30 additions & 0 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint JS

on:
push:
paths:
- "_javascript/**/*.js"
- ".github/workflows/scripts/**/*.js"
- "*.js"
pull_request:
paths:
- "_javascript/**/*.js"
- ".github/workflows/scripts/*.js"
- "*.js"

jobs:
lint-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: lts/*

- name: Install Dependencies
run: npm i

- name: Lint JS
run: npm run lint:js
26 changes: 26 additions & 0 deletions .github/workflows/lint-scss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint SCSS

on:
push:
paths:
- "_sass/**/*.scss"
pull_request:
paths:
- "_sass/**/*.scss"

jobs:
lint-scss:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: lts/*

- name: Install Dependencies
run: npm i

- name: Lint SCSS
run: npm run lint:scss
25 changes: 25 additions & 0 deletions .github/workflows/pr-filter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR Filter

on:
pull_request_target:
types: [opened, reopened]

jobs:
check-template:
if: github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Check PR Content
id: intercept
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { default: filter } = await import('${{ github.workspace }}/.github/workflows/scripts/pr-filter.js');
await filter({ github, context, core });
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish

on:
push:
branches:
- docs
workflow_call:
secrets:
GH_PAT:
required: true
BUILDER:
required: true
workflow_dispatch:

jobs:
launch:
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
https://api.github.com/repos/${{ secrets.BUILDER }}/dispatches \
-d '{"event_type":"deploy", "client_payload":{"branch": "${{ github.ref_name }}"}}'
Loading