You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fix] revert per-locale split build and drop legacy dev docs (#3616)
Restore the single bilingual `docusaurus build --locale en --locale
zh-CN` invocation in the cron and manual deploy workflows; the prior
per-locale split produced different webpack content hashes for EN and
ZH, leaving zh-CN HTML referencing /assets/styles.<zh-hash>.css that
only existed under build/zh-CN/ and 404'd under root.
Disable building the unversioned (dev) tree of the legacy docs plugin —
the dev version now lives under the docs-next plugin only — by removing
"current" from versions.json and setting includeCurrentVersion: false on
the classic preset's docs config.
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# docusaurus build --locale zh-CN --out-dir build-zh writes the locale's full output directly under build-zh/ (no zh-CN subdir); the emitted HTML already contains /zh-CN/ URL prefixes, so we publish build-zh/ verbatim under build/zh-CN/.
48
-
mkdir -p ./build/zh-CN
49
-
cp -a ./build-zh/. ./build/zh-CN/
42
+
PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn docusaurus build --locale en --locale zh-CN
50
43
if [ ! -d "./ja-build" ]; then
51
44
echo "ja-build directory not found, aborting to avoid publishing incorrect ja content."
# docusaurus build --locale zh-CN --out-dir build-zh writes the locale's full output directly under build-zh/ (no zh-CN subdir); the emitted HTML already contains /zh-CN/ URL prefixes, so we publish build-zh/ verbatim under build/zh-CN/.
51
-
mkdir -p ./build/zh-CN
52
-
cp -a ./build-zh/. ./build/zh-CN/
45
+
PWA_SERVICE_WORKER_URL=https://doris.apache.org/sw.js yarn docusaurus build --locale en --locale zh-CN
53
46
if [ ! -d "./ja-build" ]; then
54
47
echo "ja-build directory not found, aborting to avoid publishing incorrect ja content."
0 commit comments