Skip to content

feat: add AI-friendly Markdown access - #4

Merged
Cc-Cece merged 1 commit into
mainfrom
agent/ai-friendly-markdown
Aug 12, 2026
Merged

Cc-Cece merged 1 commit into
mainfrom
agent/ai-friendly-markdown

Conversation

@Cc-Cece

@Cc-Cece Cc-Cece commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • add a documentation-wide Copy page action that exports rendered content as Markdown
  • publish per-page Markdown only for the default Chinese documentation locale
  • generate /llms.txt with links to all 50 Chinese documents
  • publish /robots.txt with the existing sitemap location

Why

AI-assisted readers need a clean way to copy a complete document and fetch Markdown without navigating the rendered site. English HTML remains available normally, while AI-specific Markdown output is intentionally limited to Chinese.

Validation

  • npm run typecheck
  • npm run build
  • verified 50 Chinese Markdown routes and 0 English Markdown routes
  • verified /intro.md, /llms.txt, and /robots.txt return HTTP 200 locally
  • verified /en/intro.md returns HTTP 404 locally
  • reviewed rendered Markdown from custom MDX components

npm run check:docs still stops on four UTF-8 BOM files already present on origin/main; its frontmatter step passes, and the build/typecheck steps were run separately.

@Cc-Cece
Cc-Cece marked this pull request as ready for review August 12, 2026 16:02

@Cc-Cece Cc-Cece left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full remote diff and generated artifacts. Scope is limited to the copy-page integration, Chinese-only Markdown/llms output, and crawler metadata. TypeScript, local production build, route checks, and GitHub Actions all pass. No blocking findings.

@Cc-Cece
Cc-Cece merged commit 852b5f3 into main Aug 12, 2026
1 check 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