From 4a168a0af6e42c2722259fc34dfce984ce60741a Mon Sep 17 00:00:00 2001 From: vinckr Date: Thu, 23 Jul 2026 11:03:16 +0200 Subject: [PATCH] fix: add talos to ON sidebar --- sidebars-network.ts | 73 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/sidebars-network.ts b/sidebars-network.ts index 81e88dace..a15a75258 100644 --- a/sidebars-network.ts +++ b/sidebars-network.ts @@ -3,9 +3,25 @@ import { SidebarItem, SidebarItemConfig, } from "@docusaurus/plugin-content-docs/src/sidebars/types" +import talosApiSidebar from "./docs/talos/reference/api/sidebar" +import talosCliReference from "./docs/talos/reference/cli/sidebar" type SidebarItemsConfig = SidebarItemConfig[] +// The generated Talos API sidebar is [overview doc, { category "ApiKeys", items: [...methods] }]. +// Lift the methods into a single "API reference" category linked to the overview page so the +// navigation reads cleanly instead of exposing the raw OpenAPI tag name. +const talosApiReference = { + type: "category", + label: "API reference", + link: { type: "doc", id: "talos/reference/api/ory-talos-api" }, + items: talosApiSidebar.flatMap((item: any) => + typeof item === "object" && "items" in item && Array.isArray(item.items) + ? item.items + : [], + ), +} + const networkSidebar = [ { type: "category", @@ -827,6 +843,63 @@ const networkSidebar = [ }, ], }, + { + type: "category", + label: "Ory Talos", + className: "sidebar-icon sidebar-icon-talos", + collapsed: true, + collapsible: true, + items: [ + "talos/index", + { + type: "category", + label: "Concepts", + items: [ + "talos/concepts/index", + "talos/concepts/architecture", + "talos/concepts/credential-types", + "talos/concepts/token-format", + "talos/concepts/security-model", + "talos/concepts/caching", + "talos/concepts/rate-limiting", + "talos/concepts/ip-restrictions", + ], + }, + { + type: "category", + label: "Integrate", + items: [ + "talos/integrate/index", + "talos/integrate/issue-and-verify", + "talos/integrate/import-keys", + "talos/integrate/derive-tokens", + "talos/integrate/batch-operations", + "talos/integrate/key-lifecycle", + "talos/integrate/self-revocation", + "talos/integrate/ip-restrictions", + "talos/integrate/rate-limiting", + "talos/integrate/error-handling", + { + type: "category", + label: "SDKs", + items: ["talos/integrate/sdk/go", "talos/integrate/sdk/curl"], + }, + ], + }, + { + type: "category", + label: "Reference", + items: [ + "talos/reference/index", + talosApiReference, + talosCliReference, + "talos/reference/token-format", + "talos/reference/events", + "talos/reference/error-codes", + ], + }, + ], + }, ], }, ]