Skip to content

Commit

Permalink
website: Update Website.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 3, 2021
1 parent ce90274 commit ec372a3
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 17 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on:
push:
branches:
- master
tags:
- v*

jobs:
build-deploy:
runs-on: ubuntu-18.04
Expand All @@ -27,9 +26,8 @@ jobs:
- run: yarn run doc

- run: npm i markdown-to-html-cli -g
- name: markdown-to-html
working-directory: packages/core
run: markdown-to-html --output docs/index.html
- run: markdown-to-html -s packages/core/README.md --output packages/core/docs/index.html
- run: markdown-to-html -s README-zh.md --output packages/core/docs/index.zh.html

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
45 changes: 34 additions & 11 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
<h2><p align="center"><b>Mocker API</b></p></h2>

[![](https://img.shields.io/github/issues/jaywcjlove/mocker-api.svg)](https://github.com/jaywcjlove/mocker-api/issues)
[![](https://img.shields.io/github/forks/jaywcjlove/mocker-api.svg)](https://github.com/jaywcjlove/mocker-api/network)
[![](https://img.shields.io/github/stars/jaywcjlove/mocker-api.svg)](https://github.com/jaywcjlove/mocker-api/stargazers)
[![](https://img.shields.io/github/release/jaywcjlove/mocker-api)](https://github.com/jaywcjlove/mocker-api/releases)
[![NPM version](https://img.shields.io/npm/v/mocker-api.svg)](https://www.npmjs.com/package/mocker-api)
[![Build and Deploy](https://github.com/jaywcjlove/mocker-api/workflows/Build%20and%20Deploy/badge.svg)](https://github.com/jaywcjlove/mocker-api/actions)


[English](./README.md) · [快速开始](#快速开始) · [使用](#使用) · [参数设置](#参数设置) · [延迟响应](#延迟响应) · [实例](#实例) · [License](#license)
<p align="center">
<a href="https://uiwjs.github.io/npm-unpkg/#/pkg/mocker-api/file/README.md">
<img alt="Mocker API LOGO" src="https://user-images.githubusercontent.com/1680273/105883915-5845a780-6042-11eb-8eee-614ba512a74a.png">
</a>
</p>

<p align="center">
<a href="https://github.com/jaywcjlove/mocker-api/actions">
<img alt="Build & Deploy" src="https://github.com/jaywcjlove/mocker-api/workflows/Build%20and%20Deploy/badge.svg">
</a>
<a href="https://www.npmjs.com/package/mocker-api">
<img alt="Download" src="https://img.shields.io/npm/dm/mocker-api.svg?style=flat">
</a>
<a href="https://uiwjs.github.io/npm-unpkg/#/pkg/mocker-api/file/README.md">
<img src="https://img.shields.io/badge/Open%20in-unpkg-blue" alt="Open in unpkg">
</a>
<a href="https://gitee.com/jaywcjlove/mocker-api">
<img alt="Release" src="https://jaywcjlove.github.io/sb/ico/gitee.svg">
</a>
<a href="https://www.npmjs.com/package/mocker-api">
<img alt="npm version" src="https://img.shields.io/npm/v/mocker-api.svg">
</a>
</p>

<p align="center">
<a href="README.md">English</a> ·
<a href="#快速开始">快速开始</a> ·
<a href="#使用">使用</a> ·
<a href="#参数设置">参数设置</a> ·
<a href="#延迟响应">延迟响应</a> ·
<a href="#实例">实例</a> ·
<a href="#license">License</a> ·
<a href="https://jaywcjlove.github.io/mocker-api/type/" target="__blank">Type</a>
</p>

`mocker-api` 为 REST API 创建模拟。 当您尝试在没有实际 REST API 服务器的情况下测试应用程序时,这将很有帮助。

Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
"jest": {},
"license": "MIT",
"author": "Kenny Wong <wowohoo@qq.com>",
"markdown-to-html": {
"reurls": {
"README-zh.md": "index.zh.html",
"README.md": "index.html"
}
},
"devDependencies": {
"tsbb": "3.3.7",
"typescript": "4.4.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</p>

<p align="center">
<a href="https://github.com/jaywcjlove/mocker-api/blob/master/README-zh.md">中文</a> ·
<a href="README-zh.md">中文</a> ·
<a href="#quick-start">Quick Start</a> ·
<a href="#usage">Usage</a> ·
<a href="#options">Options</a> ·
Expand Down

0 comments on commit ec372a3

Please sign in to comment.