Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left Navigation Menu #946

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/contact.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Managing contacts'
title: 'Manage contacts'
---

import Tabs from '@theme/Tabs'
Expand Down
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-in-ding-dong.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy in Ding Dong'
---
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-in-gitter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy in Gitter'
---
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-in-lark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy in Lark'
---
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-in-wechat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy in WeChat'
---
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-in-wecom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy in WeCom'
---
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-in-whatsapp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy in Whatsapp'
---
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-with-docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy with Docker'
---
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/deploy-with-heroku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Deploy with Heroku'
---
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/event.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Listening events'
title: 'Add events and customise a bot'
---

<!-- MDX import -->
Expand Down
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'FAQ'
---
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/file-box.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Processing files'
title: 'Send and receive files'
---

import Tabs from '@theme/Tabs'
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/friendship.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Making friends'
title: 'Send and accept friend requests'
---

import Tabs from '@theme/Tabs'
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/message.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Dealing with message'
title: 'Deal with messages'
---

import Tabs from '@theme/Tabs'
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
slug: /howto/
title: Wechaty How-to guides overview
sidebar_label: 'How-to Guides: Overview'
sidebar_label: 'Overview'
---

<!-- how-to/cookbook - Explains how to accomplish a specific task. -->
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/room.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Managing rooms'
title: 'Manage rooms'
---

import Tabs from '@theme/Tabs'
Expand Down
3 changes: 3 additions & 0 deletions docusaurus/docs/howto/starter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Get started'
---
2 changes: 1 addition & 1 deletion docusaurus/docs/howto/testing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Writing tests'
title: 'Write tests'
---

[![NPM Version](https://badge.fury.io/js/wechaty-puppet-mock.svg)](https://badge.fury.io/js/wechaty-puppet-mock)
Expand Down
53 changes: 44 additions & 9 deletions docusaurus/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,45 @@ const gettingStarted: SubMenuData = {
],
}

const addevents: SubMenuData = {
label: 'Add events to the bot',
items: [
'howto/starter',
'howto/event',
],
}

const addfunctionalities: SubMenuData = {
label: 'Add functionality to the bot',
items: [
'howto/message',
'howto/contact',
'howto/room',
'howto/friendship',
'howto/file-box',
],
}

const deployonim: SubMenuData = {
label: 'Deploy on IM platform',
items: [
'howto/deploy-in-wechat',
'howto/deploy-in-whatsapp',
'howto/deploy-in-wecom',
'howto/deploy-in-gitter',
'howto/deploy-in-lark',
'howto/deploy-in-ding-dong',
],
}

const deploycontainer: SubMenuData = {
label: 'Deploy with containers',
items: [
'howto/deploy-with-heroku',
'howto/deploy-with-docker',
],
}

const community: SubMenuData = {
label: 'Community',
items: [
Expand Down Expand Up @@ -274,15 +313,11 @@ const howtos = {
label: 'How-to Guides',
items: [
'howto/overview',
'howto/install',
'howto/wechaty',
'howto/event',
'howto/message',
'howto/contact',
'howto/room',
'howto/friendship',
'howto/file-box',
'howto/testing',
subMenu(addevents),
subMenu(addfunctionalities),
subMenu(deployonim),
subMenu(deploycontainer),
'howto/faq',
],
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechaty.js.org",
"version": "0.8.295",
"version": "0.8.296",
"description": "Wechaty Official Website for News, Blogs, Contributor Profiles, and Documentations",
"private": true,
"directories": {
Expand Down