From 0a7b5c780f92f29491a93e1856876241af96edeb Mon Sep 17 00:00:00 2001 From: umair Date: Thu, 5 Mar 2026 12:47:36 +0000 Subject: [PATCH 1/3] Move auth docs to /docs/platform/auth and update navigation - Move 8 auth MDX files from /docs/auth/ to /docs/platform/auth/ - Add redirect_from entries for all old /docs/auth/* paths - Add Authentication section to Platform nav (with nested Token auth) - Remove Authentication section from Pub/Sub nav - Update cross-references within auth files to new paths - Fix relative image paths for new directory depth --- src/data/nav/platform.ts | 44 +++++++++++++++++++ src/data/nav/pubsub.ts | 44 ------------------- src/pages/docs/{ => platform}/auth/basic.mdx | 8 ++-- .../docs/{ => platform}/auth/capabilities.mdx | 24 +++++----- .../auth/identified-clients.mdx | 14 +++--- src/pages/docs/{ => platform}/auth/index.mdx | 33 +++++++------- .../docs/{ => platform}/auth/revocation.mdx | 6 ++- .../{ => platform}/auth/token/ably-tokens.mdx | 12 ++--- .../docs/{ => platform}/auth/token/index.mdx | 30 +++++++------ .../docs/{ => platform}/auth/token/jwt.mdx | 16 ++++--- 10 files changed, 123 insertions(+), 108 deletions(-) rename src/pages/docs/{ => platform}/auth/basic.mdx (89%) rename src/pages/docs/{ => platform}/auth/capabilities.mdx (92%) rename src/pages/docs/{ => platform}/auth/identified-clients.mdx (79%) rename src/pages/docs/{ => platform}/auth/index.mdx (70%) rename src/pages/docs/{ => platform}/auth/revocation.mdx (97%) rename src/pages/docs/{ => platform}/auth/token/ably-tokens.mdx (95%) rename src/pages/docs/{ => platform}/auth/token/index.mdx (90%) rename src/pages/docs/{ => platform}/auth/token/jwt.mdx (97%) diff --git a/src/data/nav/platform.ts b/src/data/nav/platform.ts index 8e1df1417d..bc6f43621b 100644 --- a/src/data/nav/platform.ts +++ b/src/data/nav/platform.ts @@ -331,6 +331,50 @@ export default { }, ], }, + { + name: 'Authentication', + pages: [ + { + name: 'Overview', + link: '/docs/platform/auth', + index: true, + }, + { + name: 'Basic auth', + link: '/docs/platform/auth/basic', + }, + { + name: 'Token auth', + pages: [ + { + name: 'Overview', + link: '/docs/platform/auth/token', + index: true, + }, + { + name: 'JWTs', + link: '/docs/platform/auth/token/jwt', + }, + { + name: 'Ably Tokens', + link: '/docs/platform/auth/token/ably-tokens', + }, + ], + }, + { + name: 'Token revocation', + link: '/docs/platform/auth/revocation', + }, + { + name: 'Identified clients', + link: '/docs/platform/auth/identified-clients', + }, + { + name: 'Capabilities', + link: '/docs/platform/auth/capabilities', + }, + ], + }, { name: 'Tools', pages: [ diff --git a/src/data/nav/pubsub.ts b/src/data/nav/pubsub.ts index 30454c9ded..7285937af7 100644 --- a/src/data/nav/pubsub.ts +++ b/src/data/nav/pubsub.ts @@ -83,50 +83,6 @@ export default { }, ], }, - { - name: 'Authentication', - pages: [ - { - name: 'Overview', - link: '/docs/auth', - index: true, - }, - { - name: 'Basic auth', - link: '/docs/auth/basic', - }, - { - name: 'Token auth', - pages: [ - { - name: 'Overview', - link: '/docs/auth/token', - index: true, - }, - { - name: 'JWTs', - link: '/docs/auth/token/jwt', - }, - { - name: 'Ably Tokens', - link: '/docs/auth/token/ably-tokens', - }, - ], - }, - { - name: 'Token revocation', - link: '/docs/auth/revocation', - }, - { - name: 'Identified clients', - link: '/docs/auth/identified-clients', - }, - { - name: 'Capabilities', - link: '/docs/auth/capabilities', - }, - ], - }, { name: 'Connections', pages: [ diff --git a/src/pages/docs/auth/basic.mdx b/src/pages/docs/platform/auth/basic.mdx similarity index 89% rename from src/pages/docs/auth/basic.mdx rename to src/pages/docs/platform/auth/basic.mdx index bdcc9a6b02..04b9c4dc8f 100644 --- a/src/pages/docs/auth/basic.mdx +++ b/src/pages/docs/platform/auth/basic.mdx @@ -1,9 +1,11 @@ --- title: Basic auth meta_description: "Basic authentication allows you to authenticate a secure server using an Ably API key and secret." +redirect_from: + - /docs/auth/basic --- -Basic authentication is the simplest way to authenticate with Ably. It requires passing an [API key](/docs/auth#api-key) when instancing an SDK. +Basic authentication is the simplest way to authenticate with Ably. It requires passing an [API key](/docs/platform/auth#api-key) when instancing an SDK.