Skip to content
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
21 changes: 21 additions & 0 deletions website/docs/getting-started/build-your-first-app.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
import DownloadButton from '@site/src/components/DownloadButton';


# Build Your First App

hhh

## Step 1: Get the Sample File

1. download the file below:

<dd>

<DownloadButton
fileName="agent-config.json"
fileUrl="/files/agent-config.json"
description="Download the agent configuration file (used for step 2 setup)"
/>

</dd>

2. text etxt
33 changes: 33 additions & 0 deletions website/src/components/DownloadButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';

const DownloadButton = ({ fileName, fileUrl, description }) => {
const handleClick = () => {
const link = document.createElement('a');
link.href = fileUrl;
link.download = fileName;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
};

return (
<button
onClick={handleClick}
title={description}
style={{
padding: '10px 16px',
backgroundColor: '#3578e5',
color: '#fff',
border: 'none',
borderRadius: '6px',
cursor: 'pointer',
fontSize: '14px',
margin: '8px 0'
}}
>
⬇ Download {fileName}
</button>
);
};

export default DownloadButton;
113 changes: 112 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -910,4 +910,115 @@ h4+.tags {
background: linear-gradient(to right, #f0f4f7, #d3d3d3);
margin: 20px 0;
padding-bottom: 2px;
}
}

.download-btn {
background-color: #3366ff;
color: white;
padding: 10px 16px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease;
}

.download-btn:hover {
background-color: #254eda;
}

/* Sidebar Container *

/* Sidebar - Sticky with Independent Scrolling */
.theme-doc-sidebar-container {
background: #F8FAFC; /* Light gray background */
border-right: 1px solid #E2E8F0; /* Subtle border */
padding-left: 8px; /* Fix left margin */
width: 260px; /* Fixed width */
height: 100vh; /* Full height */
position: sticky; /* Stick while scrolling */
top: 0; /* Stick to top */
overflow-y: auto; /* Independent scrolling */
}

/* Content Area - Adjust for Sidebar */
.theme-doc-content {
margin-left: 260px; /* Shift content to the right */
padding: 24px; /* Ensure spacing */
max-width: calc(100% - 260px); /* Prevent content overflow */
box-sizing: border-box; /* Prevent width issues */
overflow-y: auto; /* Ensure it scrolls independently */
}

/* Custom Scrollbar */
.theme-doc-sidebar-container::-webkit-scrollbar {
width: 6px;
}

.theme-doc-sidebar-container::-webkit-scrollbar-thumb {
background-color: #CBD5E1; /* Light gray scrollbar */
border-radius: 4px;
}

.theme-doc-sidebar-container::-webkit-scrollbar-track {
background: #F8FAFC; /* Match sidebar background */
}

/* Sidebar Links */
.theme-doc-sidebar-menu a {
color: #1E293B; /* Dark blue text */
padding: 10px 14px;
font-weight: 500;
display: flex;
align-items: center;
border-radius: 6px;
transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Sidebar Hover Effect */
.theme-doc-sidebar-menu a:hover {
background: #E2E8F0; /* Light hover effect */
color: #0F172A; /* Darker text */
}

/* 🔥 Active (Selected) Page - Orange Tint & Text */
.theme-doc-sidebar-menu a.theme-doc-sidebar-item-active {
background: rgba(255, 115, 0, 0.1); /* Light orange background */
color: #FF7300 !important; /* Orange text */
font-weight: 600;
border-left: 4px solid #FF7300; /* Orange left border */
padding-left: 12px; /* Align text properly */
}

/* Sidebar Category Titles */
.theme-doc-sidebar-item-category {
color: #64748B; /* Muted grayish text */
font-size: 14px;
font-weight: 600;
padding: 6px 14px;
}

/* Multi-Level Navigation Fix */
.theme-doc-sidebar-item-category ul {
padding-left: 14px; /* Indent subcategories */
}

/* 🔥 Apply Orange Tint Only to Selected Pages */
.theme-doc-sidebar-menu .menu__list-item:not(.theme-doc-sidebar-item-category) > .menu__link--active {
border-left: 4px solid #FF7300 !important; /* Orange left border */
padding-left: 12px !important; /* Align text properly */
}

/* 🚫 Prevent Section Headers from Changing */
.theme-doc-sidebar-item-category > .menu__link {
border-left: none !important; /* No left border */
font-weight: 600; /* Keep default bold style */
color: inherit !important; /* Keep default color */
}



/* 🔹 Ensure Content Area Adjusts Properly */
.theme-doc-main-container {
margin-left: var(--doc-sidebar-width); /* Prevents content overlap */
}