Skip to content

docs: restore Kimi Datasource legacy pages#557

Merged
wbxl2000 merged 1 commit into
mainfrom
codex/fix-datasource-redirect
Jun 8, 2026
Merged

docs: restore Kimi Datasource legacy pages#557
wbxl2000 merged 1 commit into
mainfrom
codex/fix-datasource-redirect

Conversation

@wbxl2000

@wbxl2000 wbxl2000 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue. The deployed documentation URL /zh/customization/datasource.html returns 404 after Kimi Datasource was merged into the Plugins page.

Problem

PR #551 removed the standalone datasource pages and added redirect-style config that VitePress/GitHub Pages does not use for static deployment. As a result, GitHub Pages has no datasource.html file to serve for existing bookmarks and search results.

What changed

  • Restore lightweight English and Chinese customization/datasource.md pages so VitePress generates the legacy .html URLs again.
  • Add a meta refresh and visible link from each legacy page to the Kimi Datasource section on the Plugins page.
  • Remove the unsupported redirects config and the dev-only redirect middleware so local behavior does not hide deployment behavior.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. (N/A: docs-only; verified with docs build.)
  • Ran gen-changesets skill, or this PR needs no changeset. (No changeset needed: docs-only.)
  • Ran gen-docs skill, or this PR needs no doc update. (N/A: this PR directly updates docs.)

Verification

  • git diff --check
  • pnpm -C docs run build
  • env VITEPRESS_BASE=/kimi-code/ pnpm -C docs run build

@pkg-pr-new

pkg-pr-new Bot commented Jun 8, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@666c735
npx https://pkg.pr.new/@moonshot-ai/kimi-code@666c735

commit: 666c735

@changeset-bot

changeset-bot Bot commented Jun 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 666c735

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@wbxl2000 wbxl2000 merged commit 9ed6b8c into main Jun 8, 2026
9 checks passed
@wbxl2000 wbxl2000 deleted the codex/fix-datasource-redirect branch June 8, 2026 14:33
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