-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
74 changed files
with
533 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit ${1} | ||
npx --no -- commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
{ | ||
"recommendations": [ | ||
// Liquid tags auto-complete | ||
"killalau.vscode-liquid-snippets", | ||
// Liquid syntax highlighting and formatting | ||
"Shopify.theme-check-vscode", | ||
// Common formatter | ||
"esbenp.prettier-vscode", | ||
"foxundermoon.shell-format", | ||
"stylelint.vscode-stylelint", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
"recommendations": ["ms-vscode-remote.remote-containers"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Run Jekyll Server", | ||
"type": "shell", | ||
"command": "./tools/run.sh", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"detail": "Runs the Jekyll server with live reload." | ||
}, | ||
{ | ||
"label": "Build Jekyll Site", | ||
"type": "shell", | ||
"command": "./tools/test.sh", | ||
"group": { | ||
"kind": "build" | ||
}, | ||
"problemMatcher": [], | ||
"detail": "Build the Jekyll site for production." | ||
}, | ||
{ | ||
"label": "Build JS (watch)", | ||
"type": "shell", | ||
"command": "npm run watch:js", | ||
"group": { | ||
"kind": "build" | ||
}, | ||
"problemMatcher": [], | ||
"detail": "Build JS files in watch mode." | ||
}, | ||
{ | ||
"label": "Build CSS", | ||
"type": "shell", | ||
"command": "npm run build:css", | ||
"group": { | ||
"kind": "build" | ||
}, | ||
"problemMatcher": [], | ||
"detail": "Build CSS files." | ||
}, | ||
{ | ||
"label": "Build JS & CSS", | ||
"type": "shell", | ||
"command": "npm run build", | ||
"group": { | ||
"kind": "build" | ||
}, | ||
"problemMatcher": [], | ||
"detail": "Build JS & CSS for production." | ||
}, | ||
{ | ||
"label": "Run Jekyll Server + Build JS (watch)", | ||
"dependsOn": ["Run Jekyll Server", "Build JS (watch)"], | ||
"group": { | ||
"kind": "build" | ||
}, | ||
"detail": "Runs both the Jekyll server with live reload and build JS files in watch mode." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,20 +16,20 @@ timezone: Asia/Shanghai | |
|
||
title: Chirpy # the main title | ||
|
||
tagline: A text-focused Jekyll theme # it will display as the sub-title | ||
tagline: A text-focused Jekyll theme # it will display as the subtitle | ||
|
||
description: >- # used by seo meta and the atom feed | ||
A minimal, responsive and feature-rich Jekyll theme for technical writing. | ||
# Fill in the protocol & hostname for your site. | ||
# e.g. 'https://username.github.io', note that it does not end with a '/'. | ||
# E.g. 'https://username.github.io', note that it does not end with a '/'. | ||
url: "" | ||
|
||
github: | ||
username: github_username # change to your github username | ||
username: github_username # change to your GitHub username | ||
|
||
twitter: | ||
username: twitter_username # change to your twitter username | ||
username: twitter_username # change to your Twitter username | ||
|
||
social: | ||
# Change to your full name. | ||
|
@@ -38,8 +38,8 @@ social: | |
email: [email protected] # change to your email address | ||
links: | ||
# The first element serves as the copyright owner's link | ||
- https://twitter.com/username # change to your twitter homepage | ||
- https://github.com/username # change to your github homepage | ||
- https://twitter.com/username # change to your Twitter homepage | ||
- https://github.com/username # change to your GitHub homepage | ||
# Uncomment below to add more social links | ||
# - https://www.facebook.com/username | ||
# - https://www.linkedin.com/in/username | ||
|
@@ -70,8 +70,10 @@ analytics: | |
domain: # fill in your Matomo domain | ||
cloudflare: | ||
id: # fill in your Cloudflare Web Analytics token | ||
fathom: | ||
id: # fill in your Fathom Site ID | ||
|
||
# Pageviews settings | ||
# Page views settings | ||
pageviews: | ||
provider: # now only supports 'goatcounter' | ||
|
||
|
@@ -83,8 +85,8 @@ pageviews: | |
# | ||
# Available options: | ||
# | ||
# light - Use the light color scheme | ||
# dark - Use the dark color scheme | ||
# light — Use the light color scheme | ||
# dark — Use the dark color scheme | ||
# | ||
theme_mode: # [light | dark] | ||
|
||
|
@@ -106,7 +108,7 @@ social_preview_image: # string, local or CORS resources | |
toc: true | ||
|
||
comments: | ||
# Global switch for the post comment system. Keeping it empty means disabled. | ||
# Global switch for the post-comment system. Keeping it empty means disabled. | ||
provider: # [disqus | utterances | giscus] | ||
# The provider options are as follows: | ||
disqus: | ||
|
@@ -136,9 +138,9 @@ assets: | |
env: # [development | production] | ||
|
||
pwa: | ||
enabled: true # the option for PWA feature (installable) | ||
enabled: true # The option for PWA feature (installable) | ||
cache: | ||
enabled: true # the option for PWA offline cache | ||
enabled: true # The option for PWA offline cache | ||
# Paths defined here will be excluded from the PWA cache. | ||
# Usually its value is the `baseurl` of another website that | ||
# shares the same domain name as the current website. | ||
|
@@ -190,10 +192,6 @@ defaults: | |
values: | ||
layout: page | ||
permalink: /:title/ | ||
- scope: | ||
path: assets/js/dist | ||
values: | ||
swcache: true | ||
|
||
sass: | ||
style: compressed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.