Repository for the Wechaty Organization Website, a resource for the Wechaty Organization. It is the official Wechaty website for publishing latest news, blog posts, and documentation from our open source community.
To submit a blog post for publication on wechaty.js.org, you can follow the steps below.
git checkout -b name-of-blog-branch
. Give the branch a meaningful nameYYYY-MM-DD-your-blog-slug.md
. For example 2016-12-03-welcome-to-wechaty.md
$YEAR/$MONTH-your-blog-slug/
directoryjekyll/_contributors/your_github_id.md
git commit -am "YOUR_BLOG_TITLE"
. YOUR_BLOG_TITLE
is the title of your bloggit push origin name-of-blog-branch
.That's it!
The header of your blog post should have a title, author and image.
This is illustrated in the example below:
---
title: "'Score Your Face Photo' a ML&Wechaty practice"
author: your_github_username
image: your_teaser_image_path
---
<One line abstract for your blog post>
<Your beautiful blog post contents...>
-
character between words instead of space when creating a new file or directory. e.g. 2017-10-06-wechat-pc-impactor
instead of 2017-10-06-WeChat PC Impactor
. No Chinese should be used in any filename./jekyll/assets/${YEAR}/$MONTH-your-blog-slug/
directory.Please do not commit unrelated files. It will keep things tidy and make it easier to review your PR.
You can add videos and PDFs to your blog post by using the syntax below.
Example of how to add video or pdf
{% include iframe.html src="https://www.youtube.com/watch?v=3eq8wJfCAWs" %}
or
{% include iframe.html src="/assets/2020/qijibot/final.pdf" %}
You can read more at: Add iframe to wechaty blog
In order to make sure your changes have not broken anything, you can run the following commands before pushing your changes to gitHub.
npm install
npm test
If you want to preview your blog post or changes on localhost, you need to have Jekyll installed in your machine. You can follow the jekyll quickstart instructions to install jekyll.
Run Jekyll at localhost to preview your blog post by running the commands below.
make install
cd jekyll; make serve # or either run `./scripts/jekyll-serve.sh` for a fresh new start by cleaning cache
You can view the blog by navigating to http://127.0.0.1:4000/blog/ in your browser
If you are not interested in writing a blog post but would still love to make a contribution, you are still welcome. We are delighted to have you around.
As an open source product, Wechaty thrives from contributions of community members. Whatever your skill set is, there is a lot you can do to help us make Wechaty better! So start forking!
At the same time, we also meet up offline all over the world. Here are some activities you are invited to join if you are interested:
git clone "https://github.com/wechaty/wechaty.js.org"
cd wechaty.js.org
npm install
npm run docusaurus:build
npm run docusaurus:serve
http://localhost:3000
git checkout -b branch-name
git add .
git commit -m 'commit message'
git push origin branch-name
To get to know all our writers, see https://github.com/wechaty/wechaty.js.org/graphs/contributors
Split repo from one to two: Jekyll (this one) and Docusaurus. See: Issue wechaty/wechaty.js.org#1
Rename wechaty to chatie
Init version