File tree Expand file tree Collapse file tree 3 files changed +52
-8
lines changed
Expand file tree Collapse file tree 3 files changed +52
-8
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
@@ -80,30 +80,36 @@ uv pip install -r requirements.txt
8080
8181说明您的环境配置文件中的具体内容。
8282
83- ### 本地运行
83+ ### 调试方法
8484
8585通常使用 ` python ` 来运行项目:
8686
8787``` bash
8888python ...
8989```
9090
91- ### 示例提示词
91+ 或者使用 ` veadk web ` 进行调试:
92+
93+ ``` bash
94+ veadk web
95+ ```
96+
97+ ## AgentKit 部署
98+
99+ 您需要在此详细说明如何将本项目部署到 AgentKit 平台。
100+
101+ ## 示例提示词
92102
93103- 提示词 1
94104- 提示词 2
95105- ...
96106
97- ### 效果展示
107+ ## 效果展示
98108
99109您需要在此处展示项目的运行效果,例如截图、视频等。
100110
101111您的截图、视频等素材资产应当放置于 ` assets ` 目录下。
102112
103- ## 部署到 AgentKit
104-
105- 您需要在此详细说明如何将本项目部署到 AgentKit 平台。
106-
107113## 常见问题
108114
109115- 问题 1
You can’t perform that action at this time.
0 commit comments