diff --git a/README.md b/README.md index a64bab6..7190ff0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![](docs/_media/flashdb.png) -[![Build Status](https://travis-ci.com/armink/FlashDB.svg?branch=master)](https://travis-ci.com/armink/FlashDB) [![license](https://img.shields.io/github/license/armink/FlashDB)](https://raw.githubusercontent.com/armink/FlashDB/master/LICENSE) +[![Build Status](https://travis-ci.com/armink/FlashDB.svg?branch=master)](https://travis-ci.com/armink/FlashDB) [![license](https://img.shields.io/github/license/armink/FlashDB)](https://raw.githubusercontent.com/armink/FlashDB/master/LICENSE) [![docs](https://img.shields.io/badge/docs-perfect-blue)](https://armink.github.io/FlashDB/#/) EN | [中文](README_zh.md) diff --git a/README_zh.md b/README_zh.md index 88c7315..1ded760 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,6 +1,6 @@ ![](docs/_media/flashdb.png) -[![Build Status](https://travis-ci.com/armink/FlashDB.svg?branch=master)](https://travis-ci.com/armink/FlashDB) [![license](https://img.shields.io/github/license/armink/FlashDB)](https://raw.githubusercontent.com/armink/FlashDB/master/LICENSE) +[![Build Status](https://travis-ci.com/armink/FlashDB.svg?branch=master)](https://travis-ci.com/armink/FlashDB) [![license](https://img.shields.io/github/license/armink/FlashDB)](https://raw.githubusercontent.com/armink/FlashDB/master/LICENSE) [![docs](https://img.shields.io/badge/docs-perfect-blue)](http://armink.gitee.io/flashdb/#/zh-cn/ ) [EN](README.md) | 中文 diff --git a/docs/_sidebar.md b/docs/_sidebar.md index becd83a..c126e86 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -5,6 +5,7 @@ - [stm32f405rg](demo-stm32f405rg.md) - [stm32f405rg-spi-flash](demo-stm32f405rg-spi-flash.md) - [esp8266-spi-flash](demo-esp8266-spi-flash.md) + - [linux](demo-linux.md) - [Demo details](demo-details.md) - Samples - KV database diff --git a/docs/demo-linux.md b/docs/demo-linux.md new file mode 100644 index 0000000..3c157f0 --- /dev/null +++ b/docs/demo-linux.md @@ -0,0 +1,19 @@ +# linux demo + +## What + +KVDB and TSDB demo on linux platform + +## How + +### Step1: build + +Run `make` command on terminal. The generated executable program is located in the `out` folder. + +### Step2: run demo + +Switch to the `out` folder. Then run the `./FlashDBLinuxDemo` file multiple times. + +### Step3: check the log + +This demo's log will output to terminal. \ No newline at end of file diff --git a/docs/quick-started.md b/docs/quick-started.md index 05eb99b..06552ef 100644 --- a/docs/quick-started.md +++ b/docs/quick-started.md @@ -39,23 +39,24 @@ The latest code is currently hosted on GitHub. The master branch is the developm ## Choose a demo platform -In the `demos` directory of the project, the following hardware demonstration platforms are currently provided. You can choose a hardware platform and experience the running process of FlashDB on a real machine. +In the `demos` directory of the project, the following demonstration platforms are currently provided. You can choose a platform and experience the running process of FlashDB on a real machine. For more detailed introduction, click on the **instructions** in the table below to view. -| Hardware Platform | Path | Flash Type | Instructions | -| --------------------- | ----------------------------- | :------------ | ---------------------------------------------- | -| stm32f10x | `demos/stm32f103ve` | stm32 on-chip | [click to view](demo-stm32f103ve.md) | -| stm32f40x | `demos/stm32f405rg` | stm32 on-chip | [click to view](demo-stm32f405rg.md) | -| stm32f40x + spi flash | `demos/stm32f405rg_spi_flash` | spi flash | [click to view](demo-stm32f405rg-spi-flash.md) | -| esp8266 + spi flash | `demos/esp8266_spi_flash` | spi flash | [click to view](demo-esp8266-spi-flash.md) | +| Platform | Path | Storage Type | Instructions | +| --------------------- | ----------------------------- | :------------------ | ---------------------------------------------- | +| stm32f10x | `demos/stm32f103ve` | stm32 on-chip flash | [click to view](demo-stm32f103ve.md) | +| stm32f40x | `demos/stm32f405rg` | stm32 on-chip flash | [click to view](demo-stm32f405rg.md) | +| stm32f40x + spi flash | `demos/stm32f405rg_spi_flash` | spi flash | [click to view](demo-stm32f405rg-spi-flash.md) | +| esp8266 + spi flash | `demos/esp8266_spi_flash` | spi flash | [click to view](demo-esp8266-spi-flash.md) | +| linux | `demos/linux` | posix file | [click to view](demo-linux.md) | ## View sample description If you don't have a suitable demo platform above, you can also check the example instructions you are interested in first. -| Sample file | Description | Detailed explanation | -| ----------------------------------- | ------------------------- | ---------------------------------------------- | +| Sample file | Description | Detailed explanation | +| ----------------------------------- | ------------------------- | ---------------------------------------- | | `samples/kvdb_basic_sample.c` | KVDB basic example | [click to view](sample-kvdb-basic) | | `samples/kvdb_type_string_sample.c` | KV example of string type | [click to view](sample-kvdb-type-string) | | `samples/kvdb_type_blob_sample.c` | Blob type KV example | [click to view](sample-kvdb-type-blob) | diff --git a/docs/zh-cn/_sidebar.md b/docs/zh-cn/_sidebar.md index 7fd0983..8f70d8f 100644 --- a/docs/zh-cn/_sidebar.md +++ b/docs/zh-cn/_sidebar.md @@ -5,6 +5,7 @@ - [stm32f405rg](zh-cn/demo-stm32f405rg.md) - [stm32f405rg-spi-flash](zh-cn/demo-stm32f405rg-spi-flash.md) - [esp8266-spi-flash](zh-cn/demo-esp8266-spi-flash.md) + - [linux](zh-cn/demo-linux.md) - [演示说明](zh-cn/demo-details.md) - 示例 - 键值数据库 diff --git a/docs/zh-cn/demo-linux.md b/docs/zh-cn/demo-linux.md new file mode 100644 index 0000000..4e3b1f8 --- /dev/null +++ b/docs/zh-cn/demo-linux.md @@ -0,0 +1,21 @@ +# linux demo + +## + + Linux ƽ̨ KVDB TSDB ʾ + +## ʹ + +### 1 + +նִ `make` ɺ`out` ļ½ɿִгļ + +### 2ʾ + +л `out` ļ£Ȼɶִ `./FlashDBLinuxDemo` + +### 3־ + +ʾ־նУԽм顣 + +> PS: ʾ̴뼰־ -> [ʾ˵ĵ](zh-cn/demo-details.md) \ No newline at end of file diff --git a/docs/zh-cn/quick-started.md b/docs/zh-cn/quick-started.md index 681f955..a38dd26 100644 --- a/docs/zh-cn/quick-started.md +++ b/docs/zh-cn/quick-started.md @@ -40,16 +40,17 @@ FlashDB 提供的演示工程默认支持两种工程: ## 选择演示平台 -在项目的 `demos` 目录下,目前已提供下面一些硬件演示平台,可以选择一个硬件平台,真机体验一下 FlashDB 的运行过程。 +在项目的 `demos` 目录下,目前已提供下面一些演示平台,可以选择一个平台,真机体验一下 FlashDB 的运行过程。 更多详细介绍,点击下方表格中的 **使用说明** 进行查看。 -| 硬件平台 | 路径 | flash 类型 | 使用说明 | -| --------------------- | :---------------------------- | :------------ | ----------------------------------------------- | -| stm32f10x | `demos/stm32f103ve` | stm32 on-chip | [点击查看](zh-cn/demo-stm32f103ve.md) | -| stm32f40x | `demos/stm32f405rg` | stm32 on-chip | [点击查看](zh-cn/demo-stm32f405rg.md) | -| stm32f40x + spi flash | `demos/stm32f405rg_spi_flash` | spi flash | [点击查看](zh-cn/demo-stm32f405rg-spi-flash.md) | -| esp8266 + spi flash | `demos/esp8266_spi_flash` | spi flash | [点击查看](zh-cn/demo-esp8266-spi-flash.md) | +| 硬件平台 | 路径 | 存储类型 | 使用说明 | +| --------------------- | :---------------------------- | :------------------ | ----------------------------------------------- | +| stm32f10x | `demos/stm32f103ve` | stm32 on-chip flash | [点击查看](zh-cn/demo-stm32f103ve.md) | +| stm32f40x | `demos/stm32f405rg` | stm32 on-chip flash | [点击查看](zh-cn/demo-stm32f405rg.md) | +| stm32f40x + spi flash | `demos/stm32f405rg_spi_flash` | spi flash | [点击查看](zh-cn/demo-stm32f405rg-spi-flash.md) | +| esp8266 + spi flash | `demos/esp8266_spi_flash` | spi flash | [点击查看](zh-cn/demo-esp8266-spi-flash.md) | +| linux | `demos/linux` | posix file | [点击查看](zh-cn/demo-linux.md) | ## 查看示例说明