Skip to content

Commit

Permalink
DOC-550
Browse files Browse the repository at this point in the history
  • Loading branch information
“nico-shishkin” committed Nov 6, 2023
1 parent a9bd47e commit 557a7f1
Show file tree
Hide file tree
Showing 21 changed files with 160 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/shipping/AWS/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "AWS",
"position": 2,
"customProps": {
"description": "Send data from your AWS services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Access-Management/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Access Management",
"position": 4,
"customProps": {
"description": "Send data from your Access Management services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Azure/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Azure",
"position": 3,
"customProps": {
"description": "Send data from your Azure services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/CI-CD/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "CI-CD",
"position": 3,
"customProps": {
"description": "Send data from your CI-CD services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Code/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Code",
"position": 5,
"customProps": {
"description": "Send data from your code."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Compute/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Compute",
"position": 6,
"customProps": {
"description": "Send data from your compute services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Containers/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Containers",
"position": 7,
"customProps": {
"description": "Send data from your container services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Data-Store/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Data Store",
"position": 8,
"customProps": {
"description": "Send data from your data store services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Database/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Database",
"position": 9,
"customProps": {
"description": "Send data from your database services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Distributed-Messaging/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Distributed Messaging",
"position": 10,
"customProps": {
"description": "Send data from your distributed messaging services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/GCP/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "GCP",
"position": 11,
"customProps": {
"description": "Send data from your GCP services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/IoT/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "IoT",
"position": 11,
"customProps": {
"description": "Send data from your IoT services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Load-Balancer/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Load Balancer",
"position": 12,
"customProps": {
"description": "Send data from your load balancer services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Memory-Caching/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Memory Caching",
"position": 13,
"customProps": {
"description": "Send data from your memory caching services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Network/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Network",
"position": 14,
"customProps": {
"description": "Send data from your network services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Operating-Systems/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Operating systems",
"position": 15,
"customProps": {
"description": "Send data from your operating systems."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Orchestration/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Orchestration",
"position": 16,
"customProps": {
"description": "Send data from your orchestration services."
}
}
8 changes: 4 additions & 4 deletions docs/shipping/Other/_category_.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"label": "Other",
"link": {
"type": "generated-index",
"description": "More tools"
"position": 19,
"customProps": {
"description": "More tools."
}
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Security/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Security",
"position": 17,
"customProps": {
"description": "Send data from your security services."
}
}
7 changes: 7 additions & 0 deletions docs/shipping/Synthetic-Monitoring/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Synthetic Monitoring",
"position": 18,
"customProps": {
"description": "Send data from your synthetic monitoring services."
}
}
23 changes: 23 additions & 0 deletions src/theme/DocCard/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// In your DocCardWrapper.jsx
import React from 'react';
import DocCard from '@theme-original/DocCard';

export default function DocCardWrapper(props) {
// Extract item and restProps from props
const { item, ...restProps } = props;

// Check if customProps and description exist and log it
if (item.customProps?.description) {
console.log('Custom description exists:', item.customProps.description);
} else {
console.log('Using default description:', item.description);
}

// Override the description if customProps.description exists
const newItem = {
...item,
description: item.customProps?.description || item.description,
};

return <DocCard {...restProps} item={newItem} />;
}

0 comments on commit 557a7f1

Please sign in to comment.