-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Documenter.jl
committed
Jan 23, 2025
0 parents
commit eefb4a3
Showing
309 changed files
with
131,161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"documenter":{"julia_version":"1.11.3","generation_timestamp":"2025-01-23T10:27:10","documenter_version":"1.8.0"}} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// In docs/src/assets/chat-widget.js | ||
document.addEventListener('DOMContentLoaded', function() { | ||
// Create and append the search widget | ||
const searchWidget = document.createElement('gen-search-widget'); | ||
searchWidget.setAttribute('configId', '1bea2ada-cbee-4d63-9154-6e68f77e8aa0'); | ||
searchWidget.setAttribute('triggerId', 'searchWidgetTrigger'); | ||
document.body.appendChild(searchWidget); | ||
|
||
// Find the docs search query element | ||
const docsSearchQuery = document.getElementById('documenter-search-query'); | ||
if (docsSearchQuery) { | ||
// Create container for AI search | ||
const aiSearchContainer = document.createElement('div'); | ||
aiSearchContainer.style.cssText = ` | ||
width: 14.4rem; | ||
`; | ||
aiSearchContainer.classList.add('mx-auto'); | ||
|
||
// Add "or" text | ||
const orText = document.createElement('div'); | ||
orText.textContent = 'or'; | ||
orText.style.cssText = ` | ||
text-align: center; | ||
color: #666; | ||
font-size: 0.9em; | ||
`; | ||
|
||
aiSearchContainer.appendChild(orText); | ||
|
||
// Create and append the trigger input | ||
const searchTrigger = document.createElement('input'); | ||
searchTrigger.setAttribute('placeholder', 'Search with Gemini'); | ||
searchTrigger.setAttribute('id', 'searchWidgetTrigger'); | ||
searchTrigger.classList.add('docs-search-query','input','is-rounded','is-small','is-clickable','my-2','py-1','px-2'); | ||
|
||
aiSearchContainer.appendChild(searchTrigger); | ||
docsSearchQuery.parentNode.insertBefore(aiSearchContainer, docsSearchQuery.nextSibling); | ||
|
||
|
||
} | ||
|
||
// Load the Google Gen AI SDK | ||
const script = document.createElement('script'); | ||
script.src = 'https://cloud.google.com/ai/gen-app-builder/client?hl=en_US'; | ||
document.head.appendChild(script); | ||
}); |
Oops, something went wrong.