在页面历史中插入 Typst 历史版本#166
Merged
Merged
Conversation
✅ Deploy Preview for luxury-mochi-9269a9 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 在 VitePress 的“页面历史(git changelog)”中插入 Typst 的历史版本标签,并同步更新了相关依赖与开发文档说明,以便在每页更直观地对照“这次内容更新对应的 Typst 版本范围”。
Changes:
- 引入
@nolebase/vitepress-plugin-git-changelog,并在 VitePress 中启用页面历史展示能力 - 通过自定义 Vite 虚拟模块导出 Typst release 标签列表,并用
pnpm patch定制 nolebase changelog 的 commits/tag 过滤逻辑 - 更新若干前端依赖与开发文档(包括 SeeAlso 的目录锚点)
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | 锁定新增/升级的依赖版本,并加入 patchedDependencies 记录 |
| patches/@nolebase__vitepress-plugin-git-changelog.patch | 对 nolebase changelog 客户端逻辑打补丁:注入 Typst “伪 tag commits”并调整 tag 过滤规则 |
| package.json | 新增 nolebase changelog 依赖与 pnpm patchedDependencies,并升级多项依赖版本 |
| docs/dev/typst-version.md | 更新开发文档:说明在页面历史中插入 Typst 版本与实现方式 |
| docs/dev/see-also.md | 补充说明:通过给 <h2> 加 id 使其进入右侧目录 |
| docs/.vitepress/theme/typst_version.ts | 导出 TYPST_TAGS_FOR_NOLEBASE 供虚拟模块/补丁逻辑使用 |
| docs/.vitepress/theme/SeeAlso.vue | 给“另请参见”标题增加 id="see-also" |
| docs/.vitepress/theme/index.ts | 注册 NolebaseGitChangelogPlugin 并引入其样式;调整 UnoCSS 引入位置 |
| docs/.vitepress/plugins/typst_version_nolebase.ts | 新增 Vite 插件:提供 virtual:zhtyp-guide-typst-version 虚拟模块 |
| docs/.vitepress/config.ts | 在 VitePress vite 插件链中启用 Typst 虚拟模块插件与 GitChangelog 相关插件 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
效果如下图,应该挺实用的;就是不知道对性能影响多大。
(有些图是在netlify 截的,有些则是我本地合并 #165 后截的,只有后者才会标注 Typst v0.15.0。)
另外顺便改了些插件方面的小问题,比如 https://github.com/typst-doc-cn/guide/security/dependabot 列的那些。
预览
https://deploy-preview-166--luxury-mochi-9269a9.netlify.app/FAQ/code-block-justify.html#页面历史
https://deploy-preview-166--luxury-mochi-9269a9.netlify.app/FAQ/bib-etal-lang.html#页面历史
https://deploy-preview-166--luxury-mochi-9269a9.netlify.app/FAQ/bib-csl.html#页面历史