Merged
搭建 VitePress 文档站点,实现从 AscendC 源码自动生成 API 文档的能力 #2547
搭建 VitePress 文档站点,实现从 AscendC 源码自动生成 API 文档的能力 #2547
Merged
CruiterAdd on May 23
Cruiter
CruiterCollaborators
May 23

描述

搭建 VitePress 文档站点,实现从 AscendC 源码自动生成 API 文档的能力。主要工作包括:

  1. 配置 VitePress 项目框架,包括主题定制(SearchBox 组件)、侧边栏生成、网站元信息配置
  2. 开发 Markdown 解析器(mdparser),将 API 源码注释转换为标准 Markdown 文档
  3. 实现文档预处理流水线:生成占位页面(gen-md-stubs)、转换 HTML 表格、修复相对路径等
  4. 编写自动化部署脚本(deploy.sh),支持一键构建和发布
  5. 清理废弃脚本,统一由 scripts/ 目录下的 JS/Python 工具链接管

关联的Issue

测试

  • 本地 pnpm run docs:dev 验证文档站点可正常启动
  • 部署脚本在 CI 环境验证通过
  • 侧边栏结构和搜索功能在浏览器中手动验证

文档更新

本次 PR 即为文档站点本身,使用 VitePress 替代原有文档生成方式。

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for Cruiter's contribution.)
CruiterCruiterCollaborators
May 23 Created pull request, commit 5026339a
CANN-robotCANN-robotCollaborators
May 23 Added label: stat/needs-squash
CANN-robot
CANN-robotCollaborators
May 23 Comments:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
docs ✅ ai_xin, bianque (2/2) ✅ ai_xin (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

printfscanfmain, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
May 23 Added label: cann-cla/yes
CANN-robotCANN-robotCollaborators
May 23 Set zengjuan,zhanghao_0689,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,bianque,houyuyang,shi_nanxiang,wuyang_hw,munanhw,ai_xin,ascendhjh,DragonBornHD84,jiangZD,hyolee as approver
111 messages are collapsed here。 See more
bianqueCollaborators
May 25 Comments:

/lgtm

likedislike
ai_xinCollaborators
May 25 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
May 25 Added label: lgtmapproved
CANN-robot
CANN-robotCollaborators
May 25 Comments:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: ai_xin.
Reviewers who wrote a comment of /lgtm are: ai_xin, bianque.

likedislike
CANN-robotCANN-robotCollaborators
May 25 Merged pull request