docs: fix publish endpoints, base image source, knowledge file refs in TOOLS.md

This commit is contained in:
2026-07-16 07:23:32 +00:00
parent 8e588fd53c
commit 984b25850a
+5 -8
View File
@@ -17,9 +17,6 @@ sudo dpkg -i latest.deb
# 执行套件 # 执行套件
agc run <work_dir> --suite-id <suite-id> --input key=value agc run <work_dir> --suite-id <suite-id> --input key=value
agc run <work_dir> --package-url <url> --input key=value agc run <work_dir> --package-url <url> --input key=value
# 查市场(开发前先做这个)
curl -s https://suites.mercator.cn/api/v1/suites | python3 -m json.tool
``` ```
## API 端点 ## API 端点
@@ -28,8 +25,9 @@ curl -s https://suites.mercator.cn/api/v1/suites | python3 -m json.tool
|------|------| |------|------|
| 浏览套件 | `GET https://suites.mercator.cn/api/v1/suites` | | 浏览套件 | `GET https://suites.mercator.cn/api/v1/suites` |
| 套件详情 | `GET https://suites.mercator.cn/api/v1/suites/{id}` | | 套件详情 | `GET https://suites.mercator.cn/api/v1/suites/{id}` |
| 发布套件(文件上传) | `POST https://suites.mercator.cn/publish/upload`(需 Gitea Token |
| 发布套件(Git 仓库) | `POST https://suites.mercator.cn/publish`(需 Gitea Token |
| API 文档 | `https://suites.mercator.cn/docs` | | API 文档 | `https://suites.mercator.cn/docs` |
| 发布套件 | `POST https://suites.mercator.cn/api/v1/publish/upload`(需开发者自己的 Gitea Token,详见发布指南) |
## 套件结构 ## 套件结构
@@ -48,6 +46,7 @@ description: 套件描述
version: 1.0.0 version: 1.0.0
author: 作者 author: 作者
tags: [标签1, 标签2] tags: [标签1, 标签2]
category: 业务分类
params: params:
input_path: input_path:
@@ -80,17 +79,15 @@ slug 规则:转小写 → 非字母数字替换为连字符 → 合并连续
## 基础镜像 ## 基础镜像
所有套件在 gis-base 镜像中执行,包含:Python 3, GDAL, Shapely, GeoPandas, numpy, openpyxl, xlrd 所有套件在 gis-base 镜像中执行,包含:Python 3.11, GDAL, Shapely, GeoPandas, numpy, openpyxl, xlrd
- 镜像名:`gis-base:latest` - 镜像名:`gis-base:latest`
- 来源:安装 gis-actions 时自动从 Gitea Packages 下载加载 - 来源:安装 gis-actions 时自动从 MinIO 下载(`docker load`
## 知识库 ## 知识库
| 文件 | 内容 | | 文件 | 内容 |
|------|------| |------|------|
| `knowledge/script-data-types.md` | 脚本数据类型分类规范 |
| `knowledge/script-dependencies.md` | 脚本依赖管理规范 |
| `knowledge/data-execution-model.md` | 数据执行模型(本地执行设计) | | `knowledge/data-execution-model.md` | 数据执行模型(本地执行设计) |
## 文档 ## 文档