mirror of
https://github.com/fosrl/docs-v2.git
synced 2026-10-01 18:29:09 +02:00
consolidate client platforms
This commit is contained in:
+13
-4
@@ -82,10 +82,19 @@
|
||||
"pages": [
|
||||
"manage/clients/understanding-clients",
|
||||
"manage/clients/nat-traversal",
|
||||
"manage/clients/install-client",
|
||||
"manage/clients/configure-client",
|
||||
{
|
||||
"group": "Platforms",
|
||||
"index": "manage/clients/platforms",
|
||||
"pages": [
|
||||
"manage/clients/platforms/windows",
|
||||
"manage/clients/platforms/mac",
|
||||
"manage/clients/platforms/ios",
|
||||
"manage/clients/platforms/android",
|
||||
"manage/clients/platforms/cli",
|
||||
"manage/clients/platforms/olm"
|
||||
]
|
||||
},
|
||||
"manage/clients/client-logs",
|
||||
"manage/clients/update-client",
|
||||
"manage/clients/subnet-router",
|
||||
"manage/clients/credentials",
|
||||
"manage/clients/fingerprinting",
|
||||
@@ -329,8 +338,8 @@
|
||||
},
|
||||
{
|
||||
"group": "Enterprise Edition",
|
||||
"index": "self-host/enterprise-edition",
|
||||
"pages": [
|
||||
"self-host/enterprise-edition",
|
||||
"self-host/enterprise-edition/personal-use",
|
||||
"self-host/enterprise-edition/commercial-use",
|
||||
"self-host/enterprise-edition/features",
|
||||
|
||||
+8
-1
@@ -12,6 +12,8 @@ type NavItem = string | NavGroup;
|
||||
interface NavGroup {
|
||||
group: string;
|
||||
icon?: string;
|
||||
/** When set, the folder label links to this page (usually the folder index). */
|
||||
index?: string;
|
||||
pages: NavItem[];
|
||||
}
|
||||
|
||||
@@ -51,11 +53,13 @@ function buildItems(items: NavItem[], idPrefix: string): PageTree.Node[] {
|
||||
}
|
||||
|
||||
const id = `${idPrefix}/${item.group}`;
|
||||
const index = item.index ? pageNode(item.index) : null;
|
||||
out.push({
|
||||
$id: id,
|
||||
type: 'folder',
|
||||
name: item.group,
|
||||
icon: item.icon ? <Icon name={item.icon} /> : undefined,
|
||||
index: index ?? undefined,
|
||||
children: buildItems(item.pages, id),
|
||||
});
|
||||
}
|
||||
@@ -84,7 +88,10 @@ export function getOrderedPagePaths(): string[] {
|
||||
function walk(items: NavItem[]) {
|
||||
for (const item of items) {
|
||||
if (typeof item === 'string') seen.add(item);
|
||||
else walk(item.pages);
|
||||
else {
|
||||
if (item.index) seen.add(item.index);
|
||||
walk(item.pages);
|
||||
}
|
||||
}
|
||||
}
|
||||
walk(navigation.groups as NavGroup[]);
|
||||
|
||||
@@ -83,5 +83,50 @@
|
||||
"source": "/self-host/purchase-license-key",
|
||||
"destination": "/self-host/enterprise-edition/purchase-license-key",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/install-client",
|
||||
"destination": "/manage/clients/platforms",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/update-client",
|
||||
"destination": "/manage/clients/platforms",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/configure-client",
|
||||
"destination": "/manage/clients/platforms",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/configure-client/windows",
|
||||
"destination": "/manage/clients/platforms/windows",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/configure-client/mac",
|
||||
"destination": "/manage/clients/platforms/mac",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/configure-client/ios",
|
||||
"destination": "/manage/clients/platforms/ios",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/configure-client/android",
|
||||
"destination": "/manage/clients/platforms/android",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/configure-client/cli",
|
||||
"destination": "/manage/clients/platforms/cli",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/manage/clients/configure-client/olm",
|
||||
"destination": "/manage/clients/platforms/olm",
|
||||
"permanent": true
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user