Skip to content

[doc] restore json_object_flatten doc removed by #3660#3916

Merged
csun5285 merged 2 commits into
apache:masterfrom
csun5285:doc-restore-json-object-flatten
Jun 6, 2026
Merged

[doc] restore json_object_flatten doc removed by #3660#3916
csun5285 merged 2 commits into
apache:masterfrom
csun5285:doc-restore-json-object-flatten

Conversation

@csun5285
Copy link
Copy Markdown
Contributor

@csun5285 csun5285 commented Jun 6, 2026

The json_object_flatten function docs were added in #3589 but were accidentally deleted by the "online new home page" refactor in #3660, which replaced the docs tree with the docs-next tree that predated the function. As a result the page is missing from the live site.

Restore the EN/ZH pages for both current(dev) and version-4.x from the original #3589 commit (8908f21) and re-register them in sidebars.ts and version-4.x-sidebars.json.

Versions

  • dev
  • 4.x
  • 3.x
  • 2.1 or older (not covered by version/language sync gate)

Languages

  • Chinese
  • English
  • Japanese candidate translation needed

Docs Checklist

  • Checked by AI
  • Test Cases Built
  • Updated required version and language counterparts, or explained why not
  • If only one language changed, confirmed whether source/translation counterparts need sync

The json_object_flatten function docs were added in apache#3589 but were
accidentally deleted by the "online new home page" refactor in apache#3660,
which replaced the docs tree with the docs-next tree that predated the
function. As a result the page is missing from the live site.

Restore the EN/ZH pages for both current(dev) and version-4.x from the
original apache#3589 commit (8908f21) and re-register them in sidebars.ts
and version-4.x-sidebars.json.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@csun5285
Copy link
Copy Markdown
Contributor Author

csun5285 commented Jun 6, 2026

run buildall

Restoring the json_object_flatten page (previous commit) made the build
fail: config/redirects-4.x.json still had fallback redirects that pointed
the json-object-flatten URL to what-is-apache-doris (auto-generated by
scripts/migrate-4.x/build-redirects.py when apache#3660 deleted the page).

With the real page back, the client-redirects plugin tries to emit a
redirect at a path the page already occupies, erroring with
"The redirect plugin is not supposed to override existing files".

Remove the EN and ZH json-object-flatten redirect entries so the
restored page is served directly. Verified `yarn docusaurus build`
for version 4.x now passes in both en and zh-CN locales.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@csun5285 csun5285 merged commit 71885ec into apache:master Jun 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant