Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC-550 #240

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
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} />;
}
Loading