diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd6d4e7..5c30766 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -182,3 +182,26 @@ jobs: exit 1 fi echo "ok: no trailing whitespace" + + - name: Release notes are collapsed and bilingual + run: | + set -eu + # Every note ships closed behind 中文说明 / English, so the download links stay + # above the fold. v0.3.13 was written as one flat file and published that way: + # the shape is written down in docs/RELEASING.md and applied by + # tools/collapse-release-notes.py, so this step exists to catch the next time + # somebody (or some agent) forgets to run it. + bad=0 + for f in docs/releases/*.md; do + [ -e "$f" ] || continue + if ! grep -q '

中文说明

' "$f"; then + echo "::error file=$f::missing the closed 中文说明 block" + bad=1 + fi + if ! grep -q '

English

' "$f"; then + echo "::error file=$f::missing the closed English block" + bad=1 + fi + done + [ "$bad" -eq 0 ] + echo "ok: release notes are collapsed" diff --git a/docs/releases/v0.3.13.md b/docs/releases/v0.3.13.md index d29cdd7..da9ba7a 100644 --- a/docs/releases/v0.3.13.md +++ b/docs/releases/v0.3.13.md @@ -1,11 +1,12 @@ -# CubSync 0.3.13 +
+

中文说明

-## 下载 +#### 下载 - **Windows**:`CubSync-0.3.13.msi`(安装)或 `cubsync-0.3.13-windows.zip`(解压即用) - **Android**:`cubsync-0.3.13-android.apk` -## 这一版修好的 +#### 这一版修好的 **桌面** @@ -32,21 +33,22 @@ - 在远端栏输入对面机器的绝对路径时,如果该路径不在对面共享范围内,会直接列出对面共享了哪些目录,而不是报「读不了这个文件夹」。 - 「本机」统一改称「本端」——远端可以是另一台电脑、另一块硬盘,或者以后的 WebDAV / FTP。「账户」一栏按协议列出每一端。 -## 仍然没有的 +#### 仍然没有的 - **Root / Shizuku** 两种运行模式还只是记录设置:它们需要一个走 `su` 或 Shizuku 的独立后端,本版没有。选了会如实说明,不会假装生效。 - **WebDAV / FTP / SFTP / SMB** 这些远端协议尚未实现;收藏夹的归类已经按协议留好位置。 ---- +
-# CubSync 0.3.13 +
+

English

-## Downloads +#### Downloads - **Windows**: `CubSync-0.3.13.msi`, or `cubsync-0.3.13-windows.zip` to run without installing - **Android**: `cubsync-0.3.13-android.apk` -## Fixed +#### Fixed **Desktop** @@ -83,8 +85,10 @@ - 本机 is now 本端 throughout: the far end may be another computer, another disk, or a WebDAV / FTP mount later. 账户 lists each end with its protocol. -## Still missing +#### Still missing - **Root / Shizuku** run modes only record a setting: both need a backend that speaks through `su` or Shizuku, and this build has none. Selecting them says so rather than pretending. - **WebDAV / FTP / SFTP / SMB** are not implemented; favourite grouping already has a place for them. + +