docs: fix typos
This commit is contained in:
parent
c09a28bf11
commit
2b7be504d9
|
|
@ -131,7 +131,7 @@ module.exports = {
|
|||
path: '/joinus/new-radar.html',
|
||||
},
|
||||
{
|
||||
title: '💪 Advanced',
|
||||
title: '💪 高级用法',
|
||||
path: '/joinus/advanced-feed.html',
|
||||
collapsable: false,
|
||||
children: [
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ sidebarDepth: 0
|
|||
---
|
||||
# 调试
|
||||
|
||||
当调试代码时,除了使用 `console.log` 或将 node 进程附加到调试器,您还可以将自定义对象提供给 ctx.state.json 来进行调试。
|
||||
当调试代码时,除了使用 `console.log` 或将 node 进程附加到调试器,您还可以将自定义对象提供给 `ctx.state.json` 来进行调试。
|
||||
|
||||
## 使用 `ctx.state.json`
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ sidebarDepth: 2
|
|||
|
||||
# 添加文档
|
||||
|
||||
现在我们完成了代码,是时候为您的路由添加文档了。在 [文档(/docs/)](https://github.com/DIYgod/RSSHub/blob/master/docs/en)中打开相应的文件,本例中是 `docs/programming.md`。您可以通过运行以下命令实时预览文档:
|
||||
现在我们完成了代码,是时候为您的路由添加文档了。在 [文档 (/docs/)](https://github.com/DIYgod/RSSHub/blob/master/docs) 中打开相应的文件,本例中是 `docs/programming.md`。您可以通过运行以下命令实时预览文档:
|
||||
|
||||
<code-group>
|
||||
<code-block title="yarn" active>
|
||||
|
|
|
|||
|
|
@ -65,8 +65,6 @@ sidebarDepth: 2
|
|||
|
||||
## v2 路由规范
|
||||
|
||||
When creating a new route in RSSHub, you need to organize your files in a specific way. Your namespace folder should be stored in the `lib/v2` directory and should include three mandatory files:
|
||||
|
||||
当在 RSSHub 中编写新的路由时,需要按特定方式组织文件。命名空间文件夹应该存储在 `lib/v2` 目录下,并且应包括三个必需文件:
|
||||
|
||||
- `router.js` 注册路由
|
||||
|
|
|
|||
Loading…
Reference in New Issue