refactor: rename i18n/*/docusaurus-plugin-content-docs to i18n/*/docs (#588)

Drops the leftover docusaurus name from the translated content directories.

- git mv i18n/{en-us,zh-cn,zh-tw}/docusaurus-plugin-content-docs -> i18n/{locale}/docs (pure renames, content unchanged)
- update the paths in packages/content-loader/src/products.ts, scripts/cut-version.mjs and sites/docs/README.md

current.json / version-*.json keep their names and stay beside the content.

Verified: pnpm build succeeds, 6690 pages built.

<!-- cloudflare-preview --> Preview: https://pr-588.docs-gitea-com.pages.dev
Reviewed-on: https://gitea.com/gitea/docs/pulls/588
Reviewed-by: Zettat123 <[email protected]>
This commit is contained in:
Lunny Xiao
2026-10-12 21:05:07 +00:00
parent 1408e4890e
commit 2275bef3bd
1623 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -73,9 +73,9 @@ if (product === 'docs') {
await freezeSidebar('sidebars.js', `versioned_sidebars/version-${version}-sidebars.json`);
for (const locale of await readdir(path.join(root, 'i18n'))) {
const from = `i18n/${locale}/docusaurus-plugin-content-docs/current`;
const from = `i18n/${locale}/docs/current`;
if (!(await exists(from))) continue;
await freeze(from, `i18n/${locale}/docusaurus-plugin-content-docs/version-${version}`);
await freeze(from, `i18n/${locale}/docs/version-${version}`);
}
await addToVersions('versions.json');