Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

✅ Fixed CI Error - Dead Links

Fixed build failure caused by dead links in examples pages.

Changes Made:

  • Fixed dead link references to syntax documentation
  • Changed relative paths to absolute paths for better reliability
  • Build now passes successfully

Issue:

The CI was failing with:

(!) Found dead link ./../syntax/index in file en/examples.md
(!) Found dead link ./../syntax/index in file zh/examples.md

Solution:

Changed the syntax documentation links from relative paths to absolute paths:

  • English: ../syntax/index.md/en/syntax/
  • Chinese: ../syntax/index.md/zh/syntax/

This matches the pattern used in other pages like tutorial/advanced/llm.md.

Verification:

✅ Site builds successfully
✅ No dead link errors
✅ Links work correctly in both English and Chinese versions

Original prompt

将 example 中的案例,放到 site 官网中,作为官网的一个体验案例,案例中可以点击查看 T8 Syntax。


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 6, 2026 04:43
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Copilot AI changed the title [WIP] Add example cases to site for user experience Add interactive examples page with T8 Syntax viewer Feb 6, 2026
Copilot AI requested a review from hustcc February 6, 2026 04:47
@hustcc
Copy link
Member

hustcc commented Feb 6, 2026

@copilot 单独开一个路由做 example,右上角接入菜单。

Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 6, 2026

@copilot 单独开一个路由做 example,右上角接入菜单。

已完成。Examples 已移动到顶部导航菜单,作为独立路由 /examples

Changes in commit 718ada4:

  • Moved examples from /tutorial/examples to /examples
  • Added to top navigation between Tutorial and Syntax
  • Removed from Tutorial sidebar

Examples in top navigation

@hustcc
Copy link
Member

hustcc commented Feb 6, 2026

@copilot 换成用 T8 源码渲染,使用 codesandbox 会有网络问题。

Copilot AI and others added 2 commits February 6, 2026 05:12
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 6, 2026

@copilot 换成用 T8 源码渲染,使用 codesandbox 会有网络问题。

已完成。已将 CodeSandbox 替换为直接使用 T8 源码渲染,避免网络问题。

Changes in commit 132ceb4:

  • 创建了 T8Example.vue 组件,直接从源码渲染 T8
  • 添加了"显示/隐藏 T8 语法"切换按钮
  • 支持三种渲染模式:流式渲染、暗色主题、自定义插件
  • 无需 CodeSandbox,没有网络依赖

T8 Source Rendering
T8 Syntax Toggle

Copilot AI changed the title Add interactive examples page with T8 Syntax viewer Add interactive examples page with native T8 rendering Feb 6, 2026
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

🎊 PR Preview b53a3d6 has been successfully built and deployed to https://antvis-T8-preview-pr-161.surge.sh

🕐 Build time: 0.011s

🤖 By surge-preview

@hustcc
Copy link
Member

hustcc commented Feb 6, 2026

Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 6, 2026

@copilot fix ci error https://github.com/antvis/T8/actions/runs/21739750486/job/62712583208?pr=161

已修复。CI 错误是由于 examples 页面中的死链接造成的。

Fixed in commit b53a3d6:

  • 将语法文档链接从相对路径改为绝对路径
  • English: ../syntax/index.md/en/syntax/
  • Chinese: ../syntax/index.md/zh/syntax/

✅ Build now passes successfully
✅ No dead link errors

@hustcc hustcc marked this pull request as ready for review February 6, 2026 05:33
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.75%. Comparing base (b80c981) to head (b53a3d6).

Files with missing lines Patch % Lines
src/plugin/presets/createCompare.ts 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #161      +/-   ##
==========================================
- Coverage   79.79%   79.75%   -0.04%     
==========================================
  Files          78       78              
  Lines        1658     1660       +2     
  Branches      272      272              
==========================================
+ Hits         1323     1324       +1     
- Misses        335      336       +1     
Flag Coverage Δ
t8 79.75% <50.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/charts/utils/createSvg.ts 100.00% <100.00%> (ø)
src/plugin/presets/createCompare.ts 57.14% <0.00%> (-0.76%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hustcc hustcc merged commit d84ba02 into main Feb 6, 2026
2 checks passed
@hustcc hustcc deleted the copilot/add-example-case-to-website branch February 6, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants