/wechaty.js.org

Wechaty Official Website for News, Blogs, Contributor Profiles, and Documentations.

Primary LanguageJavaOtherNOASSERTION

wechaty.js.org

GitHub Pages CI Powered by Wechaty DIVIO documentation system

Wechaty Docusaurus

https://wechaty.js.org is the official Wechaty website for publishing latest news, blog posts, and documentation from our open source community.

How To Post a Blog

To submit a blog post for publication on wechaty.js.org, you can follow the steps below.

  1. Fork this repository. If you don't know what is meant by forking a repository, read about it here
  2. Clone the forked repository to your local machine. If you don't know how to do that, this article explains it well
  3. 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
  4. 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
  5. Create a markdown file in jekyll/_posts folder. The file name should follow the format YYYY-MM-DD-your-blog-slug.md. For example 2016-12-03-welcome-to-wechaty.md
  6. 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
  7. Add related images to jekyll/assets folder under $YEAR/$MONTH-your-blog-slug/ directory
  8. Add your info into jekyll/_contributors/your_github_id.md
  9. Commit your changes using the command git commit -am "YOUR_BLOG_TITLE". YOUR_BLOG_TITLE is the title of your blog
  10. Push you branch to github using the command git push origin name-of-blog-branch.
  11. Create new Pull Request(PR)
  12. Sign the CLA
  13. 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
  14. Wait for @wechaty/editors to review your PR

That's it!

Guidelines For Writing a Blog Post

1. Your blog post should have a Header

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...>

2. Writing Style

  • 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 of 2017-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.

3. Do Not Commit Unrelated Files

Please do not commit unrelated files. It will keep things tidy and make it easier to review your PR.

4. How To Add Videos and PDFs To Your Blog Post

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

How To Run Tests

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

How To Preview Your changes

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.

1. Install Jekyll by Hand

Run Jekyll at localhost to preview your blog post by running the commands below.

make install
cd jekyll
make serve

2. Preview the Blog

You can view the blog by navigating to http://127.0.0.1:4000/blog/ in your browser

How To Make Other Contributions

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.

Why contribute?

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:

How To Contribute To the Documentation

  • 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

Resources

Writers

contributor contributor contributor contributor contributor contributor contributor contributor

To get to know all our writers, see https://github.com/wechaty/wechaty.js.org/graphs/contributors

Maintainers

  1. @lijiarui, Rui LI, Microsoft AI MVP, Founder & CEO of Juzi.BOT (YC W19 Alumni)
  2. @huan, Huan LI, Tencent TVP of Chatbot, <zixia@zixia.net>
  3. @wj-Mcat, Jingjing WU, Author of Python Wechaty

And wechaty/contributors

Copyright & License

  • Code & Docs © 2016-now Wechaty Contributors https://github.com/wechaty
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons