📝 add examples

This commit is contained in:
yanyongyu
2022-01-07 18:38:04 +08:00
parent 6b2d8d2674
commit 0a10a3c18b
13 changed files with 167 additions and 36 deletions

View File

@ -0,0 +1,20 @@
---
sidebar_position: 6
description: 简单插件示例
---
import CodeBlock from "@theme/CodeBlock";
# 插件示例
## 命令式问答示例
import WeatherSource from "!!raw-loader!../../../../tests/examples/weather.py";
<CodeBlock className="language-python">{WeatherSource}</CodeBlock>
### 测试示例
import WeatherTest from "!!raw-loader!../../../../tests/test_examples/test_weather.py";
<CodeBlock className="language-python">{WeatherTest}</CodeBlock>