https://wechaty.js.org 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.
- Fork this repository. If you don't know what is meant by forking a repository, read about it here
- Clone the forked repository to your local machine. If you don't know how to do that, this article explains it well
- Make sure your forked repository is in sync with the main repository. If you don't know how to sync a forked repository,read about it in this article
- We prefer using gitHub flow. Therefore start by creating a branch for your blog using the command
git checkout -b name-of-blog-branch
. Give the branch a meaningful name - Create a markdown file in jekyll/_posts folder. The file name should follow the format
YYYY-MM-DD-your-blog-slug.md
. For example2016-12-03-welcome-to-wechaty.md
- Write your blog in markdown in the file you created in the previous step. If you are not familiar with markdown syntax, you can learn it here
- Add related images to jekyll/assets folder under
$YEAR/$MONTH-your-blog-slug/
directory - Add your info into
jekyll/_contributors/your_github_id.md
- Commit your changes using the command
git commit -am "YOUR_BLOG_TITLE"
.YOUR_BLOG_TITLE
is the title of your blog - Push you branch to github using the command
git push origin name-of-blog-branch
. - Create new Pull Request(PR)
- Sign the CLA
- Wait for the continuous integration workflow run to finish. If it is failing, fix whatever is making it to fail so that CI turns green
- Wait for @wechaty/editors to review your PR
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...>
- You should keep all filenames and URLs as lowercase. Use
-
character between words instead of space when creating a new file or directory. e.g.2017-10-06-wechat-pc-impactor
instead of2017-10-06-WeChat PC Impactor
. No Chinese should be used in any filename. - Find a good image for the blog to make it more beautiful.
- You should embed photos and videos before publishing, save all external files to the
/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 locahost, 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
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:
- Wechaty Contributor Dinner
- The memorabilia of The First Chatie WWDC Party
- Shanghai WWDC - Wechaty Worldwide Developers Conference
- Wechaty Contributor Dinner with Data Girls
- Wechaty Country Wide Developer Conference
- .....
- Fork this repository
- Create your documentation branch:
git checkout -b branch-name
- Make changes to the documentation in markdown
- Commit your changes using the command
git commit -am 'commit message'
- Push your changes to gitHub
- Create new Pull Request
- Migrating from gitbook to docsify.js
- Integrating GitBook with JSDoc to Document Your Open Source Project
- Markdown Linting Rules Documents
To get to know all our writers, see https://github.com/wechaty/wechaty.js.org/graphs/contributors
- @lijiarui, Rui LI, Microsoft AI MVP, Founder & CEO of Juzi.BOT (YC W19 Alumni)
- @huan, Huan LI, Tencent TVP of Chatbot, <[email protected]>
- @wj-Mcat, Jingjing WU, Author of Python Wechaty
- Code & Docs © 2016-now Wechaty Contributors https://github.com/wechaty
- Code released under the Apache-2.0 License
- Docs released under Creative Commons