Cotes Chung
ada38aad96
chore: avoid auto-formatting liquid and sass mixed code
2025-05-05 11:15:08 +08:00
Cotes Chung
61ae6cced8
chore(dev-deps): add eslint config file
2025-05-05 11:14:07 +08:00
Cotes Chung
9f38a2dead
refactor: move the path of theme.js
2025-05-03 16:18:52 +08:00
Cotes Chung
23d953c313
chore(deps): remove plugin jekyll-redirect-from
...
Discussed in #2313
2025-05-03 16:14:50 +08:00
Cotes Chung
7708adbf30
fix: recognize global theme mode ( #2357 )
2025-04-16 18:08:43 +08:00
Cotes Chung
0eb7efa7f5
fix(search): avoid missing spaces between paragraphs in search results ( #2199 )
...
- Use a common post-snippet for search results to avoid line break issues
- Reduce Jekyll include files to speed up the build
- Remove outdated key from search.json
2025-01-20 21:27:18 +08:00
Cotes Chung
774ee93d78
Release v7.2.4 ( #2141 )
2024-12-22 03:21:28 +08:00
Cotes Chung
8a4d0bc4ee
fix(ui): left borderline of TOC is notched ( #2140 )
2024-12-22 03:11:20 +08:00
Cotes Chung
1b93f6db9b
docs: update the setting name for the comments
2024-12-22 02:32:03 +08:00
Cotes Chung
32051dad03
fix: toc not visible when switching from mobile to desktop mode ( #2139 )
2024-12-22 02:29:29 +08:00
Cotes Chung
e741aa43cf
Merge branch 'hotfix/7.2.3' into production
2024-12-15 21:04:09 +08:00
Cotes Chung
e0c3fafa47
fix(ui): slow script loading hides TOC fade-up effect in desktop ( #2120 )
2024-12-15 14:51:51 +08:00
Cotes Chung
1b4e318dc1
fix(ui): gap between TOC entries is inconsistent ( #2119 )
...
In desktop mode, H2 and the first sub-level H3 in the TOC are too close.
2024-12-15 14:43:07 +08:00
Cotes Chung
2f00d41861
fix: refreshing mermaid theme may fail ( #2113 )
2024-12-12 01:24:37 +08:00
Cotes Chung
d87c2de675
Merge branch 'hotfix/7.2.2' into production
2024-12-07 00:57:46 +08:00
Cotes Chung
f55cc31dbd
fix: js files in subdirectories are excluded from the site output ( #2101 )
2024-12-07 00:55:47 +08:00
Cotes Chung
6c112c641a
Merge branch 'master' into production
2024-12-05 21:32:17 +08:00
Cotes Chung
976e1a184b
fix(build): exclude purgecss.js from output files ( #2090 )
2024-12-05 21:28:37 +08:00
Cotes Chung
7ea3545ba3
refactor: reduce the height of the TOC bottom overlay in desktop mode
2024-12-05 21:09:07 +08:00
Cotes Chung
8280adb901
fix(toc): resume fade up animation in desktop mode ( #2085 )
2024-12-03 22:41:28 +08:00
Cotes Chung
4180992272
style: add indentation to js code
2024-12-03 22:22:20 +08:00
Cotes Chung
8e55e4dcb2
build: correct the js rollup watch path ( #2074 )
...
1. Correct the rollup watch path
2. Avoid registering watch listeners redundantly across multiple tasks
2024-12-01 04:20:47 +08:00
Cotes Chung
82ba82e6da
Merge branch 'master' into production
2024-11-28 16:56:02 +08:00
Cotes Chung
5265b03974
feat: support vertical scrolling for toc in desktop mode ( #2064 )
2024-11-28 05:40:57 +08:00
Cotes Chung
11647697bb
build(deps): update dependencies version
2024-11-25 03:55:11 +08:00
Cotes Chung
5756b8fc26
build(deps-dev): upgrade dependencies
...
Close #2058
2024-11-25 00:19:56 +08:00
Cotes Chung
35c794cf58
perf: modular sass architecture ( #2052 )
...
- Modularized the Sass architecture to enhance code maintainability and reduce the output file size
- Replaced deprecated `@import` with `@use` / `@forward`
2024-11-25 00:05:28 +08:00
Cotes Chung
c69914effc
ci: avoid repeated runs of stylelint ( #2057 )
2024-11-24 04:33:46 +08:00
Cotes Chung
65f960c31a
perf: speed up page rendering and jekyll build process ( #2034 )
...
Close stale issues and PRs / stale (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Style Lint / stylelint (push) Has been cancelled
Lint Commit Messages / commitlint (push) Has been cancelled
Build and Deploy / build (push) Has been cancelled
Build and Deploy / deploy (push) Has been cancelled
- Ensure inline scripts execute after the DOM has fully loaded.
- Use Rollup to bundle the theme-mode and Mermaid scripts, reducing the number of Jekyll include snippets.
2024-11-16 22:49:55 +08:00
Cotes Chung
d51345e297
ci: reduce unnecessary pr-filter runs ( #2033 )
...
- Checking the repository of the PR is more effective than checking the label to identify bot-initiated PRs
- This change also allows more flexible PR body definitions for developers with write access to the repository
2024-11-08 22:35:18 +08:00
Cotes Chung
2f844978aa
chore: change stale label to inactive
2024-11-08 22:15:31 +08:00
Cotes Chung
4ef3cd8efc
ci: improve workflow triggers ( #2017 )
...
- Unchain commit-lint and CI
- Even if a commit does not meet the CI path filter, it still needs to lint the commit message.
- Unchain PR filter and CI
- The CI workflow needs to be triggered when the commits in a pull request are modified.
- Allow manual publishing
- Sometimes `semantic-release` will error out due to commit messages referencing discussions, but this does not affect the final RubyGems/GitHub Release. In such cases, manual triggering of the publish process is needed to complete the remaining publishing steps.
2024-10-29 22:56:32 +08:00
Cotes Chung
c7f967529c
ci: skip test for invalid PRs ( #2013 )
2024-10-26 16:58:07 +08:00
Cotes Chung
74ed06321c
ci: block invalid pull requests ( #2010 )
2024-10-25 19:48:11 +08:00
Cotes Chung
d4f7f39ece
refactor: simplify sidebar animation
2024-10-22 11:13:06 +08:00
Cotes Chung
c1bd9eb9ee
refactor: reduce duplicate scss
2024-10-20 13:52:42 +08:00
Cotes Chung
6f461132c0
refactor: improve toc popup module
2024-10-19 21:15:31 +08:00
Cotes Chung
93f616b25d
fix: pagination error when pinned posts exceed the page size ( #1965 )
2024-09-26 22:30:56 +08:00
Cotes Chung
fbcdf8ce85
Merge branch 'master' into production
2024-09-23 19:48:06 +08:00
Cotes Chung
fac6116af1
build(dev-deps): bump 7 dependencies versions
2024-09-23 19:41:28 +08:00
Cotes Chung
5a63244721
fix(pwa): site baseurl not passed to app.js ( #1955 )
2024-09-18 22:32:26 +08:00
Cotes Chung
3ab3b844d2
refactor: replace deprecated meta element
...
Replace `apple-mobile-web-app-capable` with `mobile-web-app-capable`
2024-09-18 21:41:08 +08:00
Cotes Chung
a2bf5dc58e
Merge branch 'master' into production
2024-08-27 15:22:53 +08:00
Cotes Chung
8b7dba71e3
docs: update tutorial and readme
...
Change Dev Containers logo in README:
Simple Icons has removed all Microsoft icons due to copyright restrictions, see <https://github.com/simple-icons/simple-icons/issues/11236 >
2024-08-27 15:18:52 +08:00
Cotes Chung
fc3d101258
build: improve the JS build for PWA ( #1923 )
2024-08-26 16:49:48 +08:00
Cotes Chung
604e01eb36
chore(deps): correct Tocbot version number
2024-08-26 00:49:05 +08:00
Cotes Chung
31e19c6d0f
refactor(ui): standardize the border radius ( #1920 )
...
Impact:
- Increase the border radius of inline code and `<kbd>` tags
- Variable `$base-radius` renamed to `$radius-lg`
2024-08-25 18:17:38 +08:00
Cotes Chung
5f4dab1745
build: upgrade dependencies
2024-08-25 01:18:34 +08:00
Cotes Chung
8cfd721494
build(deps-dev): bump the dev-deps
2024-08-25 00:25:29 +08:00
Cotes Chung
64c7262245
feat(ui): set <kbd> font to 'Lato'
2024-08-25 00:12:28 +08:00
Cotes Chung
707a209424
refactor: improve heading layout
2024-08-25 00:12:00 +08:00
Cotes Chung
80bd7928a0
feat(ui): improve block quote layout
2024-08-24 22:27:35 +08:00
Cotes Chung
bf6c996c4e
chore: move entries in git-ignore
2024-08-21 14:31:22 +08:00
Cotes Chung
99eaf6089e
chore: remove duplicate config
2024-08-21 14:28:57 +08:00
Cotes Chung
efd2941ce0
build: resume platform-specific dependencies
2024-08-21 14:28:14 +08:00
Cotes Chung
7f83c3d00d
refactor: improve the efficiency of GLightbox switching
...
Repeatedly using `GLightbox.destroy()` (>= 4 times) will cause `GLightbox` to fail to generate new objects
2024-08-20 00:04:09 +08:00
Cotes Chung
d74bfaeda2
chore(tools): improve the init-script
2024-08-19 05:10:34 +08:00
Cotes Chung
e347d0632f
build: update ruby version requirements
...
`html-proofer` 5.x requires Ruby `>= 3.1, < 4.0`
2024-08-19 05:10:33 +08:00
Cotes Chung
35fdea0c4f
docs: add devcontainers tutorial ( #1844 )
2024-08-19 05:10:33 +08:00
Cotes Chung
5c5910f1fc
fix: remove extra dual-mode images from lightbox ( #1883 )
2024-08-19 05:10:33 +08:00
Cotes Chung
b641b36480
ci: set node version to LTS
...
There are some problems with the latest version.
See: https://github.com/cotes2020/jekyll-theme-chirpy/actions/runs/9977150040
2024-07-18 01:20:17 +08:00
Cotes Chung
8c30f0a9c3
build(dev): support for running tasks in macOS
2024-07-12 02:03:52 +08:00
Cotes Chung
a07a57ec92
feat(ui): make info-prompt icon looks like the letter "i" ( #1835 )
2024-07-04 02:21:22 +08:00
Cotes Chung
e6532ad864
refactor: fix typos in locale variable
...
statment -> statement
2024-07-04 01:42:29 +08:00
Cotes Chung
fbba0a4204
chore: fix typos in project files and docs
2024-07-02 08:44:07 +08:00
Cotes Chung
c876731901
feat(ui): improve visibility of inline code ( #1831 )
2024-07-01 07:02:36 +08:00
Cotes Chung
9ca7519239
docs: unify the style of badges
2024-06-27 05:30:53 +08:00
Cotes Chung
0709854dc8
fix: adapt the giscus localization parameter ( #1810 )
2024-06-16 22:25:41 +08:00
Cotes Chung
f1d35832f4
build(devcontainer): add omz plugins & verify extension signature
...
VSCode fixed signature validation hangs in v1.90
2024-06-08 00:54:15 +08:00
Cotes Chung
cf853f14e4
chore: upgrade husky v9 settings
2024-06-07 19:27:54 +08:00
Cotes Chung
7ca9c59784
build(deps-dev): remove package rollup-plugin-license ( #1796 )
...
The `rollup-plugin-license` has been using too many deprecated dependencies, so it is necessary to remove it.
As an alternative, this changes uses Rollup `output.banner` to insert copyright information. Since `terser` runs after `output`, it is not possible to insert the Front Matter defining permlink for `sw.js` through the same way (Jekyll Front Matter is YAML rather than JS, which would cause errors with terser).
Therefore, _Jekyll Collection_ is now used to add permlink to `sw.js`, with the collection named `app`, and the directory placed in `_app`. This directory is not tracked by git, but it will be included when building the gem.
2024-06-05 23:51:10 +08:00
Cotes Chung
250880c088
docs: change ordering of badges
2024-06-05 01:12:25 +08:00
Cotes Chung
88b844ce80
build(deps): improve dependency grouping
2024-06-04 19:26:33 +08:00
Cotes Chung
3b46629dc0
build(deps-dev): bump the npm group across 1 directory with 8 updates
...
Updates the requirements on [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ), [@babel/plugin-transform-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-properties ), [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ), [conventional-changelog-conventionalcommits](https://github.com/conventional-changelog/conventional-changelog/tree/HEAD/packages/conventional-changelog-conventionalcommits ), [rollup](https://github.com/rollup/rollup ), [rollup-plugin-license](https://github.com/mjeanroy/rollup-plugin-license ), [semantic-release](https://github.com/semantic-release/semantic-release ) and [stylelint](https://github.com/stylelint/stylelint ) to permit the latest version.
Updates `@babel/core` to 7.24.6
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-core )
Updates `@babel/plugin-transform-class-properties` to 7.24.6
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-plugin-transform-class-properties )
Updates `@babel/preset-env` to 7.24.6
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-preset-env )
Updates `conventional-changelog-conventionalcommits` from 7.0.2 to 8.0.0
- [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases )
- [Changelog](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/conventional-changelog/commits/conventional-changelog-conventionalcommits-v8.0.0/packages/conventional-changelog-conventionalcommits )
Updates `rollup` to 4.18.0
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.17.2...v4.18.0 )
Updates `rollup-plugin-license` to 3.4.0
- [Changelog](https://github.com/mjeanroy/rollup-plugin-license/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mjeanroy/rollup-plugin-license/compare/v3.3.1...v3.4.0 )
Updates `semantic-release` from 23.1.1 to 24.0.0
- [Release notes](https://github.com/semantic-release/semantic-release/releases )
- [Commits](https://github.com/semantic-release/semantic-release/compare/v23.1.1...v24.0.0 )
Updates `stylelint` to 16.6.1
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/16.5.0...16.6.1 )
2024-06-04 01:36:27 +08:00
Cotes Chung
1e3d4a6323
feat(dev): support vscode dev-container ( #1781 )
2024-06-03 21:12:54 +08:00
Cotes Chung
1c5fa0880d
refactor: restore shell script extensions
...
Without an extension, the shell script configuration in `.gitattribute` will not work.
2024-06-01 04:15:09 +08:00
Cotes Chung
64ae7a3671
docs: correct markdown syntax of tutorial ( #1787 )
2024-05-30 03:33:35 +08:00
Cotes Chung
39e4338839
Merge branch 'hotfix/7.0.1' into production
2024-05-18 18:58:08 +08:00
Cotes Chung
33a1fa7cae
fix(analytics): goatcounter pv greater than 1K cannot be converted to numbers ( #1762 )
...
The goatcounter PV report splits numbers with spaces, e.g. 1024 would be '1 024'
2024-05-18 18:52:45 +08:00
Cotes Chung
5cdde7dbc5
ci: enable ci/style-lint for the hotfix branches
2024-05-17 20:11:08 +08:00
Cotes Chung
c4b58e3502
build: upgrade dependencies
...
Updates `@fortawesome/fontawesome-free` to 6.5.2
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases )
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/6.x/CHANGELOG.md )
- [Commits](https://github.com/FortAwesome/Font-Awesome/compare/6.5.1...6.5.2 )
Updates `dayjs` to 1.11.11
- [Release notes](https://github.com/iamkun/dayjs/releases )
- [Changelog](https://github.com/iamkun/dayjs/blob/dev/CHANGELOG.md )
- [Commits](https://github.com/iamkun/dayjs/compare/v1.11.10...v1.11.11 )
Updates `mermaid` to 10.9.0
- [Release notes](https://github.com/mermaid-js/mermaid/releases )
- [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/mermaid-js/mermaid/compare/v10.8.0...v10.9.0 )
Updates `tocbot` to 4.27.20
- [Release notes](https://github.com/tscanlin/tocbot/releases )
- [Changelog](https://github.com/tscanlin/tocbot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tscanlin/tocbot/compare/v4.25.0...v4.27.20 )
2024-05-17 00:03:53 +08:00
Cotes Chung
9630fd647f
ci(release): pass secrets to called workflow
2024-05-12 07:35:58 +08:00
Cotes Chung
09b300bc62
Merge branch 'master' into production
2024-05-11 15:03:29 +08:00
Cotes Chung
9ffd997c3b
ci(release): skip git status check in prep phase
2024-05-11 15:02:37 +08:00
Cotes Chung
37827d81e5
chore: correct npm script name
2024-05-11 14:24:15 +08:00
Cotes Chung
febc01db52
docs: update supported versions of Security Policy
2024-05-11 14:10:23 +08:00
Cotes Chung
b2245492e6
build(deps): upgrade jekyll-compress-html to v3.2.0
2024-05-11 14:09:15 +08:00
Cotes Chung
f87fdd0ea0
build(deps): upgrade html-proofer to v5.x
2024-05-11 14:08:39 +08:00
Cotes Chung
fdbd7f02e3
build(deps): update assets submodule
2024-05-11 13:53:15 +08:00
Cotes Chung
75891e714f
build(deps-dev): bump the npm group across 1 directory with 6 updates
...
Updates `@babel/core` to 7.24.5
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-core )
Updates `@babel/preset-env` to 7.24.5
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-preset-env )
Updates `@commitlint/cli` to 19.3.0
- [Release notes](https://github.com/conventional-changelog/commitlint/releases )
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md )
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.3.0/@commitlint/cli )
Updates `rollup` to 4.17.2
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.15.0...v4.17.2 )
Updates `semantic-release` to 23.1.1
- [Release notes](https://github.com/semantic-release/semantic-release/releases )
- [Commits](https://github.com/semantic-release/semantic-release/compare/v23.0.8...v23.1.1 )
Updates `stylelint` to 16.5.0
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/16.3.1...16.5.0 )
2024-05-11 13:51:25 +08:00
Cotes Chung
363a3d936b
perf: tree shaking Bootstrap CSS ( #1736 )
2024-05-11 11:15:12 +08:00
Cotes Chung
ddb48eda52
perf: lean bootstrap javascript ( #1734 )
2024-05-11 10:29:14 +08:00
Cotes Chung
12c340e98b
ci: update dependabot settings
2024-05-04 01:06:56 +08:00
Cotes Chung
dcb0add47b
refactor!: optimize the resource hints ( #1717 )
...
Improved the data structure for defining resource hints to the browser.
2024-05-02 05:11:45 +08:00
Cotes Chung
f1c6d2a817
build: enhance the run script
2024-05-02 03:18:35 +08:00
Cotes Chung
05ebfb705e
chore: update discussion template
2024-05-02 03:16:35 +08:00
Cotes Chung
b77767f76e
refactor: improve js module loading order
2024-04-29 03:43:33 +08:00
Cotes Chung
e0950fc973
fix: make TOC title and entries visible at the same time ( #1711 )
...
When internet connection speeds are poor, there is a chance that the title of the TOC will appear earlier than its entries, causing a visual cutoff.
2024-04-29 03:36:16 +08:00
Cotes Chung
778ebdf250
chore: delete JS comments from HTML
2024-04-29 03:25:26 +08:00
Cotes Chung
72d93b132f
build: improve init tool
2024-04-28 02:51:16 +08:00