Compare commits

..

2 Commits

Author SHA1 Message Date
xfy
089fe88a75 fix(docker): 复制 patches/ 目录以修复 pnpm install ENOENT
Some checks failed
CI / check (push) Has been cancelled
CI / build (push) Has been cancelled
pnpm-workspace.yaml 声明了指向 patches/@tiptap__markdown@3.27.3.patch 的
patched 依赖,但 Docker 构建在 COPY package manifest 阶段未包含
patches/ 目录,导致 pnpm install --frozen-lockfile 因找不到 patch
文件而失败。将 libs/patches/ 加入 COPY 即可。
2026-07-23 16:45:00 +08:00
xfy
970ff8dc5b chore: release v0.6.0 2026-07-23 16:33:07 +08:00
4 changed files with 31 additions and 2 deletions

View File

@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.6.0] - 2026-07-23
### Added
- **编辑器 mermaid 实时预览**Tiptap 代码块在编辑器内实时渲染 mermaid 流程图,所见即所得。
- **编辑器脚注所见即所得**Tiptap 富文本编辑器内脚注直接可见,不再依赖 Markdown 源码。
- **mhchem 化学公式**:移植 mhchem 转译器,支持 `\ce`/`\pu` 化学方程式语法转 LaTeX 渲染。
- **KaTeX 物理学宏表**:注册 16 个物理学宏(如 `\d``\od``\textsubscript` 等),适配物理学公式写作习惯。
- **新建文章默认直接发布**`/admin/write` 新建文章的默认发布状态改为直接发布。
### Changed
- **mermaid 主题变量下沉**:将 Catppuccin 主题变量从 tiptap-editor 下沉到 `@yggdrasil/shared` 共享包,统一管理。
- **中间件抽取**:将 `ssr_generation`/`version_headers` 中间件从 `main.rs` 抽出至 `src/middleware.rs`
### Fixed
- **窄表格边框裁切**:修复窄表格在 `table-wrap` 容器内边框被裁切的问题。
- **移动端表格滚动**:修复移动端表格无法横向滚动的问题。
- **空工具栏顶栏**:隐藏无语言标识代码块的空工具栏顶栏。
- **KaTeX sanitizer 拦截**:允许 KaTeX 渲染所需的 `svg``path` 标签及绘图属性通过 sanitizer。
- **tiptap-markdown 过度转义**:修复 tiptap-markdown 过度转义导致内容显示损坏。
- **脚注序列化转义失效**:修复 tiptap 序列化转义脚注语法 `[^id]``\[^id\]` 导致脚注失效。
- **SQL 控制台写后缓存失效**SQL 控制台执行写操作后全量失效相关缓存。
## [0.5.0] - 2026-07-22
### Added

2
Cargo.lock generated
View File

@ -5591,7 +5591,7 @@ dependencies = [
[[package]]
name = "yggdrasil"
version = "0.5.0"
version = "0.6.0"
dependencies = [
"argon2",
"axum",

View File

@ -1,6 +1,6 @@
[package]
name = "yggdrasil"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
# 构建时工具二进制:用 syntectserver-only 依赖)生成 highlight.css。

View File

@ -141,7 +141,11 @@ WORKDIR /build
# Cache the pnpm workspace node_modules by copying only package manifests first.
# Copying all 4 libs' manifests + the workspace root lets pnpm install everything
# in one shot; this layer is reused as long as the manifests don't change.
# `pnpm-workspace.yaml` declares a patched dep (@tiptap/markdown) pointing at
# `patches/@tiptap__markdown@3.27.3.patch`, so the patches/ tree must be present
# before `pnpm install --frozen-lockfile` or it fails with ENOENT on the patch.
COPY libs/package.json libs/pnpm-workspace.yaml libs/pnpm-lock.yaml libs/
COPY libs/patches/ libs/patches/
COPY libs/tiptap-editor/package.json libs/tiptap-editor/
COPY libs/codemirror-editor/package.json libs/codemirror-editor/
COPY libs/lightbox/package.json libs/lightbox/