fix(scripts): let the documentation site carry its own images

An image the manifest does not publish was rewritten to a raw.githubusercontent
URL, which serves a private repository to nobody: raw answers 404 unauthenticated,
and a github.com session does not authenticate it. Every image on the site was
broken for every reader, and no gate could say so — link checking asks whether
the file exists in the repository, not whether a site reader can fetch it.

The projector now copies a referenced image into the generated tree beside the
page and points the reference at it, so Vite bundles it like any other site
asset and repository visibility cannot reach the published page. The copy lands
beside the page so one relative URL is right from both locale trees and a page's
assets leave with the page; two sources projecting onto one path throw rather
than letting the last copy win.

Canonical Markdown keeps writing ordinary repository-relative paths, so the same
file still renders when read in the repository.

The guide this was found through is renamed to its subject: 配置模型.
This commit is contained in:
Yichen Jiang
2026-08-06 20:21:17 +08:00
parent a231b56eba
commit 2426be893a
12 changed files with 163 additions and 15 deletions
+2 -2
View File
@@ -2,5 +2,5 @@
# side as of the last confirmed-consistent state. Both languages carry equal authority;
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/user/guide/quickstart.md
quickstart.md: 8a9ed716d9395448aadfb97d0935bd42ee06e6c1
quickstart.zh.md: 3652b0453f870640b278ce6f1355e67e85983ffe
quickstart.md: e81e0ff57384156ee2963d4788519d2384c362ea
quickstart.zh.md: 9755da8bf078c817f9c2a00134360b5169c536bf