Skip to content

Commit d167e94

Browse files
jwsung91denis-gamesDenis Jeancotes2020semantic-release-bot
authored
Upstream/v7.2.4 (#10)
* fix(i18n): correct fr-FR translations (#1949) Co-authored-by: Denis Jean <[email protected]> * refactor: replace deprecated meta element Replace `apple-mobile-web-app-capable` with `mobile-web-app-capable` * fix(pwa): site baseurl not passed to `app.js` (#1955) * build(dev-deps): bump 7 dependencies versions * chore(release): 7.1.1 ## [7.1.1](cotes2020/jekyll-theme-chirpy@v7.1.0...v7.1.1) (2024-09-23) ### Bug Fixes * **i18n:** correct fr-FR translations ([#1949](cotes2020/jekyll-theme-chirpy#1949)) ([367262e](cotes2020/jekyll-theme-chirpy@367262e)) * **pwa:** site baseurl not passed to `app.js` ([#1955](cotes2020/jekyll-theme-chirpy#1955)) ([5a63244](cotes2020/jekyll-theme-chirpy@5a63244)) * chore: remove `h1` element from site title (#1960) * fix: pagination error when pinned posts exceed the page size (#1965) * chore(i18n): update hungarian translation (#1976) * feat: show toc on mobile screens (#1964) * chore: close toc-popup gracefully with Esc key (#1990) * refactor: improve toc popup module * refactor: reduce duplicate scss * refactor: simplify sidebar animation * ci: block invalid pull requests (#2010) * ci: skip test for invalid PRs (#2013) * 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. * chore: improve feed interoperability (#2024) * build(deps): update `wdm` gem version for compatibility (#2028) * chore: change stale label to `inactive` * 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 * perf: speed up page rendering and jekyll build process (#2034) - 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. * ci: avoid repeated runs of stylelint (#2057) * 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` * build(deps-dev): upgrade dependencies Close #2058 * build(deps): update dependencies version * feat: support vertical scrolling for toc in desktop mode (#2064) * chore(release): 7.2.0 ## [7.2.0](cotes2020/jekyll-theme-chirpy@v7.1.1...v7.2.0) (2024-11-28) ### Features * show toc on mobile screens ([#1964](cotes2020/jekyll-theme-chirpy#1964)) ([8a064a5](cotes2020/jekyll-theme-chirpy@8a064a5)) * support vertical scrolling for toc in desktop mode ([#2064](cotes2020/jekyll-theme-chirpy#2064)) ([5265b03](cotes2020/jekyll-theme-chirpy@5265b03)) ### Bug Fixes * pagination error when pinned posts exceed the page size ([#1965](cotes2020/jekyll-theme-chirpy#1965)) ([93f616b](cotes2020/jekyll-theme-chirpy@93f616b)) ### Improvements * modular sass architecture ([#2052](cotes2020/jekyll-theme-chirpy#2052)) ([35c794c](cotes2020/jekyll-theme-chirpy@35c794c)) * speed up page rendering and jekyll build process ([#2034](cotes2020/jekyll-theme-chirpy#2034)) ([65f960c](cotes2020/jekyll-theme-chirpy@65f960c)) * fix: ensure pageviews are fetched after DOM is loaded (#2071) * build: correct the js rollup watch path (#2074) 1. Correct the rollup watch path 2. Avoid registering watch listeners redundantly across multiple tasks * fix: correct the import condition for theme script (#2075) * style: add indentation to js code * fix(toc): resume fade up animation in desktop mode (#2085) * refactor: reduce the height of the TOC bottom overlay in desktop mode * fix(build): exclude `purgecss.js` from output files (#2090) * chore(release): 7.2.1 ## [7.2.1](cotes2020/jekyll-theme-chirpy@v7.2.0...v7.2.1) (2024-12-05) ### Bug Fixes * **build:** exclude `purgecss.js` from output files ([#2090](cotes2020/jekyll-theme-chirpy#2090)) ([976e1a1](cotes2020/jekyll-theme-chirpy@976e1a1)) * correct the import condition for theme script ([#2075](cotes2020/jekyll-theme-chirpy#2075)) ([a16aa7d](cotes2020/jekyll-theme-chirpy@a16aa7d)) * ensure pageviews are fetched after DOM is loaded ([#2071](cotes2020/jekyll-theme-chirpy#2071)) ([b4019f3](cotes2020/jekyll-theme-chirpy@b4019f3)) * **toc:** resume fade up animation in desktop mode ([#2085](cotes2020/jekyll-theme-chirpy#2085)) ([8280adb](cotes2020/jekyll-theme-chirpy@8280adb)) * fix: js files in subdirectories are excluded from the site output (#2101) * chore(release): 7.2.2 ## [7.2.2](cotes2020/jekyll-theme-chirpy@v7.2.1...v7.2.2) (2024-12-06) ### Bug Fixes * js files in subdirectories are excluded from the site output ([#2101](cotes2020/jekyll-theme-chirpy#2101)) ([f55cc31](cotes2020/jekyll-theme-chirpy@f55cc31)) * fix: refreshing mermaid theme may fail (#2113) * 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. * fix(ui): slow script loading hides TOC fade-up effect in desktop (#2120) * chore(release): 7.2.3 ## [7.2.3](cotes2020/jekyll-theme-chirpy@v7.2.2...v7.2.3) (2024-12-15) ### Bug Fixes * refreshing mermaid theme may fail ([#2113](cotes2020/jekyll-theme-chirpy#2113)) ([2f00d41](cotes2020/jekyll-theme-chirpy@2f00d41)) * **ui:** gap between TOC entries is inconsistent ([#2119](cotes2020/jekyll-theme-chirpy#2119)) ([1b4e318](cotes2020/jekyll-theme-chirpy@1b4e318)) * **ui:** slow script loading hides TOC fade-up effect in desktop ([#2120](cotes2020/jekyll-theme-chirpy#2120)) ([e0c3faf](cotes2020/jekyll-theme-chirpy@e0c3faf)) * fix: toc not visible when switching from mobile to desktop mode (#2139) * docs: update the setting name for the comments * fix(ui): left borderline of TOC is notched (#2140) * chore(release): 7.2.4 ## [7.2.4](cotes2020/jekyll-theme-chirpy@v7.2.3...v7.2.4) (2024-12-21) ### Bug Fixes * toc not visible when switching from mobile to desktop mode ([#2139](cotes2020/jekyll-theme-chirpy#2139)) ([32051da](cotes2020/jekyll-theme-chirpy@32051da)) * **ui:** left borderline of TOC is notched ([#2140](cotes2020/jekyll-theme-chirpy#2140)) ([8a4d0bc](cotes2020/jekyll-theme-chirpy@8a4d0bc)) --------- Co-authored-by: denis-games <[email protected]> Co-authored-by: Denis Jean <[email protected]> Co-authored-by: Cotes Chung <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Alexander Fuks <[email protected]> Co-authored-by: Bence Boros <[email protected]> Co-authored-by: Supreeth Mysore Venkatesh <[email protected]>
1 parent c824a07 commit d167e94

File tree

101 files changed

+3592
-2998
lines changed

Some content is hidden

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

101 files changed

+3592
-2998
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ name: CD
22

33
on:
44
push:
5-
branches:
6-
- production
7-
tags-ignore:
8-
- "**"
5+
branches: [production]
6+
tags-ignore: ["**"]
97

108
jobs:
119
release:
10+
if: ${{ ! startsWith(github.event.head_commit.message, 'chore(release)') }}
1211
permissions:
1312
contents: write
1413
issues: write

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1-
name: "CI"
1+
name: CI
2+
23
on:
34
push:
45
branches:
5-
- "master"
6-
- "hotfix/**"
6+
- master
7+
- "hotfix/*"
78
paths-ignore:
89
- ".github/**"
910
- "!.github/workflows/ci.yml"
10-
- ".gitignore"
11+
- .gitignore
1112
- "docs/**"
12-
- "README.md"
13-
- "LICENSE"
13+
- README.md
14+
- LICENSE
1415
pull_request:
16+
paths-ignore:
17+
- ".github/**"
18+
- "!.github/workflows/ci.yml"
19+
- .gitignore
20+
- "docs/**"
21+
- README.md
22+
- LICENSE
1523

1624
jobs:
1725
build:

.github/workflows/commitlint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Lint Commit Messages
2-
on: pull_request
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "hotfix/*"
8+
pull_request:
39

410
jobs:
511
commitlint:

.github/workflows/pr-filter.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PR Filter
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
check-template:
9+
if: github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v4
17+
18+
- name: Check PR Content
19+
id: intercept
20+
uses: actions/github-script@v7
21+
with:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
script: |
24+
const script = require('.github/workflows/scripts/pr-filter.js');
25+
await script({ github, context, core });

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
required: true
1111
BUILDER:
1212
required: true
13+
workflow_dispatch:
1314

1415
jobs:
1516
launch:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
function hasTypes(markdown) {
2+
return /## Type of change/.test(markdown) && /-\s\[x\]/i.test(markdown);
3+
}
4+
5+
function hasDescription(markdown) {
6+
return (
7+
/## Description/.test(markdown) &&
8+
!/## Description\s*\n\s*(##|\s*$)/.test(markdown)
9+
);
10+
}
11+
12+
module.exports = async ({ github, context, core }) => {
13+
const pr = context.payload.pull_request;
14+
const body = pr.body === null ? '' : pr.body;
15+
const markdown = body.replace(/<!--[\s\S]*?-->/g, '');
16+
const action = context.payload.action;
17+
18+
const isValid =
19+
markdown !== '' && hasTypes(markdown) && hasDescription(markdown);
20+
21+
if (!isValid) {
22+
await github.rest.pulls.update({
23+
...context.repo,
24+
pull_number: pr.number,
25+
state: 'closed'
26+
});
27+
28+
await github.rest.issues.createComment({
29+
...context.repo,
30+
issue_number: pr.number,
31+
body: `Oops, it seems you've ${action} an invalid pull request. No worries, we'll close it for you.`
32+
});
33+
34+
core.setFailed('PR content does not meet template requirements.');
35+
}
36+
};

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
pull-requests: write
1010

1111
env:
12-
STALE_LABEL: stale
12+
STALE_LABEL: inactive
1313
EXEMPT_LABELS: "pending,planning,in progress"
1414
MESSAGE: >
1515
This conversation has been automatically marked as stale because it has not had recent activity.

.github/workflows/style-lint.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ package-lock.json
2323
!.vscode/tasks.json
2424

2525
# Misc
26-
# _sass/dist
27-
# assets/js/dist
26+
_sass/vendors
27+
assets/js/dist

.stylelintrc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"ignoreFiles": ["_sass/vendors/**"],
3+
"extends": "stylelint-config-standard-scss",
4+
"rules": {
5+
"no-descending-specificity": null,
6+
"shorthand-property-no-redundant-values": null,
7+
"at-rule-no-vendor-prefix": null,
8+
"property-no-vendor-prefix": null,
9+
"selector-no-vendor-prefix": null,
10+
"value-no-vendor-prefix": null,
11+
"color-function-notation": "legacy",
12+
"alpha-value-notation": "number",
13+
"selector-not-notation": "simple",
14+
"color-hex-length": "long",
15+
"declaration-block-single-line-max-declarations": 3,
16+
"scss/operator-no-newline-after": null,
17+
"rule-empty-line-before": [
18+
"always",
19+
{
20+
"ignore": ["after-comment", "first-nested"]
21+
}
22+
],
23+
"value-keyword-case": [
24+
"lower",
25+
{
26+
"ignoreProperties": ["/^\\$/"]
27+
}
28+
],
29+
"media-feature-range-notation": "prefix"
30+
}
31+
}

0 commit comments

Comments
 (0)