Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1034 commits
Select commit Hold shift + click to select a range
259d0de
Merge branch 'feature/improve-audits'
cotes2020 Dec 7, 2021
09742d4
Prevent the anchor of the heading from being awakened early
cotes2020 Dec 8, 2021
df81012
Always close the top bar when smooth scrolling
cotes2020 Dec 8, 2021
d919f83
Show heading anchor on touch devices
cotes2020 Dec 9, 2021
5ca0966
Merge branch 'feature/improve-heading-ux'
cotes2020 Dec 10, 2021
09e8eb4
Make the preview image full screen width on mobile
cotes2020 Dec 10, 2021
f4b2dfe
Fix the conversion of image width/height abbreviation
cotes2020 Dec 11, 2021
3a4316b
Merge branch 'feature/fix-img-param-abbr'
cotes2020 Dec 12, 2021
c02c9c6
Decouple theme-mode toggle & mermaid
cotes2020 Dec 12, 2021
ebb3dc9
Merge branch 'feature/refactor-theme-mode-switch'
cotes2020 Dec 12, 2021
7517652
Prepare for multiple comment systems
cotes2020 Dec 10, 2021
d315bf5
Integrate utterances comments
cotes2020 Dec 11, 2021
a403ffe
Reduce style class for page layout
cotes2020 Dec 13, 2021
d47ec03
Add Korean locales (#467)
mirusu400 Dec 26, 2021
3342abc
Refactor the `page` layout
cotes2020 Dec 13, 2021
f7ec9cd
Bug Fix: Link in a heading is rendered as an anchor and becomes invis…
ternbusty Dec 30, 2021
e466a64
Merge branch 'feature/multi-comments'
cotes2020 Dec 30, 2021
1fe0b29
Add new variable `img_path` for posts
cotes2020 Dec 14, 2021
ef2aa52
Add intro for `img_path`
cotes2020 Dec 14, 2021
c8fd0d7
Clean up the JS log when the post is scrolled(mobile views)
cotes2020 Dec 30, 2021
fc71289
Bypass Jekyll build on the `gh-pages` branch
cotes2020 Dec 30, 2021
9e2a4fc
Merge branch 'feature/simplify-html-struct'
cotes2020 Dec 30, 2021
37344ef
Merge branch 'feature/post-img-path'
cotes2020 Dec 30, 2021
ecf31ff
Fix the code style of SASS
cotes2020 Dec 30, 2021
4360e29
Avoid Disqus jitter
cotes2020 Dec 31, 2021
b85cb39
Replace the demo website URL with a permalink
cotes2020 Jan 2, 2022
cad62fe
Beautify the style of `<kbd>` (resolve #471)
cotes2020 Jan 2, 2022
ee7266f
Update mockup image
cotes2020 Jan 2, 2022
adaefc0
Update docs
cotes2020 Jan 2, 2022
bec9246
Fix preview image brightness in dark mode
cotes2020 Jan 2, 2022
2406ce1
Merge branch 'feature/docs'
cotes2020 Jan 2, 2022
aeb2d57
Bump version to 5.0.0
cotes2020 Jan 2, 2022
b91b671
Update the tutorial on comments and image attributes
cotes2020 Jan 3, 2022
65a38c8
Simplify the README
cotes2020 Jan 3, 2022
44acea2
Add content to the contributing guidelines
cotes2020 Jan 3, 2022
7337fa5
Merge branch 'feature/docs'
cotes2020 Jan 3, 2022
948356d
Fix `<img>` HTML element refactoring issue (resolve #476, close #477)
cotes2020 Jan 4, 2022
b44bf78
Improve the creation of header anchors (fix #474)
cotes2020 Jan 4, 2022
22e2367
Bump version to 5.0.1
cotes2020 Jan 4, 2022
57a7609
Merge branch 'hotfix/5.0.1'
cotes2020 Jan 4, 2022
4dd0c6d
improve english locales for recently updated posts
joshjohanning Jan 4, 2022
b0815b5
Enable smooth scrolling for layout `page`
cotes2020 Jan 5, 2022
e7b377c
Prevent the top bar from covering the heading when scrolling down (in…
cotes2020 Jan 5, 2022
97ae2bf
Update ReadMe
cotes2020 Jan 7, 2022
837d077
Avoid preview-image delaying the switching of the top bar title (mobi…
cotes2020 Jan 6, 2022
f2a2792
Fix responsive design of search hints
cotes2020 Jan 6, 2022
67bd667
Update travis: deploy only when tagging
cotes2020 Jan 7, 2022
2d02a64
Bump version to 5.0.2
cotes2020 Jan 7, 2022
dbf86a2
Merge branch 'hotfix/5.0.2'
cotes2020 Jan 7, 2022
9620edd
Simplify the top-bar title detect process
cotes2020 Jan 5, 2022
2cef631
Hide topbar when mobile orientation in landscape mode (resolve #459)
cotes2020 Jan 9, 2022
22c12a4
Merge branch 'feature/improve-topabar-ux-on-mobile'
cotes2020 Jan 9, 2022
96e7cd7
Avoid whitespace before anchors when wrapping
cotes2020 Jan 12, 2022
f8f4dd8
Normalized attribute name in HTML
cotes2020 Jan 12, 2022
a6c73e8
Avoid image caption shifting on load
cotes2020 Jan 12, 2022
4a2016a
Don't include Google Analytics scripts without analytics id (#482)
Tamschi Jan 14, 2022
b8c3ea2
Added Burmese translation and locales (#483)
brootware Jan 15, 2022
1a93d5e
Added russian and ukrainian translation and locales (#485)
Periecle Jan 15, 2022
640bde9
Fix tutorial on writing posts
cotes2020 Jan 8, 2022
1b379e3
Improve chapter levels of guide
cotes2020 Jan 11, 2022
7788a14
Update prerequisites in tutorial (resolve #484)
cotes2020 Jan 15, 2022
323a888
Update docs in real time
cotes2020 Jan 18, 2022
0890147
Merge branch 'feature/docs'
cotes2020 Jan 18, 2022
166c05b
Update the telegram share URL of the post (#490)
brootware Jan 18, 2022
031e878
Travis: using the `minimal` environment when updating starter
cotes2020 Jan 19, 2022
4845f6e
Fix attribute name of share URL button
cotes2020 Jan 19, 2022
ca18142
Add blockquote prompts (resolve #489)
cotes2020 Jan 21, 2022
f043123
Introduce the prompts in docs
cotes2020 Jan 21, 2022
7b0e9a6
Merge branch 'feature/prompt-blockquote'
cotes2020 Jan 22, 2022
756465d
Add `filepath` style for code
cotes2020 Jan 22, 2022
c344926
Show the `filepath` style in docs
cotes2020 Jan 22, 2022
3d81846
Merge branch 'feature/filepath-code'
cotes2020 Jan 22, 2022
c3b2151
Simplify the wiki
cotes2020 Jan 22, 2022
66e655f
Escape the post sharing URL (fix #496)
cotes2020 Jan 22, 2022
a24545e
Prevent relative time conversion failure on Safari
cotes2020 Jan 24, 2022
a5d38e7
Improve local datetime display
cotes2020 Jan 26, 2022
fc36f8b
Improve the color of prompts
cotes2020 Jan 26, 2022
55fd119
Fix hover color for links at the tail of posts
cotes2020 Jan 27, 2022
85fe258
Migrate the images from jsDelivr CDN to GitHub
cotes2020 Jan 28, 2022
7a39251
Remove unused include from layouts
cotes2020 Feb 2, 2022
2c5e67f
Improve the SW cache list
cotes2020 Feb 2, 2022
cfe9029
Remove unused HTML attribute from sidebar
cotes2020 Feb 2, 2022
b272588
Clear references to deleted folder `docs`
cotes2020 Feb 3, 2022
3db6de0
Update project description
cotes2020 Feb 3, 2022
51688cc
Correct the branches that triggers `gh-action`
cotes2020 Feb 3, 2022
3685685
Make the source of the static assets configurable
cotes2020 Feb 9, 2022
dc42b6f
Add assets submodule
cotes2020 Feb 9, 2022
70e089c
Add introduction to new features
cotes2020 Feb 9, 2022
09f1ded
Merge branch 'feature/configurable-assets-cdn'
cotes2020 Feb 9, 2022
4df4f7f
Add Giscus comments support (resolve #501)
cotes2020 Feb 11, 2022
0f6b170
Use constants to define resources for `utterances`
cotes2020 Feb 11, 2022
2b66ad0
Update readme
cotes2020 Feb 11, 2022
08a993b
Bypass hidden posts in home page pagination (fix #504)
cotes2020 Feb 11, 2022
15cfa84
Add `tip` type prompt
cotes2020 Feb 12, 2022
6c4d0e0
Rename prompt type `note` to `info`
cotes2020 Feb 14, 2022
cfd05d1
Update prompt related docs
cotes2020 Feb 12, 2022
5295bbf
Merge branch 'feature/expand-prompt'
cotes2020 Feb 14, 2022
5753118
Keep the original image shadow of the theme
cotes2020 Feb 12, 2022
e52dc95
Beautify heading style (margin, anchor)
cotes2020 Feb 13, 2022
35e013f
Adapt the search input to Bootstrap 4.6
cotes2020 Feb 13, 2022
508d3c5
Update docs
cotes2020 Feb 14, 2022
4986db1
Improve SCSS comment symbols: change `//` to `/* */`
cotes2020 Feb 14, 2022
5f31fbc
Enhance versioning tools
cotes2020 Feb 14, 2022
3969b28
Bump version to 5.1.0
cotes2020 Feb 14, 2022
004ab6c
build(deps): add `commitlint`, `husky`, and `standard-version`
cotes2020 Mar 1, 2022
dd264e7
ci(gh-actions): add `commitlint` for PR
cotes2020 Mar 1, 2022
171463d
Add Vietnamese locale (#517)
HigherOrderLogic Mar 1, 2022
42fe8f5
build(shell): update release tool to work with `standard-version`
cotes2020 Mar 1, 2022
887859d
docs: update contributing guidelines
cotes2020 Mar 1, 2022
7fef3fa
Merge branch 'feature/auto-versioning'
cotes2020 Mar 2, 2022
5d85ccb
fix: table bypass refactoring when it contains IAL (#519)
cotes2020 Mar 3, 2022
2103191
fix: script code should be in head or body, not in between
ZakKemble Mar 3, 2022
4c1c8d8
fix: correctly URL encode share links
ZakKemble Mar 3, 2022
d2bbcb7
Merge pull request #520 from ZakKemble/fix-script-location-and-url-en…
cotes2020 Mar 3, 2022
dd9d5a7
fix: use `jsonify` to generate valid json (#521)
ZakKemble Mar 3, 2022
00ad357
ci: update matrix environment
cotes2020 Mar 4, 2022
5a57561
build: update required ruby version & docs uri
cotes2020 Mar 4, 2022
5607a17
Merge branch 'feature/update-deps'
cotes2020 Mar 4, 2022
c2c503f
feat: add pt-BR support to locales
paulovitorweb Mar 7, 2022
c572389
docs: update bug report template
cotes2020 Mar 12, 2022
f0a2e2f
chore(gh-actions): resume the trigger branch
cotes2020 Mar 12, 2022
da05d39
build(npm): use the global `commitlint` & `husky`
cotes2020 Mar 13, 2022
b58cab1
docs: update contributing guidelines
cotes2020 Mar 13, 2022
03e4f57
build(npm, shell): use the global `standard-version`
cotes2020 Mar 13, 2022
a60a456
Merge branch 'feature/global-npm-bin'
cotes2020 Mar 13, 2022
b8d1bcd
fix: resume the preview image SEO tag (#529)
cotes2020 Mar 16, 2022
9cefe58
fix: when the `site.img_cdn` is set to the local path, the preview-im…
cotes2020 Mar 16, 2022
67d51d5
docs: update preview image's font-matter
cotes2020 Mar 16, 2022
96a16c8
fix: correct the `twitter:creator` of Twitter summary card
cotes2020 Mar 16, 2022
f581b43
docs: update posts for author info
cotes2020 Mar 16, 2022
3e64400
Merge branch 'fix/seo-tag'
cotes2020 Mar 16, 2022
efe75ad
feat: add es-ES support to locales (#533)
camartinezbu Mar 16, 2022
e681080
style: add indentation
cotes2020 Mar 17, 2022
0542b51
fix: remove whitespace from avatar URL (#537)
cotes2020 Mar 22, 2022
58928db
fix: alt is not a valid attribute for 'a' tag
ZakKemble Mar 27, 2022
0740b85
build(deps): disables the rule `body-max-line-length`
cotes2020 Apr 2, 2022
6ca6636
build(git-ignore): add missing item
cotes2020 Apr 2, 2022
156c02a
Merge branch 'feature/commitlint-config'
cotes2020 Apr 2, 2022
5402523
fix: force checkout of `gh-pages` branch (#544)
GriceTurrble Apr 2, 2022
30787fc
fix: horizontal scroll for long equations (#545)
Jayitha Apr 2, 2022
6900d9f
fix: follow paginate_path config for pagination
ZakKemble Mar 27, 2022
4f590e2
fix: p is not allowed in span
ZakKemble Mar 27, 2022
59e9557
fix: spurious header closing tags
ZakKemble Apr 14, 2022
138c537
Merge pull request #541 from ZakKemble/fix-various
cotes2020 Apr 14, 2022
42c44a8
refactor: simplify travis config
cotes2020 Apr 17, 2022
6d35f5f
perf: avoid the layout shift for post datetime
cotes2020 Apr 25, 2022
135a16f
perf: avoid post pageviews from shifting while loading
cotes2020 Apr 25, 2022
2bd6efa
feat: support showing description of preview image
cotes2020 Apr 25, 2022
097bb23
docs: add description for preview image
cotes2020 Apr 25, 2022
b7ad538
Merge branch 'feature/improve-post-meta'
cotes2020 Apr 25, 2022
94e8144
feat: add fr-FR support to locales (#582)
Renardjojo May 24, 2022
12f1e6f
refactor(tags): avoid URL errors caused by improper `site.baseurl` se…
cotes2020 May 24, 2022
91308ae
refactor: decouple the `Archives` from `404` page (#576)
cotes2020 May 24, 2022
76a1b6a
fix(theme mode): `SCSS` syntax error (#588)
cotes2020 May 29, 2022
54124d5
fix: assets URL is missing `baseurl` in self-hosted mode (#591)
Jun 2, 2022
d127183
feat(PWA): add Service Worker update notification
cotes2020 Jun 4, 2022
106c981
feat: add option to turn off PWA (#527)
cotes2020 Jun 4, 2022
ac1731d
Merge branch 'feature/enhance-pwa'
cotes2020 Jun 4, 2022
20caace
fix(PWA): avoid repeated notification of SW update
cotes2020 Jun 8, 2022
5d6e8c5
perf: improve the responsive design for ultrawide screens (#540)
cotes2020 Jun 8, 2022
cc6398c
docs: fix typo in English locale file (#594)
GenericMadScientist Jun 8, 2022
35cadf9
perf(categories): support singular and plural forms of locale (#595)
cotes2020 Jun 7, 2022
fd0f983
chore: optimize the layout of main content and search input
cotes2020 Jun 8, 2022
7f18cdc
build: fix the `preview` mode for release tool
cotes2020 Jun 9, 2022
baad801
chore(release): 5.2.0
cotes2020 Jun 9, 2022
4c45f37
Merge branch 'master' into production
cotes2020 Jun 9, 2022
96af729
fix(PWA): sometimes update notification is not triggered
cotes2020 Jun 9, 2022
971fe03
fix: exclude CHANGELOG from output
cotes2020 Jun 10, 2022
b032977
feat(i18n): add Hungarian locale file (#597, #598)
borosbence Jun 10, 2022
856ef11
chore(release): 5.2.1
cotes2020 Jun 17, 2022
232927c
Merge branch 'hotfix/5.2.1'
cotes2020 Jun 17, 2022
2fed338
feat(i18n): add Bulgarian support (#612)
MrEddX Jun 18, 2022
378b65a
fix: the `code` doesn’t wrap inside the prompt (#626)
cotes2020 Jul 1, 2022
5eb329f
chore: center align preview image caption (#633)
cotes2020 Jul 2, 2022
20b7fe3
docs: adding a note about preview images and `v5.2.0` (#632)
joshjohanning Jul 2, 2022
ad137fa
feat(i18n): add Turkish language (#631)
Jul 2, 2022
3fa1bf3
fix: code contains spaces in headings (#644)
NichtsHsu Jul 23, 2022
22d4275
refactor: optimize the layout of archive timeline
cotes2020 Aug 3, 2022
d792a2f
chore: improve responsive design of archive entries
cotes2020 Aug 8, 2022
b405a58
refactor: make sure there is space at the bottom of core block
cotes2020 Aug 8, 2022
940b281
feat(i18n): add German locale file (#663)
danhaid99 Aug 13, 2022
b78a2d8
docs: fix a typo of the tutorial (#676)
MartinP7r Sep 7, 2022
43323ab
chore(ci, cd): build and deploy via _gh-actions_ directly
Aug 13, 2022
21c8c2b
docs: switch the reference of `deploy.sh` to `test.sh`
Aug 13, 2022
e993ac8
docs: update deployment notes
Aug 13, 2022
45c58d8
Merge pull request #664 from GriceTurrble/patch-1
cotes2020 Sep 7, 2022
0dcd39d
fix: add missing color to linkedin icon for share list (#683)
nshidqi Sep 7, 2022
4023be9
chore: simplify the release tool
cotes2020 Sep 9, 2022
163c576
docs: update deployment tutorial
cotes2020 Sep 10, 2022
f35b147
docs: update URL on readme
cotes2020 Sep 10, 2022
b288587
fix: correct spelling of `panel` (#686)
sorindex Sep 12, 2022
f1d9e99
feat: add multiple authors to a post (#677)
MichaelTan9999 Sep 13, 2022
0c5b697
fix: correct the i18n for tab titles
cotes2020 Sep 20, 2022
e55ebad
docs: add PV feature deprecation note
cotes2020 Sep 23, 2022
3878815
chore(release): 5.3.0
cotes2020 Sep 23, 2022
8bcdd87
chore(docs, cd): correct workflow name in tutorial
cotes2020 Sep 24, 2022
49bb93c
perf(layout): improve the min-height of main content (#674)
cotes2020 Sep 28, 2022
3ffd19d
refactor: rename color variable
cotes2020 Sep 29, 2022
827f84c
chore: move CN funding to GitHub
cotes2020 Sep 30, 2022
fec5214
chore: reduce files from gem package
cotes2020 Oct 1, 2022
39da11e
perf: optimize the extra padding in lists (#703)
joshjohanning Oct 5, 2022
d2fb98b
perf(posts): improve core block bottom padding
cotes2020 Oct 5, 2022
80cb0b3
fix(tools): multiple configuration files will fail the test
cotes2020 Oct 6, 2022
76712c0
chore(travis): enable the cache in `production` build
cotes2020 Oct 7, 2022
5511b28
fix: 404 page missing title in tablet/desktop view
cotes2020 Oct 7, 2022
fb13e32
fix: prompt content overflows horizontally (#705)
cotes2020 Oct 7, 2022
304d75c
chore(deps): upgrade Mermaid to 9.x
cotes2020 Oct 7, 2022
eac3f9b
perf(typography): optimize the line height of post content
cotes2020 Oct 8, 2022
1082d04
refactor: improve prompt box layout
cotes2020 Oct 8, 2022
65f722f
docs: update typography demo post
cotes2020 Oct 9, 2022
fd5df7e
refactor(typo): optimize the site-title position
cotes2020 Oct 11, 2022
3432413
refactor(mobile): resume footer slide animation & content min-height
cotes2020 Oct 13, 2022
70662a0
chore(giscus): add `reactions-enabled` option (#712)
ruzickap Oct 14, 2022
d9d7848
style(linter): fix linter issues
ruzickap Oct 14, 2022
916fbf4
build(gulp): append new line at end of JS files
cotes2020 Oct 15, 2022
81b9f7a
Merge pull request #713 from ruzickap/fix-linter-issues
cotes2020 Oct 15, 2022
f904e8c
refactor(locale): restore options for changing date format (#716)
cotes2020 Oct 18, 2022
6852ceb
refactor: remove site config option `prefer_datetime_locale`
cotes2020 Oct 18, 2022
d96fa5a
refactor: reduce language include file
cotes2020 Oct 18, 2022
5de6f17
Merge branch 'feature/improve-locale-datetime'
cotes2020 Oct 18, 2022
294e298
build(npm): add stylelint
cotes2020 Oct 19, 2022
a6ce765
style: improve SCSS style
cotes2020 Oct 19, 2022
e7dee2a
refactor: update vendor prefix in SCSS
cotes2020 Oct 21, 2022
3c44a1f
chore: correct spelling of example (#718)
Svenskithesource Oct 21, 2022
b6a1a41
style(js): fix code style in JS
cotes2020 Oct 21, 2022
1c330f4
chore(gh-actions): add style-lint on CI
cotes2020 Oct 21, 2022
647eea8
perf: truncate post content for search results
cotes2020 Oct 21, 2022
e48d66e
docs: update CI badge
cotes2020 Oct 22, 2022
1fd665b
perf: modify checkbox icon with `Liquid`
cotes2020 Oct 24, 2022
339293d
style: 4 space indents to the JS files
cotes2020 Oct 25, 2022
df8185f
build: add `skip-versioning` option for release tool
cotes2020 Oct 25, 2022
e107a2e
chore(release): 5.3.1
cotes2020 Oct 25, 2022
8134209
chore: optimize list indentation (#727)
NichtsHsu Nov 4, 2022
6774e0e
fix: restore full-text search (#741)
cotes2020 Nov 4, 2022
48f14e3
fix: `mermaid` occasionally fails to initialize (#536)
cotes2020 Nov 4, 2022
ae2669f
docs: restore some tutorial content (#721)
cotes2020 Nov 12, 2022
f6e9a3f
fix: the image URL in the SEO-related tags is incomplete (#754)
cotes2020 Nov 16, 2022
da7d7e2
refactor: enhance the setting of preview image path
cotes2020 Nov 18, 2022
782a930
docs: update tutorial for defining preview image
cotes2020 Nov 18, 2022
b3de722
chore: migrate resource URLs
cotes2020 Nov 21, 2022
e50343b
refactor(tools): reduce release steps
cotes2020 Nov 22, 2022
b0d5956
fix(comment): disqus doesn't follow theme mode switching
cotes2020 Nov 22, 2022
773d3b1
chore(icons): upgrade FontAwesome to v6.x
cotes2020 Nov 22, 2022
4e7bf00
chore: optimize the heading levels in change-log
cotes2020 Nov 22, 2022
fe2a3cd
chore(release): 5.3.2
cotes2020 Nov 22, 2022
b5145ca
Fixed merge conflicts from v5.3.2
mattpopovich Nov 28, 2022
6a13077
Corrected author name throughout all posts
mattpopovich Dec 7, 2022
81fdee2
Added all the options to the header of posts
mattpopovich Dec 10, 2022
8ea0e80
Cotes moved these files into assets/, see a9acaa669d152e11016022629a9…
mattpopovich Dec 10, 2022
2c1463a
Some files did not get fully updated when I brought in cotes's change…
mattpopovich Dec 10, 2022
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
8 changes: 8 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rules": {
"body-max-line-length": [
0,
"always"
]
}
}
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ root = true

[*]
charset = utf-8
# 2 space indentation
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true


[*.js]
indent_size = 4
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.h
For answers to common questions about this code of conduct, see
<https://www.contributor-covenant.org/faq>

[homepage]: https://www.contributor-covenant.org
[homepage]: https://www.contributor-covenant.org
62 changes: 56 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,66 @@
# How to Contribute

I want to thank you for sparing a time to improve this project! Here are some guidelines for contributing:
We'd like to thank you for sparing time to improve this project! Here are some guidelines for contributing:

To ensure that the blog design is not confused, this project does not accept suggestions for design changes, such as color scheme, fonts, typography, etc. If your request is about an enhancement, it is recommended to first submit a [`Feature Request`](https://github.com/cotes2020/jekyll-theme-chirpy/issues/new?labels=enhancement&template=feature_request.md) issue to discuss whether your idea fits the project.
To ensure that the blog design is not confused, this project does not accept suggestions for design changes, such as color scheme, fonts, typography, etc. If your request is about an enhancement, it is recommended to first submit a [_Feature Request_](https://github.com/cotes2020/jekyll-theme-chirpy/issues/new?labels=enhancement&template=feature_request.md) issue to discuss whether your idea fits the project.

## Basic Process

Generally, contribute to the project by:

1. Fork this project on GitHub and clone it locally.
2. Create a new branch from `master` and give it a descriptive name (e.g., `my-new-feature`, `fix-a-bug`).
3. After completing the development, commit and push to remote.
4. Submit a new pull request.
2. Create a new branch from the default branch and give it a descriptive name (format: `feature/<add-new-feat>` / `fix/<fix-a-bug>`).
3. After completing the development, submit a new _Pull Request_. Note that the commit message must follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), otherwise it will fail the PR check.

## Modifying JavaScript

If your contribution involves JavaScript modification, please read the following sections.

### Inline Scripts

If you need to add comments to the inline JavaScript (the code between the HTML tags `<script>` and `</script>`), please use `/* */` instead of two slashes `//`. Because the HTML will be compressed by [jekyll-compress-html](https://github.com/penibelst/jekyll-compress-html) during deployment, but it cannot handle the `//` properly, which will disrupt the structure of the compressed HTML.

### External Scripts

If you need to add/change/delete the JavaScript in the directory `_javascript/`, setting up [`Node.js`](https://nodejs.org/) and [`npx`](https://www.npmjs.com/package/npx) is a requirement. And then install the development dependencies:

```console
$ npm i
```

During JavaScript development, real-time debugging can be performed through the following commands:

Firstly, start a Jekyll server:

```console
$ bash tools/run.sh
```

And then open a new terminal tab and run:

```console
# Type 'Ctrl + C' to stop
$ npx gulp dev
```

After debugging, run the command `npx gulp` (without any argument) will automatically output the compressed files to the directory `assets/js/dist/`.

## Verify the commit messages

If you want to make sure your commits pass the CI check, you can refer to the following steps.

Install `commitlint` & `husky`:

```console
$ npm i -g @commitlint/{cli,config-conventional} husky
```

And then enable `husky`:

```console
$ husky install
```

---

:tada: Your volunteering will make the open source world more beautiful, thanks again! :tada:
:tada: Your volunteering will make the open-source world more beautiful, thanks again! :tada:
5 changes: 2 additions & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
custom:
- https://www.buymeacoffee.com/coteschung
- https://cotes.gitee.io/alipay-wechat-donation
ko_fi: coteschung
custom: https://sponsor.cotes.page
29 changes: 19 additions & 10 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ about: Create a report to help us improve
<!-- NOTE: Please maintain all sections, otherwise the issue will be automatically closed :) -->

## Checklist
<!-- Please complete the following list of tasks, and then check it by change the "[ ]" to "[x]" -->
- [ ] I have read the [tutorials](https://chirpy.cotes.info/categories/tutorial/) and know the correct effect of the functional design.
- [ ] There are no similar reports on existing issues (including closed ones).
- [ ] I found the bug on the latest code of `master` branch.

<!-- Please complete the following list of tasks, and then check it by changing the "[ ]" to "[x]" -->

- [ ] I have read the [tutorials](https://cotes2020.github.io/chirpy-demo/categories/tutorial/) and know the correct effect of the functional design.
- [ ] There are no similar reports on [existing issues](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue) (including closed ones).
- [ ] I found the bug on the latest code of the `master` branch.

## Describe the bug

<!-- A clear and concise description of what the bug is. -->

### To Reproduce
Expand All @@ -25,19 +28,25 @@ Steps to reproduce the behavior:
-->

### Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

### Screenshots

<!-- If applicable, add screenshots to help explain your problem. -->

### Software
<!-- Please complete the following information -->
- Ruby version: <!-- by running: `ruby -v` -->
- Gem version: <!-- by running: `gem -v`-->
- Bundler version: <!-- by running: `bundle -v`-->
- Jekyll version: <!-- by running: `bundle list | grep " jekyll "` -->
### Environment

| Command | Version |
|-----------------------------------|---------|
| `ruby -v` | |
| `gem -v` | |
| `bundle -v` | |
| `bundle exec jekyll -v` | |
| `bundle info jekyll-theme-chirpy` | |

### Desktop

<!-- If necessary, uncomment and fill in the following list:
- OS: [e.g. macOS 10.15.6]
- Browser: [e.g. Chrome 85.0.4183.83 (64-bit)]
Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ labels: enhancement
<!-- NOTE: Please maintain all sections, otherwise the issue will be automatically closed :) -->

## Checklist
<!-- Please complete the following list of tasks, and then check it by change the "[ ]" to "[x]" -->

<!-- Please complete the following list of tasks, and then check it by changing the "[ ]" to "[x]" -->
- [ ] I have read the [contributing guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/CONTRIBUTING.md).
- [ ] There are no similar request on existing issues (including closed ones).
- [ ] There is no similar request on [existing issues](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue) (including closed ones).
- [ ] I have read the [project progress](https://github.com/cotes2020/jekyll-theme-chirpy/projects) and know the current progress of the project.
- [ ] I was in the `master` branch of the latest code.

Expand Down
15 changes: 8 additions & 7 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
---
name: Question
about: Ask what ever you want
about: Ask whatever you want
labels: question
---

<!-- NOTE: Please maintain all sections, otherwise the issue will be automatically closed :) -->

## Checklist

<!-- Please complete the following list of tasks, and then check it by change the "[ ]" to "[x]" -->
<!-- Please complete the following list of tasks, and then check it by changing the "[ ]" to "[x]" -->

- [ ] I have read the [tutorials](https://chirpy.cotes.info/categories/tutorial/) and know the correct effect of the functional design.
- [ ] There are no similar question on existing issues (including closed ones).
- [ ] I searched the Internet for related problems, but still couldn't solve it.
- [ ] My question is based on the latest code of `master` branch.
- [ ] I have read the [newlest tutorials](https://cotes2020.github.io/chirpy-demo/categories/tutorial/) and know the correct effect of the functional design.
- [ ] There is no similar question on [existing issues](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue) (including closed ones).
- [ ] I have tried to find the answer on [Jekyll Forum](https://talk.jekyllrb.com/) and [StackOverflow](https://stackoverflow.com/questions/tagged/jekyll).
- [ ] My question is based on the latest code of the `master` branch.

## Description
<!-- Please describe your question in detial. -->

<!-- Please describe your question in detail. -->
26 changes: 12 additions & 14 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## Description

<!--
<!--
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
-->

e.g. Fixes #(issue)
-->

## Type of change

<!--
<!--
Please select the desired item checkbox and change it to "[x]", then delete options that are not relevant.
-->
- [ ] Bug fix (non-breaking change which fixes an issue)
Expand All @@ -18,27 +18,25 @@ Please select the desired item checkbox and change it to "[x]", then delete opti

## How has this been tested

<!--
<!--
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
-->

- [ ] I have run `bash ./tools/test.sh --build` (at the root of the project) locally and passed
- [ ] I have run `bash ./tools/test.sh` (at the root of the project) locally and passed
- [ ] I have tested this feature in the browser

### Test Configuration

- Browerser type & version:
- Browser type & version:
- Operating system:
- Bundler version:
- Ruby version:
- Jekyll version:
- Ruby version: <!-- by running: `ruby -v` -->
- Bundler version: <!-- by running: `bundle -v`-->
- Jekyll version: <!-- by running: `bundle list | grep " jekyll "` -->

### Checklist

<!-- Select checkboxes by change the "[ ]" to "[x]" -->
- [ ] My code follows the [Google style guidelines](https://google.github.io/styleguide/)
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] Any dependent changes have been merged and published in downstream modules
28 changes: 11 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,41 @@
name: 'Continuous Integration'
name: 'CI'
on:
push:
branches-ignore:
- 'production'
- 'release/**'
- 'docs'
tags-ignore:
- '*'
- '**'
paths-ignore:
- '.github/**'
- '!.github/workflows/ci.yml'
- '.travis.yml'
- '.gitignore'
- 'docs/**'
- 'README.md'
- 'LICENSE'
pull_request:
paths:
- '**'

jobs:
ci:
runs-on: ${{ matrix.os }}
build:
runs-on: ubuntu-latest

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
ruby: [2.5, 2.6, 2.7, 3]

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

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

- name: Build Site
env:
JEKYLL_ENV: production
run: |
bundle exec jekyll b

- name: Test Site
run: |
bash tools/test.sh
run: bash tools/test.sh
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint Commit Messages
on: pull_request

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
18 changes: 18 additions & 0 deletions .github/workflows/issue-interceptor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Intercept bad issues

on:
issues:
types: [opened, edited]

jobs:
auto_close_issues:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Auto close issues that did not follow template
uses: lucasbento/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template. Please DO NOT open another similar issue, try to edit the current issue according to the template, then it will be reopened automatically."
closed-issues-label: "🙁 Not following issue template"
Loading