File tree Expand file tree Collapse file tree 3 files changed +53
-10
lines changed
Expand file tree Collapse file tree 3 files changed +53
-10
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,14 @@ repos:
1414 rev : v8.24.2
1515 hooks :
1616 - id : gitleaks
17+ # - repo: local
18+ # hooks:
19+ # - id: markdownlint-cli2
20+ # name: markdownlint-cli2
21+ # entry: npx
22+ # args:
23+ # - markdownlint-cli2
24+ # - "**/*.md"
25+ # language: system
26+ # pass_filenames: true
27+ # types: [markdown]
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+
3+ module . exports = {
4+ names : [ "required-headers" ] ,
5+ description : "Ensure README contains specific required headers" ,
6+ tags : [ "structure" ] ,
7+
8+ function : function rule ( params , onError ) {
9+ const requiredHeaders = [
10+ "# 项目介绍" ,
11+ "## 安装" ,
12+ "## 使用方法" ,
13+ "## 运行结果"
14+ ] ;
15+
16+ const content = params . lines . join ( "\n" ) ;
17+
18+ requiredHeaders . forEach ( ( header ) => {
19+ if ( ! content . includes ( header ) ) {
20+ onError ( {
21+ lineNumber : 1 ,
22+ detail : `Missing required header: "${ header } "`
23+ } ) ;
24+ }
25+ } ) ;
26+ }
27+ } ;
Original file line number Diff line number Diff line change 5151
5252您应当在此详细说明每个目录的作用,以及其中包含的文件。
5353
54- # # 快速开始
54+ # # 本地运行
5555
5656# ## 前置准备
5757
58- - 开通 AgentKit 服务
59- - 开通某模型权限
58+ 引导用户开通火山引擎相关服务、开通某模型权限等。如无需前置准备,同样需在此处标明。
6059
6160# ## 依赖安装
6261
@@ -80,30 +79,36 @@ uv pip install -r requirements.txt
8079
8180说明您的环境配置文件中的具体内容。
8281
83- ### 本地运行
82+ ### 调试方法
8483
8584通常使用 ` python ` 来运行项目:
8685
8786``` bash
8887python ...
8988```
9089
91- ### 示例提示词
90+ 或者使用 ` veadk web ` 进行调试:
91+
92+ ``` bash
93+ veadk web
94+ ```
95+
96+ ## AgentKit 部署
97+
98+ 您需要在此详细说明如何将本项目部署到 AgentKit 平台。
99+
100+ ## 示例提示词
92101
93102- 提示词 1
94103- 提示词 2
95104- ...
96105
97- ### 效果展示
106+ ## 效果展示
98107
99108您需要在此处展示项目的运行效果,例如截图、视频等。
100109
101110您的截图、视频等素材资产应当放置于 ` assets ` 目录下。
102111
103- ## 部署到 AgentKit
104-
105- 您需要在此详细说明如何将本项目部署到 AgentKit 平台。
106-
107112## 常见问题
108113
109114- 问题 1
You can’t perform that action at this time.
0 commit comments