Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating to chirpy 5.6.0 #2

Merged
merged 23 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
968c13e
chore(deps): upgrade NPM packages
cotes2020 Mar 4, 2023
002f025
chore: update code style config
cotes2020 Mar 6, 2023
b69d3d7
refactor(build): modularize JS code
cotes2020 Mar 13, 2023
60229ae
chore(ci,tools): adapt to changes in JS builds
cotes2020 Mar 13, 2023
016399a
Merge branch 'feature/esm'
cotes2020 Mar 15, 2023
474b4ba
chore: update configure-pages action (#931)
joshjohanning Mar 15, 2023
02b7bd5
feat: change TOC plugin to `tocbot` (#774)
cotes2020 Mar 15, 2023
3c7934a
style: improve code style of SCSS & YAML
cotes2020 Mar 15, 2023
820ba62
fix: notch status bar doesn't match theme color (#918)
cotes2020 Mar 16, 2023
d96b881
refactor: remove version number from self host config
cotes2020 Mar 16, 2023
e8e4901
fix: some console snippets will be incompletely copied
cotes2020 Mar 16, 2023
111b828
style: fix scss lint issue
cotes2020 Mar 17, 2023
b85f633
feat(ux): turn home page posts into clickable cards (#895)
cotes2020 Mar 17, 2023
3cd81e7
chore: recover accidentally deleted LQIP style
cotes2020 Mar 17, 2023
471e8c4
chore(tools): resume git checkout in initialization
cotes2020 Mar 17, 2023
388efb1
chore(tools): add JS dist to gem release
cotes2020 Mar 17, 2023
6e6b647
docs: migrate upgrade details to the wiki
cotes2020 Mar 17, 2023
0d9cec6
chore(release): 5.6.0
cotes2020 Mar 17, 2023
3163f5b
wip
nabin-nath Mar 21, 2023
6fec411
fix: mode-toggle leads to Disqus loading failure (#945)
v4vong Mar 22, 2023
2531849
search fix
nabin-nath Mar 29, 2023
91cb2a4
master pull
nabin-nath Mar 29, 2023
3e74db6
wip
nabin-nath Mar 29, 2023
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
5 changes: 5 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://github.com/browserslist/browserslist#browserslistrc

last 2 versions
> 0.2%
not dead
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true

[*.js]
indent_size = 4
[*.{js,css,scss}]
quote_type = single

[*.{yml,yaml}]
quote_type = double

[*.md]
trim_trailing_whitespace = false
26 changes: 16 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: 'CI'
name: "CI"
on:
push:
branches-ignore:
- 'production'
- 'docs'
- "production"
- "docs"
paths-ignore:
- '.github/**'
- '!.github/workflows/ci.yml'
- '.gitignore'
- 'README.md'
- 'LICENSE'
- ".github/**"
- "!.github/workflows/ci.yml"
- ".gitignore"
- "README.md"
- "LICENSE"
pull_request:
paths:
- '**'
- "**"

jobs:
build:
Expand All @@ -26,13 +26,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # for posts's lastmod
fetch-depth: 0 # for posts's lastmod

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@v3

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

- name: Test Site
run: bash tools/test
40 changes: 20 additions & 20 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: 'CodeQL'
name: "CodeQL"

on:
push:
paths: [ '**.js' ]
paths: ["**.js"]
pull_request:
paths: [ '**.js' ]
paths: ["**.js"]
schedule:
- cron: '0 0 * * 5'
- cron: "0 0 * * 5"

jobs:
analyze:
Expand All @@ -20,25 +20,25 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ["javascript"]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: '${{ matrix.language }}'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "${{ matrix.language }}"

# 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@v2
# 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@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{ matrix.language }}'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
2 changes: 1 addition & 1 deletion .github/workflows/deploy-using-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Setup Pages
id: pages
uses: actions/configure-pages@v1
uses: actions/configure-pages@v3

- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/style-lint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: 'Style Lint'
name: "Style Lint"

on:
push:
branches-ignore:
- 'production'
- 'docs'
- "production"
- "docs"
paths:
- '_sass/**/*.scss'
- "_sass/**/*.scss"
pull_request:
paths:
- '_sass/**/*.scss'
- "_sass/**/*.scss"

jobs:
stylelint:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ _site
# RubyGems
*.gem

# npm dependencies
# NPM dependencies
node_modules
package-lock.json

# IDE configurations
.idea
.vscode

# Misc
assets/js/dist
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "none"
}
7 changes: 6 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"alpha-value-notation": "number",
"selector-not-notation": "simple",
"color-hex-length": "long",
"declaration-block-single-line-max-declarations": 3
"declaration-block-single-line-max-declarations": 3,
"scss/operator-no-newline-after": null,
"rule-empty-line-before": [
"always",
{ "ignore": ["after-comment", "first-nested", "inside-block"] }
]
}
}
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [5.6.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v5.5.2...v5.6.0) (2023-03-17)


### Features

* change TOC plugin to `tocbot` ([#774](https://github.com/cotes2020/jekyll-theme-chirpy/issues/774)) ([02b7bd5](https://github.com/cotes2020/jekyll-theme-chirpy/commit/02b7bd5095a2affe5b4c5ed7b5b182baaf642ff3))
* **i18n:** add Greek Language Support. ([#903](https://github.com/cotes2020/jekyll-theme-chirpy/issues/903)) ([712a9b2](https://github.com/cotes2020/jekyll-theme-chirpy/commit/712a9b22401ce591cf4c0bb03fbdd1693fee30bb))
* **ux:** turn home page posts into clickable cards ([#895](https://github.com/cotes2020/jekyll-theme-chirpy/issues/895)) ([b85f633](https://github.com/cotes2020/jekyll-theme-chirpy/commit/b85f6330dea666350631c4461b742cdb54c5f052))


### Bug Fixes

* css selector string escaping vulnerability ([#888](https://github.com/cotes2020/jekyll-theme-chirpy/issues/888)) ([5c6ec9d](https://github.com/cotes2020/jekyll-theme-chirpy/commit/5c6ec9d06b6571e2c0efe6652078442dca8af477))
* mathematics cannot scroll horizontally ([#760](https://github.com/cotes2020/jekyll-theme-chirpy/issues/760)) ([4681df7](https://github.com/cotes2020/jekyll-theme-chirpy/commit/4681df715118a37ae1e91b588de0adb67f4e331a))
* notch status bar doesn't match theme color ([#918](https://github.com/cotes2020/jekyll-theme-chirpy/issues/918)) ([820ba62](https://github.com/cotes2020/jekyll-theme-chirpy/commit/820ba62e9e939090523a7077d01d01bd78ec84eb))
* some console snippets will be incompletely copied ([e8e4901](https://github.com/cotes2020/jekyll-theme-chirpy/commit/e8e4901e340dd7e5fc5f656dd3c7bcd6c97b886a))

## [5.5.2](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v5.5.1...v5.5.2) (2023-01-30)


Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ img_cdn: ""
# the avatar on sidebar, support local or CORS resources
avatar: "/assets/img/postsImages/nabin-nath.jpeg"

# boolean type, the global switch for ToC in posts.
# boolean type, the global switch for TOC in posts.
toc: true

comments:
Expand Down Expand Up @@ -184,7 +184,7 @@ exclude:
- README.md
- CHANGELOG.md
- LICENSE
- gulpfile.js
- rollup.config.js
- node_modules
- package*.json

Expand Down
6 changes: 3 additions & 3 deletions _data/assets/cross_origin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ bootstrap:
css: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css
js: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js

bootstrap-toc:
css: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.css
js: https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@1.0.1/dist/bootstrap-toc.min.js
toc:
css: https://cdn.jsdelivr.net/npm/tocbot@4.20.1/dist/tocbot.min.css
js: https://cdn.jsdelivr.net/npm/tocbot@4.20.1/dist/tocbot.min.js

fontawesome:
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.1/css/all.min.css
Expand Down
38 changes: 19 additions & 19 deletions _data/assets/self_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,47 @@ webfonts: /assets/lib/fonts/main.css
# Libraries

jquery:
js: /assets/lib/jquery-3.6.0/jquery.min.js
js: /assets/lib/jquery/jquery.min.js

bootstrap:
css: /assets/lib/bootstrap-4.6.1/bootstrap.min.css
js: /assets/lib/bootstrap-4.6.1/bootstrap.bundle.min.js
css: /assets/lib/bootstrap/bootstrap.min.css
js: /assets/lib/bootstrap/bootstrap.bundle.min.js

bootstrap-toc:
css: /assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.css
js: /assets/lib/bootstrap-toc-1.0.1/bootstrap-toc.min.js
toc:
css: /assets/lib/tocbot/tocbot.min.css
js: /assets/lib/tocbot/tocbot.min.js

fontawesome:
css: /assets/lib/fontawesome-free-6.2.1/css/all.min.css
css: /assets/lib/fontawesome-free/css/all.min.css

search:
js: /assets/lib/simple-jekyll-search-1.10.0/simple-jekyll-search.min.js
js: /assets/lib/simple-jekyll-search/simple-jekyll-search.min.js

mermaid:
js: /assets/lib/mermaid-9.1.7/mermaid.min.js
js: /assets/lib/mermaid/mermaid.min.js

dayjs:
js:
common: /assets/lib/dayjs-1.10.7/dayjs.min.js
locale: /assets/lib/dayjs-1.10.7/locale/en.min.js
relativeTime: /assets/lib/dayjs-1.10.7/plugin/relativeTime.min.js
localizedFormat: /assets/lib/dayjs-1.10.7/plugin/localizedFormat.min.js
common: /assets/lib/dayjs/dayjs.min.js
locale: /assets/lib/dayjs/locale/en.min.js
relativeTime: /assets/lib/dayjs/plugin/relativeTime.min.js
localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.min.js

countup:
js: /assets/lib/countup.js-1.9.3/countUp.min.js
js: /assets/lib/countup.js/countUp.min.js

magnific-popup:
css: /assets/lib/magnific-popup-1.1.0/magnific-popup.css
js: /assets/lib/magnific-popup-1.1.0/jquery.magnific-popup.min.js
css: /assets/lib/magnific-popup/magnific-popup.css
js: /assets/lib/magnific-popup/jquery.magnific-popup.min.js

lazysizes:
js: /assets/lib/lazysizes-5.3.2/lazysizes.min.js
js: /assets/lib/lazysizes/lazysizes.min.js

clipboard:
js: /assets/lib/clipboard-2.0.9/clipboard.min.js
js: /assets/lib/clipboard/clipboard.min.js

polyfill:
js: /assets/lib/polyfill-v3-es6/polyfill.min.js

mathjax:
js: /assets/lib/mathjax-3.2.0/tex-chtml.js
js: /assets/lib/mathjax/tex-chtml.js
11 changes: 5 additions & 6 deletions _data/contact.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# The contact options.

- type: github
icon: 'fab fa-github'
icon: "fab fa-github"

- type: twitter
icon: 'fab fa-twitter'
icon: "fab fa-twitter"

- type: email
icon: 'fas fa-envelope'
noblank: true # open link in current tab
icon: "fas fa-envelope"
noblank: true # open link in current tab

- type: rss
icon: 'fas fa-rss'
icon: "fas fa-rss"
noblank: true

# Uncomment and complete the url below to enable more contact options
#
# - type: mastodon
Expand Down
Loading