Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/docs/self-hosted/portal-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/docs/self-hosted/portal-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/docs/self-hosted/portal-pat-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/configs/secondary-nav.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import IconLucidePalette from '~icons/lucide/palette'
import IconLucideCheck from '~icons/lucide/check'
import IconLucideHome from '~icons/lucide/home'
import IconLucideBookOpenText from '~icons/lucide/book-open-text'
import IconLucideServer from '~icons/lucide/server'

export interface NavItem {
id: string // Unique identifier for the nav item
Expand Down Expand Up @@ -236,6 +237,12 @@ export const secondaryNavItems: NavItem[] = [
},
],
},
{
id: 'self-hosted',
href: '/self-hosted/overview/',
label: 'Self-hosted',
iconComponent: IconLucideServer,
},
// Temporarily hidden - Agent Auth
// {
// id: 'agent-actions',
Expand Down
10 changes: 10 additions & 0 deletions src/configs/self-hosted.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Self-hosted deployment URL constants.
* Update these values here when hostnames change — they propagate to all self-hosted docs.
*/

/** Container image registry hostname */
export const REGISTRY_HOST = 'ar.scalekit.cloud'

/** Scalekit distribution portal URL (Helm chart and registry token source) */
export const DISTR_URL = 'https://repack.scalekit.cloud'
34 changes: 34 additions & 0 deletions src/configs/sidebar.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,34 @@ export const sidebar = [
},
],
},
{
label: 'Self-hosted',
id: 'self-hosted',
link: '/self-hosted/overview/',
icon: 'server',
items: [
{
label: 'Getting started',
items: [
'self-hosted/overview',
'self-hosted/quickstart',
'self-hosted/system-requirements',
],
},
{
label: 'Deploy',
items: [
'self-hosted/configuration',
'self-hosted/setup-script',
'self-hosted/installation',
],
},
{
label: 'Maintain',
items: ['self-hosted/upgrades', 'self-hosted/troubleshooting'],
},
],
},
{
label: 'SDKs & APIs',
id: 'sdks',
Expand Down Expand Up @@ -573,6 +601,9 @@ export const topics = {
'/**/*', // Catch-all: anything not matched above defaults here
],

// Self-hosted deployment
'self-hosted': ['/self-hosted/**/*'],

Comment on lines +610 to +612
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Topic pattern placement may cause routing issues.

The self-hosted topic is defined after the resources topic, which includes a catch-all '/**/*' pattern. Per the comment at lines 553-554, "first match wins" — pages under /self-hosted/**/* will match the resources catch-all before reaching this pattern.

Move self-hosted above resources to ensure correct topic assignment:

Proposed fix
   // Modular SCIM (directory provisioning)
   'modular-scim': ['/directory/**/*'],

   // Agent Auth / Connect
   connect: ['/agent-auth/**/*', '/reference/agent-connectors/**/*'],

+  // Self-hosted deployment
+  'self-hosted': ['/self-hosted/**/*'],
+
   // === Resources (integrations, workflows, references) ===
   resources: [
     '/resources/code-samples/**/*',
     ...
     '/**/*', // Catch-all: anything not matched above defaults here
   ],

-  // Self-hosted deployment
-  'self-hosted': ['/self-hosted/**/*'],
-
   // === Developer Kit (tools, code, SDKs, AI helpers) ===
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/configs/sidebar.config.ts` around lines 604 - 606, The 'self-hosted'
topic definition is placed after the 'resources' topic which uses a catch-all
pattern and, due to "first match wins", will intercept /self-hosted/**/* pages;
move the 'self-hosted' entry so it appears before the 'resources' entry in
sidebar.config.ts (reorder the array/object entries so 'self-hosted':
['/self-hosted/**/*'] comes above the 'resources' topic) to ensure pages under
/self-hosted/**/* are assigned to the correct topic.

// === Developer Kit (tools, code, SDKs, AI helpers) ===
'dev-kit': [
'/dev-kit/tools/**/*',
Expand Down Expand Up @@ -678,6 +709,9 @@ export const sidebarToSecondaryNav: Record<string, SecondaryNavMapping> = {
// SDKs sidebar → 'SDKs' tab
sdks: 'sdks',

// Self-hosted sidebar → 'Self-hosted' top-level nav item
'self-hosted': 'self-hosted',

// Events reference sidebar → 'Webhooks' tab under API Reference
'events-reference': 'webhooks-events',
}
Loading