Skip to content

feat(xdks): revamp SDK docs for Python, TypeScript, Java & C# with OpenAPI code samples overlay - #581

Merged
tcaldwell-x merged 1 commit into
mainfrom
feat/xdk-four-language-docs-revamp
Nov 25, 2026
Merged

tcaldwell-x merged 1 commit into
mainfrom
feat/xdk-four-language-docs-revamp

Conversation

@tcaldwell-x

Copy link
Copy Markdown
Collaborator

Summary

End-to-end revamp of the official SDK (XDK) documentation on docs.x.com to cover all four official OpenAPI-generated SDKs (Python xdk, TypeScript @xdevplatform/xdk, Java com.x:xdk, and C# XDevPlatform.Xdk), backed by automated generation from xdevplatform/xdk:

  1. 4-Language Endpoint Code Samples via OpenAPI v1.1.0 Overlay (overlays/xdk-code-samples.json):
    • Configures api.openapi.overlays in docs.json so every X API v2 endpoint page automatically displays idiomatic Python (XDK), TypeScript (XDK), Java (XDK), C# (XDK), and xurl snippets alongside cURL without mutating openapi.json.
  2. Visible "XDKs" Product & Complete 4-Language Guides + Reference:
    • Promotes "XDKs" to the top-level Product switcher (Overview, Python, TypeScript, Java, C#) and updates X API → Tools & Libraries → SDKs (XDKs) (tools/{python,typescript,java,csharp}-xdk.mdx).
    • Adds /xdks/overview (also resolving the broken /xdks/overview link in changelog.mdx) and full 6-page guide suites (overview, install, quickstart, authentication, pagination, streaming) for Java and C#, while fixing stale repo URLs and method names in the Python and TypeScript guides.
    • Replaces 405 stale Sphinx/TypeDoc files with 100 clean, fast, deterministic client reference pages (xdks/{python,typescript,java,csharp}/reference/**) + comprehensive docs.json redirects preserving existing /xdks/python/reference/* and /xdks/typescript/reference/* URLs.
  3. AI & Agent Readiness (llms.txt, .well-known/llms.txt, AGENTS.md):
    • Generates /xdks/llms.txt and /xdks/{python,typescript,java,csharp}/llms.txt, and updates root llms.txt, .well-known/llms.txt, tools/llms-txt.mdx, AGENTS.md, AGENT.md, XChat docs, and OAuth 2.0 migration snippets for all 4 SDKs.
  4. Non-Destructive CI Automation (update-docs.yml + validate-docs.yml):
    • Replaces deprecated @mintlify/scraping (which overwrote curated pages in x-api/) with xdk-build docs --sync-endpoint-stubs + repository_dispatch (xdk-released) + Mintlify CLI validation gates.

Verification

  • npx mint@latest validate --no-build --files "xdks/**" "tools/**" "tools-and-libraries.mdx" ... — passed (0 errors)
  • npx mint@latest validate --no-build --disable unknown-component (full OpenAPI + Overlay + navigation check) — passed (0 errors)
  • npx mint@latest broken-links --files "xdks/**" "tools/**" "tools-and-libraries.mdx" "changelog.mdx" ... — passed (0 broken links)

@CLAassistant

CLAassistant commented Nov 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@mintlify

mintlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
x-corp 🟢 Ready View Preview Nov 25, 2026, 12:14 AM

@tcaldwell-x
tcaldwell-x force-pushed the feat/xdk-four-language-docs-revamp branch from 87f6891 to ba789f2 Compare November 25, 2026 00:13
@tcaldwell-x
tcaldwell-x merged commit f51a9ba into main Nov 25, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
staging — ba789f2b Deployed Nov 25, 2026 by mintlify[bot]
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.

2 participants