Skip to content

Commit

Permalink
Feat/doc add content (#125)
Browse files Browse the repository at this point in the history
* 2.3.13

* feat: doc add content
  • Loading branch information
zivyangll authored Jan 28, 2019
1 parent f11b58c commit f2d2375
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function genSidebarConfig(arr) {
children: [
'configuration',
'schema-syntax',
'swagger',
'with-macaca-test',
'integration',
'experiment'
Expand Down
15 changes: 15 additions & 0 deletions docs/guide/swagger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Import Swagger data


DataHub supports data import in the standard [Swagger](http://editor.swagger.io/) format, including both yaml and json data formats.

## Open the import switch

Open the import and export feature in the DataHub Lab:

![](https://ws1.sinaimg.cn/large/bceaad1fly1fwkm6dmyoij22b21i8gwb.jpg)

## Upload Swagger data

New DataHub hub, and import Swagger file.

13 changes: 13 additions & 0 deletions docs/zh/guide/swagger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Swagger 数据导入

DataHub 支持标准 [Swagger](http://editor.swagger.io/) 格式的数据导入,包括 yaml 和 json 两种数据格式。

## 打开导入功能

在 DataHub 实验室中打开导入导出功能:

![](https://ws1.sinaimg.cn/large/bceaad1fly1fwkm6dmyoij22b21i8gwb.jpg)

## 上传 Swagger 数据

新建 DataHub 仓库,导入 Swagger 文件即可。
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "macaca-datahub",
"version": "2.3.12",
"version": "2.3.13",
"description": "Continuous data provider for development, testing, staging and production.",
"bin": {
"datahub": "./bin/datahub.js",
Expand Down

1 comment on commit f2d2375

@xudafeng
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Please sign in to comment.