-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from ForensicITGuy/revert-13-revert-12-update-…
…theme Revert "Revert "Update theme""
- Loading branch information
Showing
17 changed files
with
486 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
// Prettier | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
// Shopify Liquid | ||
"files.associations": { | ||
"*.html": "liquid" | ||
}, | ||
"[markdown]": { | ||
"editor.defaultFormatter": "yzhang.markdown-all-in-one" | ||
}, | ||
// Formatter | ||
"[html][liquid]": { | ||
"editor.defaultFormatter": "Shopify.theme-check-vscode" | ||
}, | ||
"[shellscript]": { | ||
"editor.defaultFormatter": "mkhl.shfmt" | ||
}, | ||
// Disable vscode built-in stylelint | ||
"css.validate": false, | ||
"scss.validate": false, | ||
"less.validate": false, | ||
// Stylint extension settings | ||
"stylelint.snippet": ["css", "scss"], | ||
"stylelint.validate": ["css", "scss"], | ||
// Run tasks in macOS | ||
"terminal.integrated.profiles.osx": { | ||
"zsh": { "path": "/bin/zsh", "args": ["-l", "-i"] } | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"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." | ||
} | ||
] | ||
} |
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,46 +1,43 @@ | ||
# Chirpy Starter [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy)](https://rubygems.org/gems/jekyll-theme-chirpy) [![GitHub license](https://img.shields.io/github/license/cotes2020/chirpy-starter.svg?color=blue)][mit] | ||
# Chirpy Starter | ||
|
||
When installing the [**Chirpy**][chirpy] theme through [RubyGems.org][gem], Jekyll can only read files in the folders `_includes`, `_layout`, `_sass` and `assets`, as well as a small part of options of the `_config.yml` file from the theme's gem. If you have ever installed this theme gem, you can use the command `bundle info --path jekyll-theme-chirpy` to locate these files. | ||
[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy)][gem] | ||
[![GitHub license](https://img.shields.io/github/license/cotes2020/chirpy-starter.svg?color=blue)][mit] | ||
|
||
The Jekyll organization claims that this is to leave the ball in the user’s court, but this also results in users not being able to enjoy the out-of-the-box experience when using feature-rich themes. | ||
When installing the [**Chirpy**][chirpy] theme through [RubyGems.org][gem], Jekyll can only read files in the folders | ||
`_data`, `_layouts`, `_includes`, `_sass` and `assets`, as well as a small part of options of the `_config.yml` file | ||
from the theme's gem. If you have ever installed this theme gem, you can use the command | ||
`bundle info --path jekyll-theme-chirpy` to locate these files. | ||
|
||
To fully use all the features of **Chirpy**, you need to copy the other critical files from the theme's gem to your Jekyll site. The following is a list of targets: | ||
The Jekyll team claims that this is to leave the ball in the user’s court, but this also results in users not being | ||
able to enjoy the out-of-the-box experience when using feature-rich themes. | ||
|
||
To fully use all the features of **Chirpy**, you need to copy the other critical files from the theme's gem to your | ||
Jekyll site. The following is a list of targets: | ||
|
||
```shell | ||
. | ||
├── _config.yml | ||
├── _data | ||
├── _plugins | ||
├── _tabs | ||
└── index.html | ||
``` | ||
|
||
In order to save your time, and to prevent you from missing some files when copying, we extract those files/configurations of the latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes. | ||
|
||
## Prerequisites | ||
|
||
Follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll` and `Bundler`. | ||
|
||
## Installation | ||
|
||
[**Use this template**][use-template] to generate a brand new repository and name it `<GH_USERNAME>.github.io`, where `GH_USERNAME` represents your GitHub username. | ||
To save you time, and also in case you lose some files while copying, we extract those files/configurations of the | ||
latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes. | ||
|
||
Then clone it to your local machine and run: | ||
## Usage | ||
|
||
``` | ||
$ bundle | ||
``` | ||
Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki). | ||
|
||
## Usage | ||
## Contributing | ||
|
||
Please see the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy#documentation). | ||
This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback. | ||
|
||
## License | ||
|
||
This work is published under [MIT][mit] License. | ||
|
||
[gem]: https://rubygems.org/gems/jekyll-theme-chirpy | ||
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/ | ||
[use-template]: https://github.com/cotes2020/chirpy-starter/generate | ||
[CD]: https://en.wikipedia.org/wiki/Continuous_deployment | ||
[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE |
Oops, something went wrong.