Skip to content

Commit 2d9d7d6

Browse files
committed
Merge branch 'dev' into restructure-1secure
merge with dev
2 parents 337f9a1 + 8740c37 commit 2d9d7d6

File tree

54 files changed

+65
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+65
-32
lines changed

docs/1secure/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "1Secure",
23
"customProps": {
34
"product_name": "1Secure",
45
"product_version": "SaaS"

docs/accessanalyzer/11.6/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 11.6",
23
"customProps": {
34
"product_version": "11.6"
45
}

docs/accessanalyzer/12.0/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 12.0",
23
"customProps": {
34
"product_version": "12.0"
45
}

docs/accessanalyzer/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Access Analyzer",
23
"customProps": {
34
"product_name": "Access Analyzer"
45
}

docs/accessinformationcenter/11.6/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 11.6",
23
"customProps": {
34
"product_version": "11.6"
45
}

docs/accessinformationcenter/12.0/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 12.0",
23
"customProps": {
34
"product_version": "12.0"
45
}

docs/accessinformationcenter/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Access Information Center",
23
"customProps": {
34
"product_name": "Access Information Center"
45
}

docs/activitymonitor/7.1/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 7.1",
23
"customProps": {
34
"product_version": "7.1"
45
}

docs/activitymonitor/8.0/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 8.0",
23
"customProps": {
34
"product_version": "8.0"
45
}

docs/activitymonitor/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Activity Monitor",
23
"customProps": {
34
"product_name": "Activity Monitor"
45
}

docs/auditor/10.6/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 10.6",
23
"customProps": {
34
"product_version": "10.6"
45
}

docs/auditor/10.7/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 10.7",
23
"customProps": {
34
"product_version": "10.7"
45
}

docs/auditor/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Auditor",
23
"customProps": {
34
"product_name": "Auditor"
45
}

docs/changetracker/8.0/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 8.0",
23
"customProps": {
34
"product_version": "8.0"
45
}

docs/changetracker/8.1/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 8.1",
23
"customProps": {
34
"product_version": "8.1"
45
}

docs/changetracker/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Change Tracker",
23
"customProps": {
34
"product_name": "Change Tracker"
45
}

docs/dataclassification/5.6.2/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 5.6.2",
23
"customProps": {
34
"product_version": "5.6.2"
45
}

docs/dataclassification/5.7/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 5.7",
23
"customProps": {
34
"product_version": "5.7"
45
}

docs/dataclassification/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Data Classification",
23
"customProps": {
34
"product_name": "Data Classification"
45
}

docs/directorymanager/11.0/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 11.0",
23
"customProps": {
34
"product_version": "11.0"
45
}

docs/directorymanager/11.1/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 11.1",
23
"customProps": {
34
"product_version": "11.1"
45
}

docs/directorymanager/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Directory Manager",
23
"customProps": {
34
"product_name": "Directory Manager"
45
}

docs/endpointpolicymanager/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Endpoint Policy Manager",
23
"customProps": {
34
"product_name": "Endpoint Policy Manager",
45
"product_version": "SaaS"

docs/endpointprotector/5.9.4.2/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 5.9.4.2",
23
"customProps": {
34
"product_version": "5.9.4.2"
45
}

docs/endpointprotector/5.9.4/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 5.9.4",
23
"customProps": {
34
"product_version": "5.9.4"
45
}

docs/endpointprotector/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Endpoint Protector",
23
"customProps": {
34
"product_name": "Endpoint Protector"
45
}

docs/identitymanager/6.1/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 6.1",
23
"customProps": {
34
"product_version": "6.1"
45
}

docs/identitymanager/6.2/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 6.2",
23
"customProps": {
34
"product_version": "6.2"
45
}

docs/identitymanager/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Identity Manager",
23
"customProps": {
34
"product_name": "Identity Manager"
45
}

docs/identitymanager/saas/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "SAAS",
23
"customProps": {
34
"product_version": "SaaS"
45
}

docs/passwordpolicyenforcer/10.2/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 10.2",
23
"customProps": {
34
"product_version": "10.2"
45
}

docs/passwordpolicyenforcer/11.0/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 11.0",
23
"customProps": {
34
"product_version": "11.0"
45
}

docs/passwordpolicyenforcer/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Password Policy Enforcer",
23
"customProps": {
34
"product_name": "Password Policy Enforcer"
45
}

docs/passwordreset/3.23/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 3.23",
23
"customProps": {
34
"product_version": "3.23"
45
}

docs/passwordreset/3.3/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 3.3",
23
"customProps": {
34
"product_version": "3.3"
45
}

docs/passwordreset/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Password Reset",
23
"customProps": {
34
"product_name": "Password Reset"
45
}

docs/passwordsecure/9.1/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 9.1",
23
"customProps": {
34
"product_version": "9.1"
45
}

docs/passwordsecure/9.2/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 9.2",
23
"customProps": {
34
"product_version": "9.2"
45
}

docs/passwordsecure/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Password Secure",
23
"customProps": {
34
"product_name": "Password Secure"
45
}

docs/platgovnetsuite/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Platform Governance NetSuite",
23
"customProps": {
34
"product_name": "Platform Governance NetSuite",
45
"product_version": "SaaS"

docs/platgovnetsuiteflashlight/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Platform Governance NetSuite Flashlight",
23
"customProps": {
34
"product_name": "Platform Governance NetSuite Flashlight",
45
"product_version": "SaaS"

docs/platgovsalesforce/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Platform Governance Salesforce",
23
"customProps": {
34
"product_name": "Platform Governance Salesforce",
45
"product_version": "SaaS"

docs/platgovsalesforceflashlight/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Platform Governance Salesforce Flashlight",
23
"customProps": {
34
"product_name": "Platform Governance Salesforce Flashlight",
45
"product_version": "SaaS"

docs/privilegesecure/4.1/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 4.1",
23
"customProps": {
34
"product_version": "4.1"
45
}

docs/privilegesecure/4.2/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 4.2",
23
"customProps": {
34
"product_version": "4.2"
45
}

docs/privilegesecure/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Privilege Secure",
23
"customProps": {
34
"product_name": "Privilege Secure"
45
}

docs/recoveryforactivedirectory/2.6/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 2.6",
23
"customProps": {
34
"product_version": "2.6"
45
}

docs/recoveryforactivedirectory/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Recovery for Active Directory",
23
"customProps": {
34
"product_name": "Recovery for Active Directory"
45
}

docs/threatmanager/3.0/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 3.0",
23
"customProps": {
34
"product_version": "3.0"
45
}

docs/threatmanager/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Threat Manager",
23
"customProps": {
34
"product_name": "Threat Manager"
45
}

docs/threatprevention/7.4/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 7.4",
23
"customProps": {
34
"product_version": "7.4"
45
}

docs/threatprevention/7.5/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Version 7.5",
23
"customProps": {
34
"product_version": "7.5"
45
}

docs/threatprevention/_category_.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"label": "Threat Prevention",
23
"customProps": {
34
"product_name": "Threat Prevention"
45
}

src/theme/DocItem/Layout/index.js

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,22 @@
22
import React from 'react';
33
import Head from '@docusaurus/Head';
44
import OriginalDocItem from '@theme-original/DocItem/Layout';
5-
import { useDoc } from '@docusaurus/theme-common/internal';
6-
import { useDocsSidebar } from '@docusaurus/theme-common/internal';
5+
import { useDoc } from '@docusaurus/plugin-content-docs/client';
76

87
export default function DocItemWrapper(props) {
98
const { metadata } = useDoc();
10-
const { permalink } = metadata;
11-
const sidebar = useDocsSidebar();
129

13-
// Find category data for current doc
14-
const findCategoryData = () => {
15-
if (!sidebar) return {};
16-
17-
const findInItems = (items) => {
18-
for (const item of items) {
19-
if (item.type === 'category' && item.items) {
20-
const hasDoc = item.items.some(
21-
(subItem) => subItem.type === 'link' && subItem.href === permalink
22-
);
23-
24-
if (hasDoc) {
25-
return item.customProps || {};
26-
}
27-
28-
const found = findInItems(item.items);
29-
if (found) return found;
30-
}
31-
}
32-
return {};
33-
};
34-
35-
return findInItems(sidebar.items) || {};
36-
};
37-
38-
const categoryData = findCategoryData();
39-
const productName = categoryData.product_name;
40-
const productVersion = categoryData.product_version;
10+
// Extract from source path or unversionedId
11+
const source = metadata.source || metadata.unversionedId || '';
12+
let productName = null;
13+
let productVersion = null;
14+
15+
// Check if it's 1secure
16+
if (source.includes('1secure') || metadata.pluginId === '1secure') {
17+
productName = '1Secure';
18+
productVersion = 'SaaS';
19+
}
20+
// Add other products...
4121

4222
return (
4323
<>

0 commit comments

Comments
 (0)