Skip to content

Commit 47e4d36

Browse files
docs: migrate document builder to mkdocs (#665)
1 parent 20d54a9 commit 47e4d36

File tree

97 files changed

+2820
-3325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2820
-3325
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python 3.8
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.8
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements/docs.txt
24+
- name: Build site
25+
run: mkdocs build
26+
- name: Deploy to gh-pages
27+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
28+
run: mkdocs gh-deploy --force

CONTRIBUTING.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
Contributions are welcome, and they are greatly appreciated! Every little bit
44
helps, and credit will always be given.
55

6-
<!-- TOC -->
7-
8-
- [MindCV Contributing Guidelines](#mindcv-contributing-guidelines)
9-
- [Contributor License Agreement](#contributor-license-agreement)
10-
- [Types of Contributions](#types-of-contributions)
11-
- [Report Bugs](#report-bugs)
12-
- [Fix Bugs](#fix-bugs)
13-
- [Implement Features](#implement-features)
14-
- [Write Documentation](#write-documentation)
15-
- [Submit Feedback](#submit-feedback)
16-
- [Getting Started](#getting-started)
17-
- [Pull Request Guidelines](#pull-request-guidelines)
18-
- [Tips](#tips)
19-
- [Releasing](#releasing)
20-
21-
<!-- /TOC -->
22-
236
## Contributor License Agreement
247

258
It's required to sign CLA before your first code submission to MindCV community.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![CI](https://github.com/mindspore-lab/mindcv/actions/workflows/ci.yml/badge.svg)](https://github.com/mindspore-lab/mindcv/actions/workflows/ci.yml)
66
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mindcv)](https://pypi.org/project/mindcv)
77
[![PyPI](https://img.shields.io/pypi/v/mindcv)](https://pypi.org/project/mindcv)
8-
[![docs](https://img.shields.io/badge/docs-latest-blue)](https://mindcv.readthedocs.io/en/latest)
8+
[![docs](https://github.com/mindspore-lab/mindcv/actions/workflows/docs.yml/badge.svg)](https://mindspore-lab.github.io/mindcv)
99
[![license](https://img.shields.io/github/license/mindspore-lab/mindcv.svg)](https://github.com/mindspore-lab/mindcv/blob/main/LICENSE.md)
1010
[![open issues](https://img.shields.io/github/issues/mindspore-lab/mindcv)](https://github.com/mindspore-lab/mindcv/issues)
1111
[![PRs](https://img.shields.io/badge/PRs-welcome-pink.svg)](https://github.com/mindspore-lab/mindcv/pulls)
@@ -28,7 +28,7 @@ English | [中文](README_CN.md)
2828
## Introduction
2929
MindCV is an open-source toolbox for computer vision research and development based on [MindSpore](https://www.mindspore.cn/en). It collects a series of classic and SoTA vision models, such as ResNet and SwinTransformer, along with their pre-trained weights and training strategies. SoTA methods such as auto augmentation are also provided for performance improvement. With the decoupled module design, it is easy to apply or adapt MindCV to your own CV tasks.
3030

31-
<details open>
31+
<details open markdown>
3232
<summary> Major Features </summary>
3333

3434
- **Easy-to-Use.** MindCV decomposes the vision framework into various configurable components. It is easy to customize your data pipeline, models, and learning pipeline with MindCV:
@@ -100,7 +100,7 @@ pip install git+https://github.com/mindspore-lab/mindcv.git
100100

101101
### Hands-on Tutorial
102102

103-
To get started with MindCV, please see the [transfer learning tutorial](tutorials/finetune.md), which will give you a quick tour on each key component and the train/validate/predict pipelines.
103+
To get started with MindCV, please see the [Quick Start](docs/en/tutorials/quick_start.md), which will give you a quick tour on each key component and the train/validate/predict pipelines.
104104

105105
Below are a few code snippets for your taste.
106106

@@ -217,12 +217,12 @@ python train_with_func.py --model=resnet50 --dataset=cifar10 --dataset_download
217217
## Tutorials
218218
We provide the following jupyter notebook tutorials to help users learn to use MindCV.
219219

220-
- [Learn about configs](tutorials/learn_about_config.md)
221-
- [Inference with a pretrained model](tutorials/inference.md)
222-
- [Finetune a pretrained model on custom datasets](tutorials/finetune.md)
220+
- [Learn about configs](docs/en/tutorials/configuration.md)
221+
- [Inference with a pretrained model](docs/en/tutorials/inference.md)
222+
- [Finetune a pretrained model on custom datasets](docs/en/tutorials/finetune.md)
223223
- [Customize your model]() //coming soon
224224
- [Optimizing performance for vision transformer]() //coming soon
225-
- [Deployment demo](tutorials/deployment.md)
225+
- [Deployment demo](docs/en/tutorials/deployment.md)
226226

227227
## Model List
228228

@@ -387,7 +387,7 @@ Please see [configs](./configs) for the details about model performance and pret
387387

388388
We appreciate all kind of contributions including issues and PRs to make MindCV better.
389389

390-
Please refer to [CONTRIBUTING.md](CONTRIBUTING.md) for the contributing guideline. Please follow the [Model Template and Guideline](mindcv/models/model_template.md) for contributing a model that fits the overall interface :)
390+
Please refer to [CONTRIBUTING.md](CONTRIBUTING.md) for the contributing guideline. Please follow the [Model Template and Guideline](docs/en/how_to_guides/write_a_new_model.md) for contributing a model that fits the overall interface :)
391391

392392
### License
393393

README_CN.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![CI](https://github.com/mindspore-lab/mindcv/actions/workflows/ci.yml/badge.svg)](https://github.com/mindspore-lab/mindcv/actions/workflows/ci.yml)
66
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mindcv)](https://pypi.org/project/mindcv)
77
[![PyPI](https://img.shields.io/pypi/v/mindcv)](https://pypi.org/project/mindcv)
8-
[![docs](https://img.shields.io/badge/docs-latest-blue)](https://mindcv.readthedocs.io/en/latest)
8+
[![docs](https://github.com/mindspore-lab/mindcv/actions/workflows/docs.yml/badge.svg)](https://mindspore-lab.github.io/mindcv)
99
[![license](https://img.shields.io/github/license/mindspore-lab/mindcv.svg)](https://github.com/mindspore-lab/mindcv/blob/main/LICENSE.md)
1010
[![open issues](https://img.shields.io/github/issues/mindspore-lab/mindcv)](https://github.com/mindspore-lab/mindcv/issues)
1111
[![PRs](https://img.shields.io/badge/PRs-welcome-pink.svg)](https://github.com/mindspore-lab/mindcv/pulls)
@@ -30,7 +30,7 @@
3030
MindCV是一个基于 [MindSpore](https://www.mindspore.cn/)
3131
开发的,致力于计算机视觉相关技术研发的开源工具箱。它提供大量的计算机视觉领域的经典模型和SoTA模型以及它们的预训练权重和训练策略。同时,还提供了自动增强等SoTA算法来提高模型性能。通过解耦的模块设计,您可以轻松地将MindCV应用到您自己的CV任务中。
3232

33-
<details open>
33+
<details open markdown>
3434
<summary> 主要特性 </summary>
3535

3636
- **高易用性** MindCV将视觉任务分解为各种可配置的组件,用户可以轻松地构建自己的数据处理和模型训练流程。
@@ -106,7 +106,7 @@ pip install git+https://github.com/mindspore-lab/mindcv.git
106106

107107
### 上手教程
108108

109-
在开始上手MindCV前,可以阅读MindCV的[迁移学习教程](tutorials/finetune_CN.md),该教程可以帮助用户快速了解MindCV的各个重要组件以及训练、验证、测试流程。
109+
在开始上手MindCV前,可以阅读MindCV的[快速开始](docs/en/tutorials/quick_start.md),该教程可以帮助用户快速了解MindCV的各个重要组件以及训练、验证、测试流程。
110110

111111
以下是一些供您快速体验的代码样例。
112112

@@ -228,12 +228,12 @@ python train_with_func.py --model=resnet50 --dataset=cifar10 --dataset_download
228228

229229
我们提供了系列教程,帮助用户学习如何使用MindCV.
230230

231-
- [了解模型配置](tutorials/learn_about_config_CN.md)
232-
- [模型推理](tutorials/inference_CN.md)
233-
- [自定义数据集上的模型微调训练](tutorials/finetune_CN.md)
231+
- [了解模型配置](docs/zh/tutorials/configuration.md)
232+
- [模型推理](docs/zh/tutorials/inference.md)
233+
- [自定义数据集上的模型微调训练](docs/zh/tutorials/finetune.md)
234234
- [如何自定义模型]() //coming soon
235235
- [视觉ransformer性能优化]() //coming soon
236-
- [部署推理服务](tutorials/deployment_CN.md)
236+
- [部署推理服务](docs/zh/tutorials/deployment.md)
237237

238238
## 模型列表
239239

@@ -410,11 +410,11 @@ python train_with_func.py --model=resnet50 --dataset=cifar10 --dataset_download
410410

411411
欢迎开发者用户提issue或提交代码PR,或贡献更多的算法和模型,一起让MindCV变得更好。
412412

413-
有关贡献指南,请参阅[CONTRIBUTING.md](CONTRIBUTING.md)。请遵循[模型编写指南](mindcv/models/model_template_CN.md)所规定的规则来贡献模型接口:)
413+
有关贡献指南,请参阅[CONTRIBUTING.md](CONTRIBUTING.md)。请遵循[模型编写指南](docs/zh/how_to_guides/write_a_new_model.md)所规定的规则来贡献模型接口:)
414414

415415
### 许可证
416416

417-
本项目遵循[Apache License 2.0](License.md)开源协议。
417+
本项目遵循[Apache License 2.0](LICENSE.md)开源协议。
418418

419419
### 致谢
420420

docs/README.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/en/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/en/_static/css/readthedocs.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/en/_static/image/cat_and_dog.png

-88.1 KB
Binary file not shown.

docs/en/_templates/classtemplate.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/en/api/mindcv.data.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)