Repository navigation
feat: 在 AI 赋能开发页面直接阅读教程 - #29
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
“AI 赋能开发”页面原先只提供“在线阅读”链接,需要再打开 PDF。现在序章和安装教程直接显示在页面中,可以就地滚动阅读,并保留各自的下载按钮和原始下载文件名。
阅读区保留 PDF 原有排版,默认从第一页按宽度显示。序章立即加载,后面的安装教程使用浏览器懒加载;阅读区高度随窗口调整。两个 PDF 文件的内容均未变更。
修改类型
修改页面
docs/development/ai.md:将两个阅读链接替换为直接展开的阅读区。docs/.vitepress/theme/components/PdfReader.vue:页面内 PDF 阅读与下载组件,使用浏览器内置 PDF 阅读器。docs/.vitepress/theme/index.ts:按需加载阅读组件。.markdownlint-cli2.yaml:将阅读组件加入允许的组件列表。.github/previews/ai-inline-reading.png:本地页面预览截图。事实来源
沿用页面已有的教程与参考资料。本次只调整阅读方式。
风险确认
已执行检查
pnpm checkpnpm build(由pnpm check执行)截图