Skip to content

Commit 33e3e61

Browse files
committed
Fix search functionality: update data, fix URLs, remove unused files
- Updated search data to include all 10 actual pages (was only 4) - Fixed URL mappings to match Jekyll structure (removed .html extensions) - Added comprehensive search coverage for all markdown files - Removed unused search-data.json file - Standardized search.html include structure - Search now covers: Business Users, FAQ, Support, Use Cases, Products, etc.
1 parent 32337f0 commit 33e3e61

File tree

4 files changed

+200
-128
lines changed

4 files changed

+200
-128
lines changed

_includes/search.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
<input type="text" class="search-input" placeholder="Search Ona Documentation" aria-label="Search">
1+
<input type="text" id="search-input" placeholder="Search the Docs" aria-label="Search">
2+
<div id="search-results" class="search-results"></div>

assets/js/search-data.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

assets/js/search.js

Lines changed: 133 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,139 @@
11
document.addEventListener('DOMContentLoaded', function() {
22
const searchInput = document.getElementById('search-input');
33
const searchResults = document.getElementById('search-results');
4-
5-
// Define static search data for basic functionality with h2 and h3 headers
6-
const searchData = [
7-
{
8-
title: "Introduction",
9-
url: "/index.html",
10-
content: "Welcome to the Ona API Platform! Here's how you can get started with onboarding and integrating our powerful API into your systems. You have the option of accessing Ona's capabilities via our On-Demand web app, or by embedding the API directly within your own technology stack.",
11-
sections: [
12-
{ title: "Getting Started", id: "getting-started" },
13-
{ title: "Onboarding: On-Demand Web App", id: "onboarding-web-app" },
14-
{ title: "Onboarding: API Integration", id: "onboarding-api-integration" },
15-
{ title: "Data Preparation", id: "data-preparation" },
16-
{ title: "API Configuration and Integration", id: "api-configuration" },
17-
{ title: "Testing and Validation", id: "testing-validation" }
18-
]
19-
},
20-
{
21-
title: "API Endpoints",
22-
url: "/endpoints.html",
23-
content: "This guide details the APIs available in the Ona ecosystem, including their base URLs, endpoints, request parameters, and response structures. The API system dynamically routes requests to the appropriate regional endpoint based on a region query parameter, processed via CloudFront and Lambda@Edge.",
24-
sections: [
25-
{ title: "ingestHistoricalLoadData API", id: "ingestHistoricalLoadData" },
26-
{ title: "ingestNowcastLoadData API", id: "ingestNowcastLoadData" },
27-
{ title: "trainForecaster API", id: "trainForecaster" },
28-
{ title: "returnForecastingResults API", id: "returnForecastingResults" },
29-
{ title: "interpolateData API", id: "interpolateData" }
30-
]
31-
},
32-
{
33-
title: "Ona SDK",
34-
url: "/sdk.html",
35-
content: "This reference documents every object and method available in Ona's SDK for seamless integration with the Ona API Platform. Use our SDK to upload large historical datasets, retrieve pre-signed URLs for secure file uploads, and interact programmatically with Ona's APIs for energy forecasting, dispatching, and analysis.",
36-
sections: [
37-
{ title: "Getting Started with the Ona SDK", id: "getting-started" },
38-
{ title: "Installation", id: "installation" },
39-
{ title: "Usage Examples", id: "usage-examples" },
40-
{ title: "API Reference", id: "api-reference" },
41-
{ title: "Troubleshooting", id: "troubleshooting" }
42-
]
43-
},
44-
{
45-
title: "Ona On-Demand",
46-
url: "/analyst.html",
47-
content: "Welcome to Ona On-Demand—your comprehensive web app for navigating complex energy policies and managing grid operations with ease. This guide will help you get started quickly, understand best practices for interacting with the app, and explore key features.",
48-
sections: [
49-
{ title: "Getting Started with Ona On-Demand", id: "getting-started-with-ona-on-demand" },
50-
{ title: "Ona Policy Analyst", id: "ona-policy-analyst" },
51-
{ title: "Grid Operations", id: "grid-operations" },
52-
{ title: "On-Demand Model Training", id: "on-demand-model-training" }
53-
]
54-
}
4+
// Define comprehensive search data covering all site content
5+
const searchData = [
6+
{
7+
title: "Energy Forecasting Made Simple",
8+
url: "/",
9+
content: "See how Ona's platform transforms solar asset management in just 2 minutes. Welcome to the Ona API Platform! Here's how you can get started with onboarding and integrating our powerful API into your systems. You have the option of accessing Ona's capabilities via our On-Demand web app, or by embedding the API directly within your own technology stack.",
10+
sections: [
11+
{ title: "Watch the Demo", id: "watch-the-demo" },
12+
{ title: "Choose Your Path", id: "choose-your-path" },
13+
{ title: "Products & Services", id: "products-services" },
14+
{ title: "Industry Use Cases", id: "industry-use-cases" },
15+
{ title: "Quick Start Options", id: "quick-start-options" },
16+
{ title: "Python Quickstart", id: "python-quickstart" },
17+
{ title: "SDK Quickstart", id: "sdk-quickstart" },
18+
{ title: "REST API Quickstart", id: "api-quickstart" }
19+
]
20+
},
21+
{
22+
title: "Business Users",
23+
url: "/business-users",
24+
content: "Solutions designed for solar asset owners, O&M teams, and energy managers who need to optimize performance and maximize returns. Asset Performance Monitoring, Predictive Maintenance, Financial Impact Analysis.",
25+
sections: [
26+
{ title: "Asset Performance Monitoring", id: "asset-performance-monitoring" },
27+
{ title: "Predictive Maintenance", id: "predictive-maintenance" },
28+
{ title: "Financial Impact Analysis", id: "financial-impact-analysis" },
29+
{ title: "Getting Started for Business Users", id: "getting-started-business-users" },
30+
{ title: "Success Stories", id: "success-stories" }
31+
]
32+
},
33+
{
34+
title: "FAQ",
35+
url: "/faq",
36+
content: "Find answers to the most common questions about Ona's energy management platform. Technical Questions, Business Questions, Distributed Compute Questions, Support Information.",
37+
sections: [
38+
{ title: "Technical Questions", id: "technical-questions" },
39+
{ title: "Business Questions", id: "business-questions" },
40+
{ title: "Distributed Compute Questions", id: "distributed-compute-questions" },
41+
{ title: "Support Information", id: "support-information" }
42+
]
43+
},
44+
{
45+
title: "Help & Support",
46+
url: "/support",
47+
content: "Get the help you need to make the most of Ona's energy management platform. Quick Help, Contact Support, Documentation & Resources, System Status, Training & Education.",
48+
sections: [
49+
{ title: "Quick Help", id: "quick-help" },
50+
{ title: "Contact Support", id: "contact-support" },
51+
{ title: "Documentation & Resources", id: "documentation-resources" },
52+
{ title: "System Status", id: "system-status" },
53+
{ title: "Training & Education", id: "training-education" },
54+
{ title: "Feedback & Feature Requests", id: "feedback-feature-requests" }
55+
]
56+
},
57+
{
58+
title: "Use Cases",
59+
url: "/use-cases",
60+
content: "Industry-specific solutions designed to address the unique challenges of solar energy management. O&M Optimization, Insurance & Risk Management, Implementation Roadmap.",
61+
sections: [
62+
{ title: "O&M Optimization", id: "om-optimization" },
63+
{ title: "Insurance & Risk Management", id: "insurance-risk-management" },
64+
{ title: "Implementation Roadmap", id: "implementation-roadmap" },
65+
{ title: "Getting Started", id: "getting-started" }
66+
]
67+
},
68+
{
69+
title: "O&M Optimization",
70+
url: "/use-cases/oam",
71+
content: "AI-powered operations and maintenance optimization for solar assets using the OODA loop methodology. The OODA Loop Methodology, Asset Management, AI-Assisted Analysis, Economic Optimization.",
72+
sections: [
73+
{ title: "The OODA Loop Methodology", id: "ooda-loop-methodology" },
74+
{ title: "Key Use Case Scenarios", id: "key-use-case-scenarios" },
75+
{ title: "Asset Management", id: "asset-management" },
76+
{ title: "AI-Assisted Analysis", id: "ai-assisted-analysis" },
77+
{ title: "Economic Optimization", id: "economic-optimization" },
78+
{ title: "Integration Capabilities", id: "integration-capabilities" },
79+
{ title: "Performance Metrics", id: "performance-metrics" }
80+
]
81+
},
82+
{
83+
title: "Insurance & Risk Management",
84+
url: "/use-cases/insurance",
85+
content: "AI-driven insurance platform for solar assets with live monitoring, automated document review, and instant parametric payouts. Business Problem, How the System Works, Business Impact & ROI.",
86+
sections: [
87+
{ title: "Business Problem", id: "business-problem" },
88+
{ title: "How the System Works", id: "how-system-works" },
89+
{ title: "Business Impact & ROI", id: "business-impact-roi" },
90+
{ title: "Key Features", id: "key-features" },
91+
{ title: "Integration Capabilities", id: "integration-capabilities" },
92+
{ title: "Use Case Scenarios", id: "use-case-scenarios" }
93+
]
94+
},
95+
{
96+
title: "Products & Services",
97+
url: "/products",
98+
content: "Comprehensive energy management solutions designed for different user types and use cases. Our Platform, Platform Capabilities, Choose Your Interface, Integration Options.",
99+
sections: [
100+
{ title: "Our Platform", id: "our-platform" },
101+
{ title: "Platform Capabilities", id: "platform-capabilities" },
102+
{ title: "Choose Your Interface", id: "choose-your-interface" },
103+
{ title: "Integration Options", id: "integration-options" },
104+
{ title: "Getting Started", id: "getting-started" },
105+
{ title: "Pricing & Plans", id: "pricing-plans" }
106+
]
107+
},
108+
{
109+
title: "Ona Terminal",
110+
url: "/products/terminal",
111+
content: "AI-powered command-line interface for energy asset management with OODA workflow capabilities. Overview, Key Features, Getting Started, Core Commands, Configuration, Use Cases, Advanced Features.",
112+
sections: [
113+
{ title: "Overview", id: "overview" },
114+
{ title: "Key Features", id: "key-features" },
115+
{ title: "Getting Started", id: "getting-started" },
116+
{ title: "Core Commands", id: "core-commands" },
117+
{ title: "Configuration", id: "configuration" },
118+
{ title: "Use Cases", id: "use-cases" },
119+
{ title: "Advanced Features", id: "advanced-features" }
120+
]
121+
},
122+
{
123+
title: "EnergyAnalyst",
124+
url: "/products/analyst",
125+
content: "AI-powered regulatory compliance and policy analysis for energy markets. Overview, Key Capabilities, Model Architecture, Performance Metrics, Getting Started, Use Cases, Example Analysis.",
126+
sections: [
127+
{ title: "Overview", id: "overview" },
128+
{ title: "Key Capabilities", id: "key-capabilities" },
129+
{ title: "Model Architecture", id: "model-architecture" },
130+
{ title: "Performance Metrics", id: "performance-metrics" },
131+
{ title: "Getting Started", id: "getting-started" },
132+
{ title: "Use Cases", id: "use-cases" },
133+
{ title: "Example Analysis", id: "example-analysis" },
134+
{ title: "Limitations", id: "limitations" }
135+
]
136+
}
55137
];
56138

57139
// Handle search input

0 commit comments

Comments
 (0)