Skip to content

Commit

Permalink
[Docs] Refactor document structure (open-mmlab#310)
Browse files Browse the repository at this point in the history
* Refactor docs

* Fix path

* Update logo
  • Loading branch information
SingleZombie committed Dec 21, 2021
1 parent b060908 commit c1ed41c
Show file tree
Hide file tree
Showing 72 changed files with 43 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Thanks for your bug report. We appreciate it a lot.
**Checklist**

1. I have searched related issues but cannot get the expected help.
2. I have read the [FAQ documentation](https://github.com/grimoire/deploy_prototype/blob/master/docs/faq.md) but cannot get the expected help.
2. I have read the [FAQ documentation](https://github.com/grimoire/deploy_prototype/blob/master/docs/en/faq.md) but cannot get the expected help.
3. The bug has not been fixed in the latest version.

**Describe the bug**
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ blank_issues_enabled: false

contact_links:
- name: Common Issues
url: https://github.com/grimoire/deploy_prototype/blob/master/docs/faq.md
url: https://github.com/grimoire/deploy_prototype/blob/master/docs/en/faq.md
about: Check if your issue already has solutions
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- 'demo/**'
- 'tools/**'
- 'docs/**'
- 'docs_zh-CN/**'

jobs:
build_cpu:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ instance/
.scrapy

# Sphinx documentation
docs/_build/
docs_zh_CN/_build/
docs/en/_build/
docs/zh_cn/_build/
**/src/pytorch-sphinx-theme/

# PyBuilder
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ This project is released under the [Apache 2.0 license](LICENSE).

## Installation

Please refer to [build.md](docs/build.md) for installation.
Please refer to [build.md](docs/en/build.md) for installation.

## Getting Started
Please see [getting_started.md](docs/get_started.md) for the basic usage of MMDeploy. We also provide other tutorials for:
- [how to convert model](docs/tutorials/how_to_convert_model.md)
- [how to write config](docs/tutorials/how_to_write_config.md)
- [how to support new models](docs/tutorials/how_to_support_new_models.md)
- [how to measure performance of models](docs/tutorials/how_to_measure_performance_of_models.md)
- [MMDeploy's SDK Model spec](docs/tutorials/sdk_model_spec.md)
- [how to integrate SDK to your application](docs/tutorials/sdk_integration.md)
- [how to develop postprocessing components in SDK](docs/tutorials/postprocess_component_development.md)

Please refer to [FAQ](docs/faq.md) for frequently asked questions.
Please see [getting_started.md](docs/en/get_started.md) for the basic usage of MMDeploy. We also provide other tutorials for:
- [how to convert model](docs/en/tutorials/how_to_convert_model.md)
- [how to write config](docs/en/tutorials/how_to_write_config.md)
- [how to support new models](docs/en/tutorials/how_to_support_new_models.md)
- [how to measure performance of models](docs/en/tutorials/how_to_measure_performance_of_models.md)
- [MMDeploy's SDK Model spec](docs/en/tutorials/sdk_model_spec.md)
- [how to integrate SDK to your application](docs/en/tutorials/sdk_integration.md)
- [how to develop postprocessing components in SDK](docs/en/tutorials/postprocess_component_development.md)

Please refer to [FAQ](docs/en/faq.md) for frequently asked questions.


## Contributing
Expand Down
8 changes: 4 additions & 4 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ MMDeploy 是一个开源深度学习模型部署工具箱,它是 [OpenMMLab](h

## 安装

请参考[构建项目](docs/build.md)进行安装。
请参考[构建项目](docs/zh_cn/build.md)进行安装。

## 快速入门

请阅读 [如何进行模型转换](docs/tutorials/how_to_convert_model.md) 来了解基本的 MMDeploy 使用。
请阅读 [如何进行模型转换](docs/zh_cn/tutorials/how_to_convert_model.md) 来了解基本的 MMDeploy 使用。

我们还提供了诸如 [如何编写配置文件](docs/tutorials/how_to_write_config.md)[如何添加新模型支持](docs/tutorials/how_to_support_new_models.md)[如何测试模型效果](docs/tutorials/how_to_measure_performance_of_models.md) 等教程。
我们还提供了诸如 [如何编写配置文件](docs/zh_cn/tutorials/how_to_write_config.md)[如何添加新模型支持](docs/zh_cn/tutorials/how_to_support_new_models.md)[如何测试模型效果](docs/zh_cn/tutorials/how_to_measure_performance_of_models.md) 等教程。

如果遇到问题,请参考 [常见问题解答](docs/faq.md)
如果遇到问题,请参考 [常见问题解答](docs/zh_cn/faq.md)

## 贡献指南

Expand Down
7 changes: 0 additions & 7 deletions docs/_static/css/readthedocs.css

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions docs/en/_static/css/readthedocs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.header-logo {
background-image: url("../image/mmdeploy-logo.png");
background-size: 120px 60px;
height: 60px;
width: 120px;
}
Binary file added docs/en/_static/image/mmdeploy-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs_zh_CN/api.rst → docs/en/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ apis/ncnn
:members:

apis/pplnn
--------
----------
.. automodule:: mmdeploy.apis.pplnn
:members:
File renamed without changes.
12 changes: 6 additions & 6 deletions docs/backends/onnxruntime.md → docs/en/backends/onnxruntime.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ make -j10

### List of supported custom ops

| Operator | CPU | GPU | MMDeploy Releases |
|:-----------------------------------------------------------------------------|:---:|:---:|:------------------|
| [RoIAlign](../ops/onnxruntime.md#roialign) | Y | N | master |
| [grid_sampler](../ops/onnxruntime.md#grid_sampler) | Y | N | master |
| [MMCVModulatedDeformConv2d](../ops/onnxruntime.md#mmcvmodulateddeformconv2d) | Y | N | master |
| Operator | CPU | GPU | MMDeploy Releases |
| :--------------------------------------------------------------------------- | :---: | :---: | :---------------- |
| [RoIAlign](../ops/onnxruntime.md#roialign) | Y | N | master |
| [grid_sampler](../ops/onnxruntime.md#grid_sampler) | Y | N | master |
| [MMCVModulatedDeformConv2d](../ops/onnxruntime.md#mmcvmodulateddeformconv2d) | Y | N | master |

### How to add a new custom op

Expand All @@ -76,7 +76,7 @@ Take custom operator `roi_align` for example.
1. Create a `roi_align` directory in ONNX Runtime source directory `backend_ops/onnxruntime/`
2. Add header and source file into `roi_align` directory `backend_ops/onnxruntime/roi_align/`
3. Add unit test into `tests/test_ops/test_ops.py`
Check [here](../../tests/test_ops/test_ops.py) for examples.
Check [here](../../../tests/test_ops/test_ops.py) for examples.

**Finally, welcome to send us PR of adding custom operators for ONNX Runtime in MMDeploy.** :nerd_face:

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/benchmark.md → docs/en/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ GPU: TensorRT, PPLNN
- Input resolution varies for different datasets of different codebases. All inputs are real images except for mmediting because the dataset is not large enough.

### Latency benchmark
Users can directly test the speed through [how_to_measure_performance_of_models.md](docs/tutorials/how_to_measure_performance_of_models.md). And here is the benchmark in our environment.
Users can directly test the speed through [how_to_measure_performance_of_models.md](docs/en/tutorials/how_to_measure_performance_of_models.md). And here is the benchmark in our environment.
<details>
<summary style="margin-left: 25px;">MMCls with 1x3x224x224 input</summary>
<div style="margin-left: 25px;">
Expand Down Expand Up @@ -477,7 +477,7 @@ Users can directly test the speed through [how_to_measure_performance_of_models.

### Performance benchmark

Users can directly test the performance through [how_to_evaluate_a_model.md](docs/tutorials/how_to_evaluate_a_model.md). And here is the benchmark in our environment.
Users can directly test the performance through [how_to_evaluate_a_model.md](docs/en/tutorials/how_to_evaluate_a_model.md). And here is the benchmark in our environment.

<details>
<summary style="margin-left: 25px;">MMClassification</summary>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/conf.py → docs/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

sys.path.insert(0, os.path.abspath('..'))

version_file = '../mmdeploy/version.py'
version_file = '../../mmdeploy/version.py'
with open(version_file, 'r') as f:
exec(compile(f.read(), version_file, 'exec'))
__version__ = locals()['__version__']
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions docs/zh_cn/_static/css/readthedocs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.header-logo {
background-image: url("../image/mmdeploy-logo.png");
background-size: 120px 60px;
height: 60px;
width: 120px;
}
Binary file added docs/zh_cn/_static/image/mmdeploy-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/api.rst → docs/zh_cn/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ apis/ncnn
:members:

apis/pplnn
--------
----------
.. automodule:: mmdeploy.apis.pplnn
:members:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs_zh_CN/conf.py → docs/zh_cn/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

sys.path.insert(0, os.path.abspath('..'))

version_file = '../mmdeploy/version.py'
version_file = '../../mmdeploy/version.py'
with open(version_file, 'r') as f:
exec(compile(f.read(), version_file, 'exec'))
__version__ = locals()['__version__']
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion docs_zh_CN/_static

This file was deleted.

0 comments on commit c1ed41c

Please sign in to comment.