Skip to content

Commit 7a262d6

Browse files
download button adjustments
1 parent ba19a2f commit 7a262d6

File tree

5 files changed

+37
-15
lines changed

5 files changed

+37
-15
lines changed

assets/css/index.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,28 @@ select {
534534
@apply w-4 h-4;
535535
}
536536

537+
/* Make long code blocks scrollable */
538+
.yaml-embed-container .highlight {
539+
max-height: 800px;
540+
overflow-y: auto;
541+
}
542+
543+
.yaml-embed-container .highlight::-webkit-scrollbar {
544+
width: 8px;
545+
}
546+
547+
.yaml-embed-container .highlight::-webkit-scrollbar-track {
548+
@apply bg-slate-700 rounded;
549+
}
550+
551+
.yaml-embed-container .highlight::-webkit-scrollbar-thumb {
552+
@apply bg-slate-500 rounded;
553+
}
554+
555+
.yaml-embed-container .highlight::-webkit-scrollbar-thumb:hover {
556+
@apply bg-slate-400;
557+
}
558+
537559
#download-redis > h3,
538560
#download-redis-stack > h3 {
539561
@apply mt-2;

content/operate/kubernetes/reference/yaml/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ kubectl get events --sort-by=.metadata.creationTimestamp
8282
## Related documentation
8383

8484
- [API reference]({{< relref "/operate/kubernetes/reference" >}}) - Complete API specifications for all custom resources
85-
- [Quick start deployment]({{< relref "/operate/kubernetes/deployment/quick-start" >}}) - Step-by-step deployment guide
85+
- [Deploy on Kubernetes]({{< relref "/operate/kubernetes/deployment/quick-start" >}}) - Step-by-step deployment guide
8686
- [Multi-namespace deployment]({{< relref "/operate/kubernetes/re-clusters/multi-namespace" >}}) - Detailed multi-namespace setup guide
8787
- [Active-Active databases]({{< relref "/operate/kubernetes/active-active" >}}) - Active-Active configuration and management

content/operate/kubernetes/reference/yaml/basic-deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ weight: 10
1212

1313
This page provides complete YAML examples for a basic Redis Enterprise deployment on Kubernetes. These examples include all the essential components needed to deploy a Redis Enterprise cluster and create a database.
1414

15-
For complete deployment instructions, see the [Quick start deployment guide]({{< relref "/operate/kubernetes/deployment/quick-start" >}}).
15+
For complete deployment instructions, see [Deploy on Kubernetes]({{< relref "/operate/kubernetes/deployment/quick-start" >}}).
1616

1717
## Service account
1818

@@ -83,7 +83,7 @@ Edit the values in the downloaded YAML file based on your requirements, such as
8383

8484
## Apply the configuration
8585

86-
To deploy these YAML files, follow the [deployment guide]({{< relref "/operate/kubernetes/deployment/quick-start" >}}), which provides step-by-step instructions for creating namespaces, deploying the operator, and applying these configuration files.
86+
To deploy these YAML files, follow [Deploy on Kubernetes]({{< relref "/operate/kubernetes/deployment/quick-start" >}}), which provides step-by-step instructions for creating namespaces, deploying the operator, and applying these configuration files.
8787

8888
## Related documentation
8989

content/operate/kubernetes/reference/yaml/rack-awareness.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This page provides YAML examples for deploying Redis Enterprise with [rack aware
1919
- Verify node labels: `kubectl get nodes --show-labels`
2020
- [Redis Enterprise operator]({{< relref "/operate/kubernetes/deployment" >}}) must be installed
2121

22-
For complete deployment instructions, see the [Redis Enterprise operator deployment guide]({{< relref "/operate/kubernetes/deployment" >}}).
22+
For complete deployment instructions, see [Deploy on Kubernetes]({{< relref "/operate/kubernetes/deployment" >}}).
2323

2424
## Service account
2525

@@ -87,7 +87,7 @@ Database configuration for rack-aware clusters is the same as [basic deployments
8787

8888
## Apply the configuration
8989

90-
To deploy rack-aware Redis Enterprise clusters, follow the [Redis Enterprise operator deployment guide]({{< relref "/operate/kubernetes/deployment" >}}) and ensure your Kubernetes nodes have proper zone labels. For detailed rack awareness configuration, see the [node selection recommendations]({{< relref "/operate/kubernetes/recommendations/node-selection" >}}).
90+
To deploy rack-aware Redis Enterprise clusters, follow [Deploy on Kubernetes]({{< relref "/operate/kubernetes/deployment" >}}) and ensure your Kubernetes nodes have proper zone labels. For detailed rack awareness configuration, see the [node selection recommendations]({{< relref "/operate/kubernetes/recommendations/node-selection" >}}).
9191

9292
## Troubleshooting
9393

layouts/partials/scripts.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
const wrapper = document.createElement('div');
1010

1111
if (block.parentElement.classList.contains("expand-content")) {
12-
wrapper.style = 'position:absolute;top:10px;right:20px;z-index:1;display:flex;align-items:center;gap:6px;';
12+
wrapper.style = 'position:absolute;top:24px;right:20px;z-index:1;display:flex;align-items:center;gap:6px;';
1313
} else {
14-
wrapper.style = 'position:absolute;top:10px;right:10px;z-index:1;display:flex;align-items:center;gap:6px;';
14+
wrapper.style = 'position:absolute;top:24px;right:10px;z-index:1;display:flex;align-items:center;gap:6px;';
1515
}
1616

1717
// Check if this is a YAML embed with download functionality
@@ -20,12 +20,13 @@
2020

2121
// Create the copy button
2222
const button = document.createElement('button');
23+
button.className = 'clipboard-button text-neutral-400 hover:text-slate-100 bg-slate-600 relative h-8 w-8 p-1 rounded rounded-mx';
24+
button.title = 'Copy to clipboard';
2325
button.innerHTML = `
24-
<button class="clipboard-button text-neutral-400 hover:text-slate-100 bg-slate-600 relative h-7 w-7 p-1 rounded rounded-mx" title="Copy to clipboard">
25-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">
26-
<path d="M9 43.95q-1.2 0-2.1-.9-.9-.9-.9-2.1V10.8h3v30.15h23.7v3Zm6-6q-1.2 0-2.1-.9-.9-.9-.9-2.1v-28q0-1.2.9-2.1.9-.9 2.1-.9h22q1.2 0 2.1.9.9.9.9 2.1v28q0 1.2-.9 2.1-.9.9-2.1.9Zm0-3h22v-28H15v28Zm0 0v-28 28Z"></path>
27-
</svg>
28-
`;
26+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="currentColor">
27+
<path d="M9 43.95q-1.2 0-2.1-.9-.9-.9-.9-2.1V10.8h3v30.15h23.7v3Zm6-6q-1.2 0-2.1-.9-.9-.9-.9-2.1v-28q0-1.2.9-2.1.9-.9 2.1-.9h22q1.2 0 2.1.9.9.9.9 2.1v28q0 1.2-.9 2.1-.9.9-2.1.9Zm0-3h22v-28H15v28Zm0 0v-28 28Z"></path>
28+
</svg>
29+
`;
2930

3031
// Create the tooltip container
3132
const tooltipContainer = document.createElement('div');
@@ -58,15 +59,14 @@
5859

5960
// Append copy button
6061
wrapper.appendChild(button);
61-
wrapper.appendChild(tooltipContainer);
6262

6363
// Add download button if this is a YAML embed
6464
if (downloadFilename) {
6565
const downloadButton = document.createElement('button');
66-
downloadButton.className = 'download-yaml-btn text-neutral-400 hover:text-slate-100 bg-slate-600 h-7 w-7 p-1 rounded rounded-mx';
66+
downloadButton.className = 'download-yaml-btn text-neutral-400 hover:text-slate-100 bg-slate-600 h-8 w-8 p-1 rounded rounded-mx';
6767
downloadButton.title = 'Download YAML file';
6868
downloadButton.innerHTML = `
69-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
69+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
7070
<path d="M12 16l-6-6h4V4h4v6h4l-6 6zm-6 2h12v2H6v-2z"/>
7171
</svg>
7272
`;

0 commit comments

Comments
 (0)