Google Season of Docs 2021 Final Blog - Tutorials

本文记录了两位开发者参与Google Season of Docs期间,对Wechaty教程文档的改进,包括添加交互式代码沙箱和详细步骤,使新手能轻松搭建多种IM机器人。他们完成了40个Pull Request,涵盖基础到进阶教程,提升了文档结构和易用性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

We have been a part of Google Season of Docs 2021 for creating and improving the Wechaty documentation, specifically the Tutorials section. It was an amazing journey of 17 weeks (roughly 4 months) contributing to the Wechaty documentation, during which we got an opportunity to try out and learn a lot about the Wechaty bots. When we initially started contributing to the Docs, we didn’t have any idea about how Wechaty bots can be created that runs on various instant messaging (IM) systems like WhatsApp and Wechat. But gradually we became comfortable with building the bots and started building the documentation.

A brief introduction about us is available below.

Souvik Biswas

I am Souvik Biswas, currently pursuing a B.Tech degree in Computer Science and Engineering from IIIT Kalyani in India. I am a freelance technical writer of Codemagic and LogRocket Blog, and a passionate mobile app developer. You can also find some of my articles on Medium, and explore my projects on GitHub.

Shwetal Soni

I am Shwetal Soni, currently pursuing B.Tech in Computer Science and Engineering from NIT Hamirpur in India. I am interested in UI/UX Design, Frontend web development and recently I’m also exploring the field of Technical Writing. Recently I have only written one technical blog on writing smart contracts on Tezos Blockchain. You can check it out here Medium. You can also find my projects on Github.

Final Video Presentation

Abstract

Our main goal was to improve the Wechaty Tutorials documentation and make it easier to follow for beginner users of Wechaty. We have added step by step guide for building each Wechaty bot from scratch and added interactive CodeSandboxes using which users can try out the bot directly from within the documentation page.

Here’s a brief overview of our tasks:

  • Refactor the overall Tutorials documentation
  • Add / improve the step-by-step instructions
  • Add interactive CodeSandbox
  • Screenshots / GIF of the bot running on a device
  • Add various bots building tutorials to Examples
  • Create a video tutorial

Earlier the tutorial pages lacked a proper structure, so it might not be easy to follow and build a bot for a user to is new to Wechaty. So, we have introduced a structure that is followed on every documentation page, more information about it is below.

Structure of tutorial pages

This is an overview of the final structure for each of the tutorial pages that we have followed so that all the tutorials are consistent and easy to follow for any user.

  • Introduction: Highlights the goal of the tutorial.
  • Try out the bot: Contains the CodeSandbox of the bot along with an editable link.
  • Requirements: List of the required tools in order to follow the tutorial.
  • Getting started: Covers the installation step of the required tools and how users can try out the bot locally by cloning its GitHub repo.
  • Building the bot: The main section where we include the step by step guide
  • Running the bot: Contains commands for running the bot on the user’s system
  • Bot demonstration: Describes the commands that can be used within the bot along with some screenshots/GIFs if required.
  • Conclusion & References: Any links that the users can check out for knowing more about a particular concept related to the bot.

Project Goals

We managed to complete all the GSoD tasks as per our initial proposal. In 17 weeks, we have done a total of 40 pull requests which consist of 33 weekly PRs (addition or improvement of documentation pages that we had included in our initial proposal), and 7 miscellaneous PRs (fixes that we have done to some of the pages).

We have also created a video tutorial for building the most basic Wechaty bot, called the Ding Dong Bot, from scratch.

You can take a look at our contributions by going to the respective links present in this section.

You can find all PRs done by us in the links below:

Here’s a complete list of all the contributions that we have done during the GSoD season:

WeekPull RequestsTechnical Writer
1Add instructions and interactive sandbox for Vorpal #779Souvik Biswas
1Update the Vorpal demo screenshot #780Souvik Biswas
1Improve Vorpal docs #791Souvik Biswas
1Improve and update Vorpal bot steps #882Souvik Biswas
1Runnning Locally (Ding Dong bot) #888Shwetal Soni
2Getting Started Overview #935Shwetal Soni
2Tutorials Overview #934Shwetal Soni
2Add installation page under tutorials #905Souvik Biswas
3Add Google Cloud Shell tutorial #922Souvik Biswas
3Running Ding Dong bot on gitpod #923Shwetal Soni
5Update Wechaty Plugin Overview page under Tutorials #957Souvik Biswas
5Add tutorial for EventLogger plugin #963Souvik Biswas
6Add tutorial for QR code terminal plugin #969Shwetal Soni
6Add tutorial for Heartbeat plugin #985Souvik Biswas
7Using Redux with wechaty overview #989Shwetal Soni
8Add Redux: Ducks proposal style docs #1126Souvik Biswas
9Add Starter Bot under Examples: Basic #1076Souvik Biswas
9Improve the Contact Bot page #1099Souvik Biswas
9Updated ding dong bot under examples #1103Shwetal Soni
9Updated World's Shortest Chatbot under examples #1104Shwetal Soni
10Created tutorial for room-bot #1131Shwetal Soni
10Tutorial for examples/advanced/busy-bot #1134Shwetal Soni
10Update the Friend bot page #1138Souvik Biswas
11Add tutorial for Media File Bot #1155Souvik Biswas
12Tutorial for using vanilla redux with wechaty #1165Shwetal Soni
12Add tutorial for Ctrl C Signal Bot #1204Souvik Biswas
13Tutorial for Tuling123 Bot #1207Shwetal Soni
16Add video demo of ding ding bot #1249Souvik Biswas
16Add missing badges to Event Logger plugin page #1250Souvik Biswas
16Add missing badges to Heartbeat plugin page #1251Souvik Biswas
16Updated links in tutorials overview page and removed empty pages from examples section #1254Shwetal Soni
16Added missing badges to QR code terminal plugin #1253Shwetal Soni
16Update order of language display #1252Shwetal Soni

Conclusion

The current version of Wechaty documentation consists of a lot of easy-to-follow tutorials for building Wechaty bots from scratch. Users will find relevant links to all the resources required for building the bot by themselves and can also run some of the bots directly on the documentation page inside the CodeSandboxes that we have included.

Thanks to all the mentors (Huan & Rui) and volunteers (Rohitesh & Simin) for helping us during the documentation period and making our GSoD 2021 season successful.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值