Skip to content

Commit 87e3b30

Browse files
committed
chore: fix type
1 parent f1731e2 commit 87e3b30

3 files changed

Lines changed: 35 additions & 16 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build/Publish Release Docs
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- name: Configure Git Credentials
17+
run: |
18+
git config user.name github-actions[bot]
19+
git config user.email github-actions[bot]@users.noreply.github.com
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.x
23+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
24+
- uses: actions/cache@v4
25+
with:
26+
key: mkdocs-material-${{ env.cache_id }}
27+
path: .cache
28+
restore-keys: |
29+
mkdocs-material-
30+
- run: pip install mike mkdocs mkdocs-material jieba mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2
31+
- run: |
32+
git fetch origin gh-pages --depth=1
33+
mike deploy --push "${{ github.ref_name }}"

docs/index.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,7 @@ hide:
2424

2525
该项目主要是汇集全网开源的版面分析的项目,具体来说,就是分析给定的文档类别图像(论文截图、研报等),定位其中类别和位置,如标题、段落、表格和图片等各个部分。
2626

27-
!!! warning "注意"
28-
由于不同场景下的版面差异较大,现阶段不存在一个模型可以搞定所有场景。如果实际业务需要,以下模型效果不好的话,建议构建自己的训练集微调。
29-
30-
目前支持的版面分析模型概览见 [支持的模型](models.md),安装与使用见 [安装](installation.md)[使用方式](usage.md)
31-
3227
### TODO
3328

3429
- [ ] [PP-DocLayout](https://github.com/PaddlePaddle/PaddleX/blob/release/3.0-rc/docs/module_usage/tutorials/ocr_modules/layout_detection.md)整理
3530

36-
### 快速链接
37-
38-
- [快速开始](quickstart.md) — 安装与第一个示例
39-
- [在线 Demo](online_demo.md) — Hugging Face 体验
40-
- [安装](installation.md) — 详细安装说明
41-
- [使用方式](usage.md) — Python 与终端用法
42-
- [GPU 推理](gpu-inference.md) — 使用 GPU 加速
43-
- [NPU 使用](npu-usage.md) — NPU 配置
44-
- [参考项目](references.md) — 相关开源项目

docs/install_usage/how_to_use_other_engine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pip install onnxruntime-gpu
2121

2222
## 使用
2323

24-
```python linenum="1"
24+
```python linenums="1"
2525
from rapid_layout import EngineType, ModelType, RapidLayout, RapidLayoutInput
2626

2727
cfg = RapidLayoutInput(
@@ -42,7 +42,7 @@ results.vis("layout_res.png")
4242

4343
详细配置参数参见:[engine_cfg.yaml](https://github.com/RapidAI/RapidLayout/blob/a7ab63ff291bd72e1a98ac2bb11860575514f432/rapid_layout/configs/engine_cfg.yaml)
4444

45-
```python linenum="1"
45+
```python linenums="1"
4646
from rapid_layout import EngineType, ModelType, RapidLayout, RapidLayoutInput
4747

4848
cfg = RapidLayoutInput(

0 commit comments

Comments
 (0)