From 1559f0c01cbc59578fd3757ac55e1e3f9761ecf0 Mon Sep 17 00:00:00 2001 From: tcaldwell-x Date: Tue, 24 Nov 2026 18:01:15 -0800 Subject: [PATCH 1/3] feat(nav): move XDKs to X API top tab with sidebar language dropdown --- docs.json | 367 +++++++++++++++++++++++++++--------------------------- 1 file changed, 185 insertions(+), 182 deletions(-) diff --git a/docs.json b/docs.json index 08bb83f4f..f03770b6d 100644 --- a/docs.json +++ b/docs.json @@ -1031,209 +1031,212 @@ ] }, { - "tab": "Changelog", - "groups": [ - { - "group": "Changelog", - "pages": [ - "changelog" - ] - } - ] - } - ] - }, - { - "product": "XDKs", - "description": "Official Python, TypeScript, Java, and C# SDKs", - "icon": "cubes", - "tabs": [ - { - "tab": "Overview", - "pages": [ - "xdks/overview" - ] - }, - { - "tab": "Python", - "groups": [ + "tab": "XDKs", + "dropdowns": [ { - "group": "Guides", + "dropdown": "Overview", + "icon": "/icons/xds/icon-feather-cube.svg", "pages": [ - "xdks/python/overview", - "xdks/python/install", - "xdks/python/quickstart", - "xdks/python/authentication", - "xdks/python/pagination", - "xdks/python/streaming" + "xdks/overview" ] }, { - "group": "Client Reference", - "pages": [ - "xdks/python/reference/overview", - "xdks/python/reference/clients/account", - "xdks/python/reference/clients/account-activity", - "xdks/python/reference/clients/activity", - "xdks/python/reference/clients/articles", - "xdks/python/reference/clients/bots", - "xdks/python/reference/clients/broadcasts", - "xdks/python/reference/clients/calls", - "xdks/python/reference/clients/chat", - "xdks/python/reference/clients/communities", - "xdks/python/reference/clients/community-notes", - "xdks/python/reference/clients/compliance", - "xdks/python/reference/clients/connections", - "xdks/python/reference/clients/direct-messages", - "xdks/python/reference/clients/general", - "xdks/python/reference/clients/lists", - "xdks/python/reference/clients/media", - "xdks/python/reference/clients/news", - "xdks/python/reference/clients/posts", - "xdks/python/reference/clients/spaces", - "xdks/python/reference/clients/stream", - "xdks/python/reference/clients/trends", - "xdks/python/reference/clients/usage", - "xdks/python/reference/clients/users", - "xdks/python/reference/clients/webhooks" - ] - } - ] - }, - { - "tab": "TypeScript", - "groups": [ - { - "group": "Guides", - "pages": [ - "xdks/typescript/overview", - "xdks/typescript/install", - "xdks/typescript/quickstart", - "xdks/typescript/authentication", - "xdks/typescript/pagination", - "xdks/typescript/streaming" + "dropdown": "Python", + "icon": "python", + "groups": [ + { + "group": "Guides", + "pages": [ + "xdks/python/overview", + "xdks/python/install", + "xdks/python/quickstart", + "xdks/python/authentication", + "xdks/python/pagination", + "xdks/python/streaming" + ] + }, + { + "group": "Client Reference", + "pages": [ + "xdks/python/reference/overview", + "xdks/python/reference/clients/account", + "xdks/python/reference/clients/account-activity", + "xdks/python/reference/clients/activity", + "xdks/python/reference/clients/articles", + "xdks/python/reference/clients/bots", + "xdks/python/reference/clients/broadcasts", + "xdks/python/reference/clients/calls", + "xdks/python/reference/clients/chat", + "xdks/python/reference/clients/communities", + "xdks/python/reference/clients/community-notes", + "xdks/python/reference/clients/compliance", + "xdks/python/reference/clients/connections", + "xdks/python/reference/clients/direct-messages", + "xdks/python/reference/clients/general", + "xdks/python/reference/clients/lists", + "xdks/python/reference/clients/media", + "xdks/python/reference/clients/news", + "xdks/python/reference/clients/posts", + "xdks/python/reference/clients/spaces", + "xdks/python/reference/clients/stream", + "xdks/python/reference/clients/trends", + "xdks/python/reference/clients/usage", + "xdks/python/reference/clients/users", + "xdks/python/reference/clients/webhooks" + ] + } ] }, { - "group": "Client Reference", - "pages": [ - "xdks/typescript/reference/overview", - "xdks/typescript/reference/clients/account", - "xdks/typescript/reference/clients/account-activity", - "xdks/typescript/reference/clients/activity", - "xdks/typescript/reference/clients/articles", - "xdks/typescript/reference/clients/bots", - "xdks/typescript/reference/clients/broadcasts", - "xdks/typescript/reference/clients/calls", - "xdks/typescript/reference/clients/chat", - "xdks/typescript/reference/clients/communities", - "xdks/typescript/reference/clients/community-notes", - "xdks/typescript/reference/clients/compliance", - "xdks/typescript/reference/clients/connections", - "xdks/typescript/reference/clients/direct-messages", - "xdks/typescript/reference/clients/general", - "xdks/typescript/reference/clients/lists", - "xdks/typescript/reference/clients/media", - "xdks/typescript/reference/clients/news", - "xdks/typescript/reference/clients/posts", - "xdks/typescript/reference/clients/spaces", - "xdks/typescript/reference/clients/stream", - "xdks/typescript/reference/clients/trends", - "xdks/typescript/reference/clients/usage", - "xdks/typescript/reference/clients/users", - "xdks/typescript/reference/clients/webhooks" + "dropdown": "TypeScript", + "icon": "js", + "groups": [ + { + "group": "Guides", + "pages": [ + "xdks/typescript/overview", + "xdks/typescript/install", + "xdks/typescript/quickstart", + "xdks/typescript/authentication", + "xdks/typescript/pagination", + "xdks/typescript/streaming" + ] + }, + { + "group": "Client Reference", + "pages": [ + "xdks/typescript/reference/overview", + "xdks/typescript/reference/clients/account", + "xdks/typescript/reference/clients/account-activity", + "xdks/typescript/reference/clients/activity", + "xdks/typescript/reference/clients/articles", + "xdks/typescript/reference/clients/bots", + "xdks/typescript/reference/clients/broadcasts", + "xdks/typescript/reference/clients/calls", + "xdks/typescript/reference/clients/chat", + "xdks/typescript/reference/clients/communities", + "xdks/typescript/reference/clients/community-notes", + "xdks/typescript/reference/clients/compliance", + "xdks/typescript/reference/clients/connections", + "xdks/typescript/reference/clients/direct-messages", + "xdks/typescript/reference/clients/general", + "xdks/typescript/reference/clients/lists", + "xdks/typescript/reference/clients/media", + "xdks/typescript/reference/clients/news", + "xdks/typescript/reference/clients/posts", + "xdks/typescript/reference/clients/spaces", + "xdks/typescript/reference/clients/stream", + "xdks/typescript/reference/clients/trends", + "xdks/typescript/reference/clients/usage", + "xdks/typescript/reference/clients/users", + "xdks/typescript/reference/clients/webhooks" + ] + } ] - } - ] - }, - { - "tab": "Java", - "groups": [ + }, { - "group": "Guides", - "pages": [ - "xdks/java/overview", - "xdks/java/install", - "xdks/java/quickstart", - "xdks/java/authentication", - "xdks/java/pagination", - "xdks/java/streaming" + "dropdown": "Java", + "icon": "java", + "groups": [ + { + "group": "Guides", + "pages": [ + "xdks/java/overview", + "xdks/java/install", + "xdks/java/quickstart", + "xdks/java/authentication", + "xdks/java/pagination", + "xdks/java/streaming" + ] + }, + { + "group": "Client Reference", + "pages": [ + "xdks/java/reference/overview", + "xdks/java/reference/clients/account", + "xdks/java/reference/clients/account-activity", + "xdks/java/reference/clients/activity", + "xdks/java/reference/clients/articles", + "xdks/java/reference/clients/bots", + "xdks/java/reference/clients/broadcasts", + "xdks/java/reference/clients/calls", + "xdks/java/reference/clients/chat", + "xdks/java/reference/clients/communities", + "xdks/java/reference/clients/community-notes", + "xdks/java/reference/clients/compliance", + "xdks/java/reference/clients/connections", + "xdks/java/reference/clients/direct-messages", + "xdks/java/reference/clients/general", + "xdks/java/reference/clients/lists", + "xdks/java/reference/clients/media", + "xdks/java/reference/clients/news", + "xdks/java/reference/clients/posts", + "xdks/java/reference/clients/spaces", + "xdks/java/reference/clients/stream", + "xdks/java/reference/clients/trends", + "xdks/java/reference/clients/usage", + "xdks/java/reference/clients/users", + "xdks/java/reference/clients/webhooks" + ] + } ] }, { - "group": "Client Reference", - "pages": [ - "xdks/java/reference/overview", - "xdks/java/reference/clients/account", - "xdks/java/reference/clients/account-activity", - "xdks/java/reference/clients/activity", - "xdks/java/reference/clients/articles", - "xdks/java/reference/clients/bots", - "xdks/java/reference/clients/broadcasts", - "xdks/java/reference/clients/calls", - "xdks/java/reference/clients/chat", - "xdks/java/reference/clients/communities", - "xdks/java/reference/clients/community-notes", - "xdks/java/reference/clients/compliance", - "xdks/java/reference/clients/connections", - "xdks/java/reference/clients/direct-messages", - "xdks/java/reference/clients/general", - "xdks/java/reference/clients/lists", - "xdks/java/reference/clients/media", - "xdks/java/reference/clients/news", - "xdks/java/reference/clients/posts", - "xdks/java/reference/clients/spaces", - "xdks/java/reference/clients/stream", - "xdks/java/reference/clients/trends", - "xdks/java/reference/clients/usage", - "xdks/java/reference/clients/users", - "xdks/java/reference/clients/webhooks" + "dropdown": "C#", + "icon": "/icons/xds/icon-code.svg", + "groups": [ + { + "group": "Guides", + "pages": [ + "xdks/csharp/overview", + "xdks/csharp/install", + "xdks/csharp/quickstart", + "xdks/csharp/authentication", + "xdks/csharp/pagination", + "xdks/csharp/streaming" + ] + }, + { + "group": "Client Reference", + "pages": [ + "xdks/csharp/reference/overview", + "xdks/csharp/reference/clients/account", + "xdks/csharp/reference/clients/account-activity", + "xdks/csharp/reference/clients/activity", + "xdks/csharp/reference/clients/articles", + "xdks/csharp/reference/clients/bots", + "xdks/csharp/reference/clients/broadcasts", + "xdks/csharp/reference/clients/calls", + "xdks/csharp/reference/clients/chat", + "xdks/csharp/reference/clients/communities", + "xdks/csharp/reference/clients/community-notes", + "xdks/csharp/reference/clients/compliance", + "xdks/csharp/reference/clients/connections", + "xdks/csharp/reference/clients/direct-messages", + "xdks/csharp/reference/clients/general", + "xdks/csharp/reference/clients/lists", + "xdks/csharp/reference/clients/media", + "xdks/csharp/reference/clients/news", + "xdks/csharp/reference/clients/posts", + "xdks/csharp/reference/clients/spaces", + "xdks/csharp/reference/clients/stream", + "xdks/csharp/reference/clients/trends", + "xdks/csharp/reference/clients/usage", + "xdks/csharp/reference/clients/users", + "xdks/csharp/reference/clients/webhooks" + ] + } ] } ] }, { - "tab": "C#", + "tab": "Changelog", "groups": [ { - "group": "Guides", - "pages": [ - "xdks/csharp/overview", - "xdks/csharp/install", - "xdks/csharp/quickstart", - "xdks/csharp/authentication", - "xdks/csharp/pagination", - "xdks/csharp/streaming" - ] - }, - { - "group": "Client Reference", + "group": "Changelog", "pages": [ - "xdks/csharp/reference/overview", - "xdks/csharp/reference/clients/account", - "xdks/csharp/reference/clients/account-activity", - "xdks/csharp/reference/clients/activity", - "xdks/csharp/reference/clients/articles", - "xdks/csharp/reference/clients/bots", - "xdks/csharp/reference/clients/broadcasts", - "xdks/csharp/reference/clients/calls", - "xdks/csharp/reference/clients/chat", - "xdks/csharp/reference/clients/communities", - "xdks/csharp/reference/clients/community-notes", - "xdks/csharp/reference/clients/compliance", - "xdks/csharp/reference/clients/connections", - "xdks/csharp/reference/clients/direct-messages", - "xdks/csharp/reference/clients/general", - "xdks/csharp/reference/clients/lists", - "xdks/csharp/reference/clients/media", - "xdks/csharp/reference/clients/news", - "xdks/csharp/reference/clients/posts", - "xdks/csharp/reference/clients/spaces", - "xdks/csharp/reference/clients/stream", - "xdks/csharp/reference/clients/trends", - "xdks/csharp/reference/clients/usage", - "xdks/csharp/reference/clients/users", - "xdks/csharp/reference/clients/webhooks" + "changelog" ] } ] From da5f819d3edd10e20371a127447998f6b696f310 Mon Sep 17 00:00:00 2001 From: Taylor Caldwell <169854908+tcaldwell-x@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:09:45 -0800 Subject: [PATCH 2/3] fix(xdks): fix dark-mode dropdown icons, Overview sidebar groups, and H1 wrapping --- docs.json | 53 +++++++++++++++++++++++++++++++++++++++++++---- xdks/overview.mdx | 4 ++-- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/docs.json b/docs.json index f03770b6d..ed4d27760 100644 --- a/docs.json +++ b/docs.json @@ -1035,9 +1035,54 @@ "dropdowns": [ { "dropdown": "Overview", - "icon": "/icons/xds/icon-feather-cube.svg", - "pages": [ - "xdks/overview" + "icon": "cubes", + "groups": [ + { + "group": "Getting Started", + "pages": [ + "xdks/overview" + ] + }, + { + "group": "Official SDKs", + "pages": [ + { + "type": "link", + "title": "Python (xdk)", + "href": "/xdks/python/overview" + }, + { + "type": "link", + "title": "TypeScript (@xdevplatform/xdk)", + "href": "/xdks/typescript/overview" + }, + { + "type": "link", + "title": "Java (com.x:xdk)", + "href": "/xdks/java/overview" + }, + { + "type": "link", + "title": "C# / .NET (XDevPlatform.Xdk)", + "href": "/xdks/csharp/overview" + } + ] + }, + { + "group": "Resources", + "pages": [ + { + "type": "link", + "title": "X API Sample Code", + "href": "https://github.com/xdevplatform/samples" + }, + { + "type": "link", + "title": "XDK Generator (Rust)", + "href": "https://github.com/xdevplatform/xdk" + } + ] + } ] }, { @@ -1183,7 +1228,7 @@ }, { "dropdown": "C#", - "icon": "/icons/xds/icon-code.svg", + "icon": "code", "groups": [ { "group": "Guides", diff --git a/xdks/overview.mdx b/xdks/overview.mdx index a45573721..3cc4d2464 100644 --- a/xdks/overview.mdx +++ b/xdks/overview.mdx @@ -1,6 +1,6 @@ --- -title: Official XDKs (X Developer Kits) -sidebarTitle: Overview +title: Official XDKs +sidebarTitle: XDKs Overview description: Official, OpenAPI-generated client libraries for the X API v2 in Python, TypeScript, Java, and C# (.NET) with built-in OAuth, pagination, and streaming. keywords: ["XDK", "X SDK", "Python SDK", "TypeScript SDK", "Java SDK", "C# SDK", ".NET SDK", "X API v2", "client libraries"] --- From 7c82de9ee99c2fea4db0c316b1b4b837a31e98c4 Mon Sep 17 00:00:00 2001 From: Taylor Caldwell <169854908+tcaldwell-x@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:17:21 -0800 Subject: [PATCH 3/3] fix(xdks): use absolute URIs in Overview sidebar groups & add dropdown descriptions --- docs.json | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/docs.json b/docs.json index ed4d27760..278bf755a 100644 --- a/docs.json +++ b/docs.json @@ -1035,6 +1035,7 @@ "dropdowns": [ { "dropdown": "Overview", + "description": "Compare all 4 official SDKs", "icon": "cubes", "groups": [ { @@ -1044,42 +1045,57 @@ ] }, { - "group": "Official SDKs", + "group": "Official Repositories", "pages": [ { "type": "link", - "title": "Python (xdk)", - "href": "/xdks/python/overview" + "title": "Python SDK (GitHub)", + "href": "https://github.com/xdevplatform/xdk-python" }, { "type": "link", - "title": "TypeScript (@xdevplatform/xdk)", - "href": "/xdks/typescript/overview" + "title": "TypeScript SDK (GitHub)", + "href": "https://github.com/xdevplatform/xdk-typescript" }, { "type": "link", - "title": "Java (com.x:xdk)", - "href": "/xdks/java/overview" + "title": "Java SDK (GitHub)", + "href": "https://github.com/xdevplatform/xdk-java" }, { "type": "link", - "title": "C# / .NET (XDevPlatform.Xdk)", - "href": "/xdks/csharp/overview" + "title": "C# SDK (GitHub)", + "href": "https://github.com/xdevplatform/xdk-csharp" + }, + { + "type": "link", + "title": "SDK Generator (Rust)", + "href": "https://github.com/xdevplatform/xdk" } ] }, { - "group": "Resources", + "group": "Package Registries", "pages": [ { "type": "link", - "title": "X API Sample Code", - "href": "https://github.com/xdevplatform/samples" + "title": "PyPI — xdk", + "href": "https://pypi.org/project/xdk/" }, { "type": "link", - "title": "XDK Generator (Rust)", - "href": "https://github.com/xdevplatform/xdk" + "title": "npm — @xdevplatform/xdk", + "href": "https://www.npmjs.com/package/@xdevplatform/xdk" + }, + { + "type": "link", + "title": "Maven Central — com.x:xdk", + "href": "https://central.sonatype.com/artifact/com.x/xdk" + }, + { + "type": "link", + "title": "NuGet — XDevPlatform.Xdk", + "href": "https://www.nuget.org/packages/XDevPlatform.Xdk" } ] } @@ -1087,6 +1103,7 @@ }, { "dropdown": "Python", + "description": "pip install xdk", "icon": "python", "groups": [ { @@ -1134,6 +1151,7 @@ }, { "dropdown": "TypeScript", + "description": "npm i @xdevplatform/xdk", "icon": "js", "groups": [ { @@ -1181,6 +1199,7 @@ }, { "dropdown": "Java", + "description": "com.x:xdk (Maven)", "icon": "java", "groups": [ { @@ -1228,6 +1247,7 @@ }, { "dropdown": "C#", + "description": "XDevPlatform.Xdk (NuGet)", "icon": "code", "groups": [ {