forked from wechaty/jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
777 additions
and
0 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,19 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
trim_trailing_whitespace = false | ||
|
||
# 4 tab indentation | ||
[Makefile] | ||
indent_style = tab | ||
indent_size = 4 |
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,8 @@ | ||
|
||
const rules = { | ||
} | ||
|
||
module.exports = { | ||
extends: '@chatie', | ||
rules, | ||
} |
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,17 @@ | ||
{ | ||
"rules": { | ||
"docs/_posts": [ | ||
"^docs/_posts/", | ||
"/[0-9\\-a-z]+\\.", | ||
"\\.md$" | ||
], | ||
"docs/assets": [ | ||
"^docs/assets/", | ||
"/[0-9\\-a-z]+\\.", | ||
"\\.(jpg|png|gif)$" | ||
] | ||
}, | ||
"ignore": [ | ||
"tests/fixtures/" | ||
] | ||
} |
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,23 @@ | ||
{ | ||
"default": true, | ||
"no-trailing-punctuation": { | ||
"punctuation": ".,;:!" | ||
}, | ||
"MD013": false, | ||
"MD033": { | ||
"allowed_elements": [ | ||
"cite", | ||
"code", | ||
"dl", | ||
"dt", | ||
"dd", | ||
"script", | ||
"var" | ||
] | ||
}, | ||
"first-line-h1": false, | ||
"no-hard-tabs": true, | ||
"no-trailing-spaces": { | ||
"br_spaces": 2 | ||
} | ||
} |
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,13 @@ | ||
language: node_js | ||
node_js: | ||
- 12 | ||
|
||
os: | ||
- linux | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
script: | ||
- npm test |
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,73 @@ | ||
{ | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
|
||
"editor.fontFamily": "'Fira Code iScript', Consolas, 'Courier New', monospace", | ||
"editor.fontLigatures": true, | ||
|
||
"editor.tokenColorCustomizations": { | ||
"textMateRules": [ | ||
{ | ||
"scope": [ | ||
//following will be in italics (=Pacifico) | ||
"comment", | ||
// "entity.name.type.class", //class names | ||
"keyword", //import, export, return… | ||
"support.class.builtin.js", //String, Number, Boolean…, this, super | ||
"storage.modifier", //static keyword | ||
"storage.type.class.js", //class keyword | ||
"storage.type.function.js", // function keyword | ||
"storage.type.js", // Variable declarations | ||
"keyword.control.import.js", // Imports | ||
"keyword.control.from.js", // From-Keyword | ||
"entity.name.type.js", // new … Expression | ||
"keyword.control.flow.js", // await | ||
"keyword.control.conditional.js", // if | ||
"keyword.control.loop.js", // for | ||
"keyword.operator.new.js", // new | ||
], | ||
"settings": { | ||
"fontStyle": "italic", | ||
}, | ||
}, | ||
{ | ||
"scope": [ | ||
//following will be excluded from italics (My theme (Monokai dark) has some defaults I don't want to be in italics) | ||
"invalid", | ||
"keyword.operator", | ||
"constant.numeric.css", | ||
"keyword.other.unit.px.css", | ||
"constant.numeric.decimal.js", | ||
"constant.numeric.json", | ||
"entity.name.type.class.js" | ||
], | ||
"settings": { | ||
"fontStyle": "", | ||
}, | ||
} | ||
] | ||
}, | ||
|
||
"files.exclude": { | ||
"dist/": true, | ||
"doc/": true, | ||
"node_modules/": true, | ||
"package/": true, | ||
}, | ||
"alignment": { | ||
"operatorPadding": "right", | ||
"indentBase": "firstline", | ||
"surroundSpace": { | ||
"colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative. | ||
"assignment": [1, 1], // The same as above. | ||
"arrow": [1, 1], // The same as above. | ||
"comment": 2, // Special how much space to add between the trailing comment and the code. | ||
// If this value is negative, it means don't align the trailing comment. | ||
} | ||
}, | ||
"editor.formatOnSave": false, | ||
"python.pythonPath": "python3", | ||
"eslint.validate": [ | ||
"javascript", | ||
"typescript", | ||
], | ||
} |
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,25 @@ | ||
# Makefile for awesome-chatboot | ||
# Author: Huan LI <[email protected]> github.com/huan | ||
|
||
.PHONY: all | ||
all: serve | ||
|
||
.PHONY: install | ||
install: | ||
(cd docs && bundle install && bundle update) | ||
|
||
.PHONY: test | ||
test: | ||
npm run test | ||
|
||
.PHONY: code | ||
code: | ||
code . | ||
|
||
.PHONY: serve | ||
serve: | ||
(cd docs && bundle exec jekyll serve --incremental) | ||
|
||
.PHONY: fit-image | ||
fit-image: | ||
./scripts/fit-image.sh docs/assets/ |
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,17 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "github-pages", group: :jekyll_plugins | ||
|
||
gem "tzinfo-data" | ||
gem "wdm", "~> 0.1.0" if Gem.win_platform? | ||
|
||
# If you have any plugins, put them here! | ||
group :jekyll_plugins do | ||
gem "jekyll-paginate" | ||
gem "jekyll-sitemap" | ||
gem "jekyll-gist" | ||
gem "jekyll-feed" | ||
gem "jemoji" | ||
gem "jekyll-include-cache" | ||
gem "jekyll-algolia" | ||
end |
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,135 @@ | ||
# Welcome to Jekyll! | ||
# | ||
# This config file is meant for settings that affect your whole blog, values | ||
# which you are expected to set up once and rarely edit after that. If you find | ||
# yourself editing this file very often, consider using Jekyll's data files | ||
# feature for the data you need to update frequently. | ||
# | ||
# For technical reasons, this file is *NOT* reloaded automatically when you use | ||
# 'bundle exec jekyll serve'. If you change this file, please restart the server process. | ||
|
||
# Site settings | ||
# These are used to personalize your new site. If you look in the HTML files, | ||
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. | ||
# You can create any custom variable you would like, and they will be accessible | ||
# in the templates via {{ site.myvariable }}. | ||
title: Chatie Blog | ||
email: [email protected] | ||
description: >- # this means to ignore newlines until "baseurl:" | ||
Wechaty is a Easy to Use Chatbot FrameWork | ||
which can help you write The World's Smallest Chatbot | ||
in JavaScript | ||
twitter_username: chatieio | ||
github_username: chatie | ||
minimal_mistakes_skin: default | ||
search: true | ||
teaser: /assets/images/bio-photo.png | ||
repository: "chatie/blog" # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes" | ||
|
||
# Build settings | ||
markdown: kramdown | ||
remote_theme: mmistakes/minimal-mistakes | ||
# Outputting | ||
# permalink: /:categories/:title/ | ||
permalink: /:title/ | ||
paginate: 5 # amount of posts to show | ||
paginate_path: /page:num/ | ||
timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | ||
|
||
include: | ||
- _pages | ||
|
||
# Exclude from processing. | ||
# The following items will not be processed, by default. Create a custom list | ||
# to override the default setting. | ||
# exclude: | ||
# - Gemfile | ||
# - Gemfile.lock | ||
# - node_modules | ||
# - vendor/bundle/ | ||
# - vendor/cache/ | ||
# - vendor/gems/ | ||
# - vendor/ruby/ | ||
|
||
# Plugins (previously gems:) | ||
plugins: | ||
- jekyll-paginate | ||
- jekyll-sitemap | ||
- jekyll-gist | ||
- jekyll-feed | ||
- jemoji | ||
- jekyll-include-cache | ||
|
||
author: | ||
name : "Chatie" | ||
avatar : "/assets/images/bio-photo.png" | ||
bio : "Bot is not born, but made." | ||
links: | ||
- label: "Website" | ||
icon: "fas fa-fw fa-link" | ||
url: "https://www.chatie.io" | ||
- label: "Twitter" | ||
icon: "fab fa-fw fa-twitter-square" | ||
url: "https://twitter.com/chatieio" | ||
- label: "GitHub" | ||
icon: "fab fa-fw fa-github" | ||
url: "https://github.com/chatie" | ||
|
||
footer: | ||
links: | ||
- label: "Twitter" | ||
icon: "fab fa-fw fa-twitter-square" | ||
url: "https://twitter.com/chatieio" | ||
- label: "GitHub" | ||
icon: "fab fa-fw fa-github" | ||
url: "https://github.com/chatie" | ||
|
||
defaults: | ||
# _posts | ||
- scope: | ||
path: "" | ||
type: posts | ||
values: | ||
layout: single | ||
author_profile: true | ||
read_time: true | ||
comments: true | ||
share: true | ||
related: true | ||
toc: true | ||
toc_sticky: true | ||
# _pages | ||
- scope: | ||
path: "_pages" | ||
type: pages | ||
values: | ||
layout: single | ||
author_profile: true | ||
|
||
category_archive: | ||
type: liquid | ||
path: /categories/ | ||
tag_archive: | ||
type: liquid | ||
path: /tags/ | ||
|
||
analytics: | ||
provider : "google" # false (default), "google", "google-universal", "custom" | ||
google: | ||
tracking_id : "UA-88739146-1" | ||
anonymize_ip : # true, false (default) | ||
|
||
comments: | ||
provider : "utterances" # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "staticman_v2", "utterances", "custom" | ||
utterances: | ||
theme : "github-light" # "github-dark" | ||
issue_term : "title" | ||
disqus: | ||
shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- | ||
discourse: | ||
server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org | ||
facebook: | ||
# https://developers.facebook.com/docs/plugins/comments | ||
appid : | ||
num_posts : # 5 (default) | ||
colorscheme : # "light" (default), "dark" |
Oops, something went wrong.