Skip to content

在页面历史中插入 Typst 历史版本#166

Merged
YDX-2147483647 merged 4 commits into
typst-doc-cn:masterfrom
YDX-2147483647:plugin
Jun 21, 2026
Merged

在页面历史中插入 Typst 历史版本#166
YDX-2147483647 merged 4 commits into
typst-doc-cn:masterfrom
YDX-2147483647:plugin

Conversation

@YDX-2147483647

@YDX-2147483647 YDX-2147483647 commented Jun 21, 2026

Copy link
Copy Markdown
Member

效果如下图,应该挺实用的;就是不知道对性能影响多大。
(有些图是在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#页面历史

图片

@netlify

netlify Bot commented Jun 21, 2026

Copy link
Copy Markdown

Deploy Preview for luxury-mochi-9269a9 ready!

Name Link
🔨 Latest commit f6bc5c8
🔍 Latest deploy log https://app.netlify.com/projects/luxury-mochi-9269a9/deploys/6a3785901ec3720008517789
😎 Deploy Preview https://deploy-preview-166--luxury-mochi-9269a9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@YDX-2147483647 YDX-2147483647 marked this pull request as ready for review June 21, 2026 05:32
@YDX-2147483647 YDX-2147483647 requested a review from Copilot June 21, 2026 05:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread package.json
Comment thread package.json
@YDX-2147483647 YDX-2147483647 mentioned this pull request Jun 21, 2026
4 tasks
@YDX-2147483647 YDX-2147483647 merged commit 0753604 into typst-doc-cn:master Jun 21, 2026
8 checks passed
@YDX-2147483647 YDX-2147483647 deleted the plugin branch June 21, 2026 13:39
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.

2 participants