From edf26493a0ed9298745f099fb70f7e8b6da52a97 Mon Sep 17 00:00:00 2001 From: Marshall <36639405+mdr0id@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:36:56 -0800 Subject: [PATCH] Remove new style (#31) --- docs/_static/css/custom.css | 1147 ---------------------------- docs/source/_templates/layout.html | 180 ----- docs/source/conf.py | 118 ++- docs/source/index.md | 63 +- docs/source/lowlatencytxnsend.md | 1 - 5 files changed, 73 insertions(+), 1436 deletions(-) delete mode 100644 docs/_static/css/custom.css delete mode 100644 docs/source/_templates/layout.html diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css deleted file mode 100644 index 9131398..0000000 --- a/docs/_static/css/custom.css +++ /dev/null @@ -1,1147 +0,0 @@ -/* Base theme override - dark mode */ -:root { - --background-color: #0a0a0a; - --text-color: #ffffff; - --accent-purple: #8957e5; - --accent-green: #3dd6af; - --card-background: #141414; -} - -/* Main layout */ -.wy-nav-content { - background: var(--background-color); - max-width: 1200px; - color: var(--text-color); -} - -.wy-nav-side { - background: var(--background-color); -} - -/* Typography */ -body { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -} - -h1, h2, h3, h4, h5, h6 { - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; - color: var(--text-color); - font-weight: 600; -} - -h1 { - font-size: 3.5rem; - line-height: 1.2; - letter-spacing: -0.02em; -} - -/* Links */ -a { - color: var(--accent-green); -} - -a:hover { - color: var(--accent-purple); -} - -/* Navigation */ -.wy-menu-vertical li.current a { - background: var(--card-background); - color: var(--text-color); -} - -.wy-menu-vertical a { - color: #888888; -} - -/* Cards/Sections */ -.rst-content .section { - background: var(--card-background); - border-radius: 12px; - padding: 24px; - margin: 24px 0; - border: 1px solid rgba(255, 255, 255, 0.1); -} - -/* Code blocks */ -.highlight { - background: var(--card-background); - border-radius: 8px; - border: 1px solid rgba(255, 255, 255, 0.1); -} - -pre { - background: var(--card-background); - color: var(--text-color); - border: none; -} - -/* Buttons */ -.btn { - background: var(--accent-purple); - color: white; - border-radius: 8px; - padding: 12px 24px; - border: none; - font-weight: 500; -} - -.btn:hover { - background: var(--accent-green); - color: var(--background-color); -} - -/* Tables */ -table.docutils { - background: var(--card-background); - border-radius: 8px; - border: 1px solid rgba(255, 255, 255, 0.1); -} - -/* Search box */ -.wy-side-nav-search { - background: var(--background-color); -} - -.wy-side-nav-search input[type="text"] { - background: var(--card-background); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 8px; - color: var(--text-color); -} - -/* Table styling */ -table.docutils { - background: #1a1a1a; - border-collapse: collapse; - width: 100%; - margin: 24px 0; -} - -/* Header cells */ -table.docutils th { - background-color: #242424; - color: #ffffff; - font-weight: 600; - padding: 12px 16px; - text-align: left; - border-bottom: 2px solid #333; -} - -/* Regular cells */ -table.docutils td { - padding: 12px 16px; - border-bottom: 1px solid #333; - color: #ffffff !important; /* Force white text */ - vertical-align: middle; -} - -/* Alternate row backgrounds */ -table.docutils tr:nth-child(odd) td { - background-color: #1a1a1a; -} - -table.docutils tr:nth-child(even) td { - background-color: #242424; -} - -/* Code blocks and URLs in tables */ -table.docutils td code, -table.docutils td a, -table.docutils .highlight { - display: inline-block; - background: #2d2d2d; - color: #ff6b6b !important; /* URLs in red */ - padding: 4px 8px; - border-radius: 4px; - font-family: 'Courier New', monospace; - font-size: 0.9em; - border: 1px solid #444; - word-break: break-all; -} - -/* Location column */ -table.docutils td:first-child { - font-weight: 500; - background-color: #242424 !important; -} - -/* Remove default borders */ -table.docutils, -table.docutils th, -table.docutils td { - border: none; -} - -/* Force dark background on pre/code elements */ -table.docutils pre, -table.docutils .highlight { - background: #2d2d2d !important; - border: 1px solid #444; -} - -/* Ensure text contrast */ -table.docutils td * { - color: #ffffff !important; -} - - -/* Table cell with code-like content (array/string/etc) */ -table.docutils td .highlight, -table.docutils td code, -table.docutils td .pre { - background-color: #2d2d2d !important; - border: 1px solid #444; - border-radius: 4px; - padding: 4px 8px; - color: #ff6b6b !important; - font-family: 'Courier New', monospace; - font-size: 0.9em; - display: inline-block; - word-break: break-all; -} - -/* Type column specific styling */ -table.docutils td:nth-child(2) { - background-color: #242424 !important; - color: #ffffff !important; -} - -/* Description column styling */ -table.docutils td:nth-child(3) { - color: #ffffff !important; -} - -/* Force background color on cells with light backgrounds */ -table.docutils td { - background-color: #1a1a1a !important; -} - -/* Parameters/field names */ -table.docutils td:first-child { - font-family: 'Courier New', monospace; - background-color: #242424 !important; - color: #ff6b6b !important; -} - -/* Type text styling */ -table.docutils td .pre { - background-color: #2d2d2d !important; - color: #7ec699 !important; /* Light green for types */ -} - -/* Inline code styling */ -code.docutils, -.pre, -span.pre, -.sig-param, -.highlight-default { - background-color: #2d2d2d !important; - color: #7ec699 !important; /* Light green instead of red */ - border: 1px solid #444; - border-radius: 4px; - padding: 2px 6px; - font-family: 'Courier New', monospace; - font-size: 0.9em; -} - -/* For method/function names specifically */ -code.sig-name, -.method { - color: #61afef !important; /* Light blue for methods */ -} - -/* For parameters/variables */ -.sig-param, -.parameter { - color: #e5c07b !important; /* Soft yellow for parameters */ -} - -/* Remove white background from inline code in paragraphs */ -p code.docutils { - background-color: #2d2d2d !important; - border: 1px solid #444; -} - -/* Ensure proper contrast in all contexts */ -*[class*='highlight'] { - background-color: #2d2d2d !important; -} - -/* Specific styling for small inline technical terms */ -.literal { - background-color: #2d2d2d !important; - color: #7ec699 !important; - border: 1px solid #444; - border-radius: 4px; - padding: 2px 6px; - font-family: 'Courier New', monospace; - font-size: 0.9em; -} - -/* Navigation buttons styling */ -.btn-neutral { - background-color: #3a3a3a !important; - border: 1px solid #555 !important; - color: #ffffff !important; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; - padding: 8px 16px !important; - border-radius: 6px !important; - transition: all 0.2s ease-in-out !important; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; - font-size: 14px !important; - font-weight: 500 !important; - text-shadow: none !important; -} - -/* Button text and icon */ -.btn-neutral span, -.btn-neutral .fa, -.btn-neutral .fa::before { - color: rgba(255, 255, 255, 0.9) !important; - opacity: 1 !important; -} - -/* Hover state */ -.btn-neutral:hover { - background-color: #4a4a4a !important; - border-color: #666 !important; - transform: translateY(-1px); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important; -} - -/* Visited state - ensure it stays visible */ -.btn-neutral:visited { - color: #ffffff !important; -} - -/* Base table styles refinement */ -table.docutils td { - background-color: #1a1a1a !important; - color: #ffffff !important; - padding: 12px 16px !important; -} - -/* Single tick code styling in tables */ -table.docutils td code.docutils, -table.docutils td .pre, -table.docutils td span.pre { - background-color: #2d2d2d !important; - color: #7ec699 !important; /* Light green for consistency */ - border: 1px solid #444 !important; - border-radius: 4px !important; - padding: 2px 6px !important; - font-family: 'Courier New', monospace !important; - font-size: 0.9em !important; - white-space: nowrap !important; - display: inline-block !important; -} - -/* Type column specific styling */ -table.docutils td:nth-child(2) code.docutils { - background-color: #2d2d2d !important; - color: #7ec699 !important; -} - -/* Parameter column (first column) styling */ -table.docutils td:first-child code.docutils { - background-color: #2d2d2d !important; - color: #ff6b6b !important; /* Different color for parameters */ -} - -/* Fix white right margin */ -.wy-nav-content-wrap { - background: #0a0a0a !important; -} - -.wy-nav-content { - background: #0a0a0a !important; - max-width: none !important; /* Remove max-width to allow full expansion */ -} - -/* If you want to keep content from getting too wide while allowing background to extend */ -.rst-content { - max-width: 1200px !important; /* Adjust this value as needed */ - margin: 0 auto !important; - padding: 0 2rem !important; -} - -/* Base responsive container */ -.wy-nav-content { - background: #0a0a0a !important; - min-height: 100vh !important; - max-width: none !important; -} - -.rst-content { - max-width: 1200px !important; - margin: 0 auto !important; - padding: 0 2rem !important; -} - -/* Mobile-first responsive adjustments */ -@media screen and (max-width: 768px) { - /* Adjust content padding for mobile */ - .rst-content { - padding: 0 1rem !important; - } - - /* Adjust table display for mobile */ - table.docutils { - display: block; - max-width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - } - - /* Adjust code blocks for mobile */ - pre { - white-space: pre-wrap !important; - word-wrap: break-word !important; - overflow-x: auto !important; - } - - /* Make navigation more touch-friendly */ - .wy-nav-side { - width: 300px !important; - left: -300px !important; - } - - .wy-nav-side.shift { - width: 85% !important; - left: 0 !important; - } - - /* Improve button touch targets */ - .btn-neutral { - padding: 12px 20px !important; - margin: 5px !important; - } - - /* Adjust heading sizes for mobile */ - .rst-content h1 { - font-size: 2em !important; - } - - .rst-content h2 { - font-size: 1.5em !important; - } - - /* Improve table readability on mobile */ - table.docutils td, - table.docutils th { - padding: 8px !important; - } - - /* Make code snippets scroll horizontally on mobile */ - .highlight { - overflow-x: auto !important; - } -} - -/* Tablet adjustments */ -@media screen and (min-width: 769px) and (max-width: 1024px) { - .rst-content { - padding: 0 1.5rem !important; - } -} - -/* Ensure proper sidebar behavior */ -@media screen and (max-width: 768px) { - .wy-nav-content-wrap.shift { - position: fixed !important; - min-width: 100% !important; - left: 85% !important; - top: 0 !important; - } -} - -/* Fix for mobile search box */ -@media screen and (max-width: 768px) { - .wy-side-nav-search { - width: 100% !important; - padding: 0.809em !important; - } - - .wy-side-nav-search input[type="text"] { - width: 100% !important; - padding: 8px 12px !important; - } -} - -/* Improve visibility of navigation items on mobile */ -@media screen and (max-width: 768px) { - .wy-menu-vertical li.current > a, - .wy-menu-vertical li.on a { - padding: 12px 24px !important; - } - - .wy-menu-vertical li.toctree-l1 > a { - padding: 12px 24px !important; - } -} - -/* Handle very small screens */ -@media screen and (max-width: 320px) { - .rst-content { - padding: 0 0.5rem !important; - } - - table.docutils td, - table.docutils th { - padding: 6px !important; - font-size: 0.9em !important; - } -} - -/* Header styling */ -.header { - background-color: #0a0a0a !important; - border-bottom: 1px solid #333 !important; - position: fixed !important; - width: 100% !important; - top: 0 !important; - z-index: 1000 !important; - height: 60px !important; /* Fixed height */ -} - -.header-content { - max-width: 1200px !important; - height: 100% !important; - margin: 0 auto !important; - padding: 0 2rem !important; - display: flex !important; - justify-content: flex-end !important; - align-items: center !important; - background-color: #1a1a1a !important; /* Slightly lighter than the background */ -} - -.social-links { - display: flex !important; - gap: 1.5rem !important; - align-items: center !important; - background: none !important; -} - -.social-link { - display: flex !important; - align-items: center !important; - justify-content: center !important; - width: 36px !important; - height: 36px !important; - color: #7ec699 !important; /* Match Jito's green */ - background-color: #2d2d2d !important; - font-size: 1.2rem !important; - border-radius: 8px !important; - transition: all 0.2s ease-in-out !important; - border: 1px solid #444 !important; -} - -.social-link:hover { - color: #ffffff !important; - background-color: #3a3a3a !important; - transform: translateY(-1px) !important; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; -} - -/* Adjust main content to account for fixed header */ -.wy-nav-content-wrap { - margin-top: 60px !important; /* Match header height */ -} - -.wy-nav-side { - top: 60px !important; /* Match header height */ -} - -/* Mobile adjustments */ -@media screen and (max-width: 768px) { - .header-content { - padding: 0 1rem !important; - } - - .social-link { - width: 32px !important; - height: 32px !important; - } -} - -/* Social header */ -.social-header { - background-color: #2d2d2d; - padding: 8px 16px; - width: 100%; - position: fixed; - top: 0; - left: 0; - z-index: 1000; - border-bottom: 1px solid #444; -} - -.social-links { - display: flex; - justify-content: flex-end; - gap: 20px; - max-width: 1200px; - margin: 0 auto; -} - -.social-link { - color: #7ec699; - text-decoration: none; - display: flex; - align-items: center; - gap: 8px; - padding: 6px 12px; - border-radius: 4px; - font-size: 14px; - transition: all 0.2s ease; -} - -.social-link:hover { - background-color: #3a3a3a; - color: white; -} - -/* Adjust main content */ -.wy-nav-side { - top: 40px; -} - -.wy-nav-content-wrap { - margin-top: 40px; -} - -/* Mobile adjustments */ -@media screen and (max-width: 768px) { - .social-links { - justify-content: center; - } - - .social-link span { - display: none; - } -} - -/* General image handling */ -.rst-content img { - background-color: transparent; - max-width: 100%; - height: auto; -} - -/* Specific handling for diagrams with white backgrounds */ -.rst-content .diagram { - background-color: #0a0a0a; - padding: 20px; - border-radius: 8px; - border: 1px solid #333; -} - -/* Add dark theme friendly box shadow for depth */ -.rst-content .diagram img { - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); -} - -/* Main title */ -.rst-content h1 { - font-size: 3.5rem !important; - font-weight: 700 !important; - margin-bottom: 2rem !important; - letter-spacing: -0.02em !important; -} - -/* Section headers (What is/does Jito?) */ -.rst-content h2 { - font-size: 2.75rem !important; - font-weight: 600 !important; - margin-top: 3rem !important; - margin-bottom: 1.5rem !important; -} - -/* Sub-sections (Jito's Products) */ -.rst-content h3 { - font-size: 2rem !important; - font-weight: 500 !important; - margin-top: 2.5rem !important; - margin-bottom: 1rem !important; -} - -/* Text content */ -.rst-content p { - font-size: 1.1rem !important; - line-height: 1.6 !important; - margin-bottom: 1.5rem !important; -} - -/* List items */ -.rst-content li { - font-size: 1.1rem !important; - line-height: 1.6 !important; - margin-bottom: 0.75rem !important; -} - -.hero-answer { - font-size: 1.5rem !important; - margin: 2rem 0 !important; - padding: 1.5rem !important; - background: linear-gradient(45deg, #1a1a1a, #242424) !important; - border-radius: 8px !important; - border: 1px solid #333 !important; - display: flex !important; - align-items: center !important; - gap: 1rem !important; -} - -.hero-icon { - font-size: 2rem !important; -} - -.feature-list { - display: grid !important; - gap: 1rem !important; - margin: 2rem 0 !important; -} - -.feature-item { - display: flex !important; - align-items: center !important; - gap: 1rem !important; - padding: 1rem !important; - background-color: #1a1a1a !important; - border: 1px solid #333 !important; - border-radius: 6px !important; - transition: transform 0.2s ease !important; -} - -.feature-item:hover { - transform: translateY(-2px) !important; - background-color: #242424 !important; -} - -.feature-icon { - font-size: 1.5rem !important; -} - -.user-types-grid { - display: grid !important; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; - gap: 1.5rem !important; - margin: 2rem 0 !important; -} - -.user-type { - background: linear-gradient(45deg, #1a1a1a, #242424) !important; - border: 1px solid #333 !important; - border-radius: 8px !important; - padding: 1.5rem !important; - text-align: center !important; - transition: all 0.2s ease-in-out !important; -} - -.user-type:hover { - transform: translateY(-2px) !important; - border-color: #14F195 !important; - box-shadow: 0 4px 12px rgba(20, 241, 149, 0.1) !important; -} - -.user-icon { - font-size: 2.5rem !important; - margin-bottom: 1rem !important; - display: block !important; -} - -.user-type h3 { - margin: 0 !important; - font-size: 1.2rem !important; - color: #ffffff !important; - font-weight: 500 !important; -} - -/* Responsive adjustments */ -@media (max-width: 768px) { - .user-types-grid { - grid-template-columns: 1fr !important; - } -} - -.user-types-grid { - display: grid !important; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; - gap: 1.5rem !important; - margin: 2rem 0 !important; - max-width: 1200px !important; /* Add max-width for better control */ -} - -.user-type { - background: #1a1a1a !important; - border: 1px solid #333 !important; - border-radius: 8px !important; - padding: 2rem !important; /* Increased padding */ - text-align: center !important; - transition: all 0.2s ease-in-out !important; - position: relative !important; - overflow: hidden !important; - display: flex !important; - flex-direction: column !important; - align-items: center !important; - justify-content: center !important; - min-height: 200px !important; /* Fixed height for consistency */ -} - -.user-type::before { - content: '' !important; - position: absolute !important; - top: 0 !important; - left: 0 !important; - width: 100% !important; - height: 4px !important; - background: linear-gradient(90deg, #14F195, #00FFF9) !important; - transform: scaleX(0) !important; - transition: transform 0.3s ease !important; -} - -.user-type:hover::before { - transform: scaleX(1) !important; -} - -.user-type img { - width: 48px !important; /* Fixed size for icons */ - height: 48px !important; - margin-bottom: 1rem !important; -} - -.user-type h3 { - margin: 0.5rem 0 0 0 !important; - font-size: 1.2rem !important; - color: #ffffff !important; - font-weight: 500 !important; - line-height: 1.4 !important; -} - -/* Grid adjustments for 4 items */ -@media (min-width: 768px) { - .user-types-grid { - grid-template-columns: repeat(3, 1fr) !important; - } - - /* Make dApps card span full width or adjust layout */ - .user-type:last-child { - grid-column: 2 / 3 !important; /* Center the last item */ - } -} - -@media (max-width: 767px) { - .user-types-grid { - grid-template-columns: 1fr !important; - } - - .user-type { - min-height: 150px !important; - } -} - -/* Shared styles for feature cards */ -.feature-card { - background: #1a1a1a !important; - border: 1px solid #333 !important; - border-radius: 8px !important; - padding: 1.2rem 1.5rem !important; - margin-bottom: 1rem !important; - display: flex !important; - align-items: center !important; - gap: 1rem !important; - transition: all 0.2s ease-in-out !important; - position: relative !important; - overflow: hidden !important; -} - -/* Hero card specific styles (Turbocharged...) */ -.hero-card { - background: #1a1a1a !important; - font-size: 1.2rem !important; - padding: 1.5rem !important; -} - -/* Gradient border effect on hover */ -.feature-card::before { - content: '' !important; - position: absolute !important; - inset: 0 !important; - background: linear-gradient(90deg, #14F195, #00FFF9) !important; - padding: 1px !important; - -webkit-mask: linear-gradient(#fff 0 0) content-box, - linear-gradient(#fff 0 0) !important; - -webkit-mask-composite: xor !important; - mask-composite: exclude !important; - opacity: 0 !important; - transition: opacity 0.3s ease !important; -} - -.feature-card:hover::before { - opacity: 1 !important; -} - -/* Hover effect */ -.feature-card:hover { - transform: translateY(-2px) !important; - box-shadow: 0 4px 12px rgba(20, 241, 149, 0.1) !important; -} - -/* Icon styling */ -.feature-card .icon { - font-size: 1.5rem !important; - background: linear-gradient(90deg, #14F195, #00FFF9) !important; - -webkit-background-clip: text !important; - background-clip: text !important; - -webkit-text-fill-color: transparent !important; - display: inline-block !important; -} - -.language-card { - background: #1a1a1a !important; - border: 1px solid #333 !important; - border-radius: 8px !important; - padding: 1.5rem !important; - margin-bottom: 1.5rem !important; - display: flex !important; - gap: 1.5rem !important; - position: relative !important; - overflow: hidden !important; - transition: all 0.2s ease-in-out !important; -} - -.language-card::before { - content: '' !important; - position: absolute !important; - inset: 0 !important; - background: linear-gradient(90deg, #14F195, #00FFF9) !important; - padding: 1px !important; - -webkit-mask: linear-gradient(#fff 0 0) content-box, - linear-gradient(#fff 0 0) !important; - -webkit-mask-composite: xor !important; - mask-composite: exclude !important; - opacity: 0 !important; - transition: opacity 0.3s ease !important; - pointer-events: none !important; /* This ensures clicks pass through */ -} - -.language-card:hover::before { - opacity: 1 !important; -} - -/* Ensure links are clickable */ -.language-content { - position: relative !important; - z-index: 2 !important; /* Place above the hover effect */ -} - -.language-content a { - color: #14F195 !important; - text-decoration: none !important; - position: relative !important; - z-index: 3 !important; - transition: color 0.2s ease-in-out !important; -} - -.language-content a:hover { - color: #00FFF9 !important; - text-decoration: underline !important; -} - -.language-icon { - position: relative !important; - z-index: 2 !important; -} - -.language-icon { - font-size: 2.5rem !important; - width: 64px !important; - height: 64px !important; - display: flex !important; - align-items: center !important; - justify-content: center !important; - color: #14F195 !important; - flex-shrink: 0 !important; -} - -.rust-icon svg { - fill: #14F195 !important; -} - -.language-content { - flex: 1 !important; -} - -.language-content h3 { - margin: 0 0 0.5rem 0 !important; - color: #ffffff !important; -} - -.language-content p { - margin: 0 !important; - color: rgba(255, 255, 255, 0.9) !important; -} - -.language-content a { - color: #14F195 !important; - text-decoration: none !important; -} - -.language-content a:hover { - text-decoration: underline !important; -} - -/* Updated Rust icon styling */ -.language-card .rust-icon { - width: 48px !important; - height: 48px !important; - background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 144'%3E%3Cpath fill='%2314F195' d='M122.631 69.716l-4.394-2.72a59.044 59.044 0 0 0-.125-1.28l3.776-3.522c.384-.358.556-.888.452-1.401a1.506 1.506 0 0 0-.953-1.122l-4.827-1.805a56.519 56.519 0 0 0-.378-1.246l3.011-4.182a1.5 1.5 0 0 0-.984-2.377l-5.09-.828a52.728 52.728 0 0 0-.612-1.143l2.139-4.695a1.5 1.5 0 0 0-.118-1.468 1.499 1.499 0 0 0-1.31-.671l-5.166.18a40.31 40.31 0 0 0-.816-.99l1.187-5.032a1.5 1.5 0 0 0-1.819-1.798l-5.031 1.186a40.618 40.618 0 0 0-.992-.816l.181-5.166a1.5 1.5 0 0 0-2.139-1.429l-4.694 2.14a54.415 54.415 0 0 0-1.143-.613l-.83-5.091a1.5 1.5 0 0 0-2.376-.984l-4.185 3.011a45.629 45.629 0 0 0-1.244-.377l-1.805-4.828a1.503 1.503 0 0 0-2.523-.499l-3.522 3.779c-.425-.047-.853-.09-1.28-.125l-2.72-4.395a1.5 1.5 0 0 0-2.571 0l-2.72 4.395c-.428.035-.856.078-1.281.125l-3.523-3.779a1.5 1.5 0 0 0-2.523.499l-1.805 4.828c-.418.12-.832.247-1.245.377l-4.184-3.011a1.5 1.5 0 0 0-2.377.984l-.83 5.091c-.384.199-.764.407-1.143.613l-4.694-2.14a1.5 1.5 0 0 0-2.139 1.429l.18 5.166c-.334.267-.665.54-.992.816l-5.031-1.186a1.5 1.5 0 0 0-1.819 1.798l1.187 5.032a40.31 40.31 0 0 0-.816.99l-5.166-.18a1.5 1.5 0 0 0-1.428 2.139l2.139 4.695a52.728 52.728 0 0 0-.613 1.143l-5.09.828a1.5 1.5 0 0 0-.984 2.377l3.011 4.182a56.519 56.519 0 0 0-.378 1.246l-4.828 1.805a1.506 1.506 0 0 0-.953 1.122 1.5 1.5 0 0 0 .452 1.401l3.777 3.522c-.044.425-.087.853-.125 1.28l-4.394 2.72a1.5 1.5 0 0 0 0 2.571l4.394 2.72c.038.428.081.855.125 1.28l-3.777 3.523a1.5 1.5 0 0 0 .501 2.523l4.828 1.805c.12.418.247.831.378 1.246l-3.011 4.183a1.5 1.5 0 0 0 .984 2.376l5.09.828c.199.386.406.766.613 1.145l-2.139 4.693a1.5 1.5 0 0 0 1.428 2.139l5.166-.181c.267.334.54.665.816.992l-1.187 5.033a1.5 1.5 0 0 0 1.819 1.797l5.031-1.186c.327.276.658.549.992.816l-.18 5.166a1.5 1.5 0 0 0 2.159 1.429l4.694-2.139c.379.207.759.414 1.143.613l.83 5.088a1.5 1.5 0 0 0 2.377.986l4.184-3.013c.413.13.827.257 1.245.377l1.805 4.828a1.503 1.503 0 0 0 2.523.499l3.523-3.777c.425.049.853.09 1.281.128l2.72 4.394a1.5 1.5 0 0 0 2.571 0l2.72-4.394a59.283 59.283 0 0 0 1.28-.128l3.522 3.777a1.5 1.5 0 0 0 2.523-.499l1.805-4.828c.418-.12.832-.247 1.244-.377l4.185 3.013a1.5 1.5 0 0 0 2.376-.986l.83-5.088c.384-.199.764-.406 1.143-.613l4.694 2.139a1.5 1.5 0 0 0 2.159-1.429l-.18-5.166c.334-.267.665-.54.992-.816l5.031 1.186a1.5 1.5 0 0 0 1.819-1.797l-1.187-5.033c.276-.327.549-.658.816-.992l5.166.181a1.5 1.5 0 0 0 1.428-2.139l-2.139-4.693c.207-.379.414-.759.613-1.145l5.09-.828a1.5 1.5 0 0 0 .984-2.376l-3.011-4.183c.13-.415.258-.828.378-1.246l4.828-1.805a1.503 1.503 0 0 0 .501-2.523l-3.777-3.523c.044-.425.087-.852.125-1.28l4.394-2.72a1.5 1.5 0 0 0 0-2.571zM73.452 73.452c0 11.985-9.715 21.7-21.7 21.7s-21.7-9.715-21.7-21.7 9.715-21.7 21.7-21.7 21.7 9.715 21.7 21.7z'/%3E%3C/svg%3E") center/contain no-repeat !important; - margin-right: 1rem !important; -} - -/* Ensure Rust card has consistent styling */ -.language-card.rust { - border-color: #444 !important; -} - -.language-card.rust:hover { - border-color: #14F195 !important; -} - -/* Left sidebar styling */ -.wy-menu-vertical { - background-color: #1a1a1a !important; -} - -/* Menu items */ -.wy-menu-vertical li a { - color: #ffffff !important; - background-color: transparent !important; - border: none !important; -} - -/* Hover state */ -.wy-menu-vertical li a:hover { - background-color: #2d2d2d !important; - border-right: 2px solid #14F195 !important; -} - -/* Active/current page */ -.wy-menu-vertical li.current { - background-color: #242424 !important; -} - -.wy-menu-vertical li.current > a { - background-color: #242424 !important; - border-right: 2px solid #14F195 !important; - color: #14F195 !important; -} - -/* Submenu items */ -.wy-menu-vertical li.toctree-l2 a, -.wy-menu-vertical li.toctree-l3 a, -.wy-menu-vertical li.toctree-l4 a { - color: #cccccc !important; - background-color: #1f1f1f !important; - border-left: 1px solid #333 !important; -} - -/* Submenu hover states */ -.wy-menu-vertical li.toctree-l2 a:hover, -.wy-menu-vertical li.toctree-l3 a:hover, -.wy-menu-vertical li.toctree-l4 a:hover { - background-color: #2d2d2d !important; - color: #14F195 !important; -} - -/* Current submenu item */ -.wy-menu-vertical li.toctree-l2.current > a, -.wy-menu-vertical li.toctree-l3.current > a, -.wy-menu-vertical li.toctree-l4.current > a { - background-color: #242424 !important; - color: #14F195 !important; -} - -/* Expand/collapse arrows */ -.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a, -.wy-menu-vertical li.toctree-l3.current li.toctree-l4 > a { - background-color: #1f1f1f !important; -} - -/* Section headers */ -.wy-menu-vertical p.caption { - color: #14F195 !important; - border-bottom: 1px solid #333 !important; - padding: 10px !important; -} - -.troubleshooting-section { - display: flex; - flex-direction: column; - gap: 2rem; - margin: 2rem 0; -} - -.troubleshooting-item { - background: #1a1a1a; - border: 1px solid #333; - border-radius: 8px; - overflow: hidden; - transition: all 0.2s ease-in-out; -} - -.troubleshooting-item:hover { - border-color: #14F195; - transform: translateY(-2px); - box-shadow: 0 4px 12px rgba(20, 241, 149, 0.1); -} - -.question { - background: #242424; - padding: 1rem 1.5rem; - display: flex; - align-items: center; - gap: 1rem; - border-bottom: 1px solid #333; -} - -.question i { - color: #14F195; - font-size: 1.2rem; -} - -.question h3 { - margin: 0 !important; - font-size: 1.1rem !important; - color: #ffffff !important; -} - -.answer { - padding: 1.5rem; - color: rgba(255, 255, 255, 0.9); -} - -.answer code { - background: #2d2d2d; - color: #14F195; - padding: 0.2rem 0.4rem; - border-radius: 4px; - font-size: 0.9em; -} - -.info-box { - background: #242424; - border-left: 4px solid #14F195; - padding: 1rem; - margin-top: 1rem; - border-radius: 0 4px 4px 0; -} - -.answer a { - color: #14F195; - text-decoration: none; -} - -.answer a:hover { - text-decoration: underline; -} \ No newline at end of file diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html deleted file mode 100644 index 4e189c4..0000000 --- a/docs/source/_templates/layout.html +++ /dev/null @@ -1,180 +0,0 @@ -{% extends "!layout.html" %} - -{% block extrahead %} - {{ super() }} - - - - - - - - - -{% endblock %} - -{% block content %} -
- {{ super() }} -{% endblock %} diff --git a/docs/source/conf.py b/docs/source/conf.py index 7f5f4c0..134f468 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,19 +1,20 @@ # Configuration file for the Sphinx documentation builder. +import os +import sys + +# Add source directory to Python path +sys.path.insert(0, os.path.abspath('.')) # -- Project information project = 'Jito Docs' copyright = '2024, Jito Labs' author = 'mdr0id' - release = '0.1' version = '0.1.0' # URL settings set_url = 'https://docs.jito.wtf' -# Output options -html_output = '_build/html' - # -- General configuration extensions = [ 'sphinx.ext.duration', @@ -25,9 +26,11 @@ 'sphinx_design', 'sphinx_copybutton', 'sphinx_tabs.tabs', - 'sphinx_sitemap', # Added for SEO + 'sphinx_sitemap', + 'sphinx_rtd_theme', ] +# MyST extensions myst_enable_extensions = [ "colon_fence", "deflist", @@ -39,7 +42,7 @@ "attrs_inline", ] -# SEO: Enable heading anchors for better deep linking +# SEO: Enable heading anchors myst_heading_anchors = 3 intersphinx_mapping = { @@ -48,40 +51,28 @@ } intersphinx_disabled_domains = ['std'] -templates_path = ['_templates'] +# Build settings exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] -# -- Options for HTML output -html_theme = 'sphinx_rtd_theme' -html_static_path = ['../_static'] # Updated path -html_css_files = [ - 'css/custom.css', - 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css', -] -html_images_path = ['../images'] # Updated path +# Theme settings +html_theme = "sphinx_rtd_theme" -# SEO: Enhanced metadata -html_title = "Jito Labs Documentation - High Performance Solana Infrastructure" -html_short_title = "Jito Docs" -html_baseurl = 'https://docs.jito.wtf' -html_use_opensearch = 'https://docs.jito.wtf' -sitemap_url_scheme = "{link}" +# Add this line +toc_object_entries = True +toc_object_entries_show_parents = "all" -# Theme options html_theme_options = { - 'style_nav_header_background': '#0a0a0a', - 'logo_only': True, - 'prev_next_buttons_location': 'bottom', - 'style_external_links': True, + 'navigation_depth': 6, + 'collapse_navigation': False, # Don't collapse 'sticky_navigation': True, - 'collapse_navigation': False, - 'navigation_depth': 4, + 'titles_only': False, # Show full content 'includehidden': True, - 'titles_only': False, + 'logo_only': True, + 'style_nav_header_background': '#0a0a0a', } # Logo configuration -html_logo = '../images/Jitolabs_Logo_White.png' +html_logo = '../images/Jitolabs_Logo_White.png' html_favicon = '../images/Jitolabs_Logo_White.png' # Source configuration @@ -89,45 +80,30 @@ '.rst': 'restructuredtext', '.md': 'markdown' } + +# Root document settings root_doc = 'index' master_doc = 'index' -# Additional configurations +# Display settings html_show_sourcelink = False html_show_sphinx = False html_copy_source = False +html_show_copyright = True -# Clean URLs -html_link_suffix = '' -html_file_suffix = None -html_permalinks = True -html_permalink_builder = True -html_extra_path = ['robots.txt'] - -# URL handling -html_split_index = False -html_absolute_url = True -html_use_index = True -html_domain_indices = True - -# SEO: Search engine directives -html_robots = { - 'index': True, - 'follow': True, - 'Archive': False, -} - -# Syntax highlighting -pygments_style = 'monokai' +# SEO settings +html_title = "Jito Labs Documentation - High Performance Solana Infrastructure" +html_short_title = "Jito Docs" +html_baseurl = 'https://docs.jito.wtf' +html_use_opensearch = 'https://docs.jito.wtf' +sitemap_url_scheme = "{link}" -# SEO: Better search engine handling html_context = { 'description': 'Official documentation for Jito Labs - Solana MEV, Block Engine, and high-performance infrastructure.', 'keywords': 'solana, jito, mev, block engine, blockchain, trading, infrastructure', - # Add Open Graph metadata here instead of theme options 'og_description': 'Documentation for Jito Labs - High Performance Solana Infrastructure, Block Engine, and MEV Solutions', 'og_type': 'website', - 'og_image': '../images/Jitolabs_Logo_White.png', # Updated path + 'og_image': html_logo, 'canonical_url': set_url, } @@ -136,11 +112,33 @@ locale_dirs = ['locale/'] gettext_compact = False -# Build settings +# Code block settings +pygments_style = 'monokai' html_codeblock_linenos_style = 'table' html_scaled_image_link = False -html_show_copyright = True html_last_updated_fmt = '' -# Make sure epub title is set -epub_title = project +# Basic URL settings +html_link_suffix = '.html' +html_file_suffix = '.html' +html_permalinks = True +html_permalink_builder = True +html_split_index = False +html_absolute_url = True +html_use_index = True +html_domain_indices = True + +# SEO: Search engine directives +html_robots = { + 'index': True, + 'follow': True, + 'Archive': False, +} + +# Important - add this +html_sidebars = { + '**': [ + 'globaltoc.html', + 'searchbox.html' + ] +} \ No newline at end of file diff --git a/docs/source/index.md b/docs/source/index.md index 9b811c0..dbb5520 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -1,52 +1,21 @@ # What is Jito? +Turbocharged Solana trading experience. -