Skip to content

Commit a6060e0

Browse files
committed
bugfix: replace vimeo with youtube
1 parent cd4c23d commit a6060e0

File tree

3 files changed

+86
-97
lines changed

3 files changed

+86
-97
lines changed

site-search/content-sites.mdx

+72-57
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,29 @@ title: SiteSearch Content Sites Guide
33
description: "Step by step guide on setting up a scrape of any help center, blog, or content site, configuring the web component, and adding the script tag to your site."
44
---
55

6-
<div id="vimeo-content-guide"></div>
6+
## Video Guide
7+
8+
<Frame>
9+
<iframe
10+
width="560"
11+
height="315"
12+
src="https://www.youtube.com/embed/_FUHj3XF8O0?si=KR9Ke8gCBer4crGO"
13+
title="YouTube video player"
14+
frameborder="0"
15+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
16+
referrerpolicy="strict-origin-when-cross-origin"
17+
allowfullscreen
18+
></iframe>
19+
</Frame>
720

821
## How to use Trieve SiteSearch for Content Sites
922

1023
This guide will walk you through setting up Trieve SiteSearch for a blog, help center, or any other content site.
1124

1225
<Note>
13-
If you are interested in the business context of us developing this product, you can read more about it in the [introduction section here](/site-search/introduction#background).
26+
If you are interested in the business context of us developing this product,
27+
you can read more about it in the [introduction section
28+
here](/site-search/introduction#background).
1429
</Note>
1530

1631
## Steps to set up Trieve SiteSearch for your Content Site
@@ -88,7 +103,7 @@ Here are some common guides for adding a script tag to common platforms. You may
88103
- [Adding a script tag to an Elementor site](https://elementor.com/help/custom-code-pro/)
89104
- [Adding a script tag to a WordPress site](https://www.wpbeginner.com/beginners-guide/how-to-easily-add-javascript-in-wordpress-pages-or-posts/)
90105

91-
-------
106+
---
92107

93108
## Optional Testing with tampermonkey
94109

@@ -129,27 +144,27 @@ Once you have copied the code block, navigate to the site you intend to add the
129144
Replace the contents of the new tampermonkey script with the following code block starting below the commented lines at the top.
130145

131146
```javascript tampermonkey script {17}
132-
(function() {
133-
'use strict';
134-
135-
const link = document.createElement("link");
136-
link.rel = "stylesheet";
137-
link.href = "https://search-component.trieve.ai/dist/index.css";
138-
document.head.appendChild(link);
139-
140-
import('https://search-component.trieve.ai/dist/vanilla/index.js')
141-
.then((module) => {
142-
const root = document.createElement('div');
143-
root.classList.add('trigger');
144-
document.body.appendChild(root);
145-
146-
module.renderToDiv(root, {
147-
// <to be replaced with the props from the demo page>
148-
});
149-
})
150-
.catch(error => {
151-
console.error("Failed to load search comonent:", error);
152-
});
147+
(function () {
148+
"use strict";
149+
150+
const link = document.createElement("link");
151+
link.rel = "stylesheet";
152+
link.href = "https://search-component.trieve.ai/dist/index.css";
153+
document.head.appendChild(link);
154+
155+
import("https://search-component.trieve.ai/dist/vanilla/index.js")
156+
.then((module) => {
157+
const root = document.createElement("div");
158+
root.classList.add("trigger");
159+
document.body.appendChild(root);
160+
161+
module.renderToDiv(root, {
162+
// <to be replaced with the props from the demo page>
163+
});
164+
})
165+
.catch((error) => {
166+
console.error("Failed to load search comonent:", error);
167+
});
153168
})();
154169
```
155170

@@ -171,38 +186,38 @@ Your final result should look something like this for the [fireship.io site in e
171186
// @grant none
172187
// ==/UserScript==
173188

174-
(function() {
175-
'use strict';
176-
177-
const link = document.createElement("link");
178-
link.rel = "stylesheet";
179-
link.href = "https://search-component.trieve.ai/dist/index.css";
180-
document.head.appendChild(link);
181-
182-
import('https://search-component.trieve.ai/dist/vanilla/index.js')
183-
.then((module) => {
184-
const root = document.createElement('div');
185-
root.classList.add('trigger');
186-
document.body.appendChild(root);
187-
188-
module.renderToDiv(root, {
189-
apiKey: "tr-ry8EUHNioE2pVKcS37l5u31EGbU5wMk9",
190-
datasetId: "930bee1b-9ce9-4e27-8939-3245937f9d41",
191-
baseUrl: "https://api.trieve.ai",
192-
type: "docs",
193-
analytics: true,
194-
brandLogoImgSrcUrl: "https://avatars.githubusercontent.com/u/46283609?s=200&v=4",
195-
brandName: "Fireship",
196-
brandColor: "#ff3e00",
197-
placeholder: "Search...",
198-
defaultSearchMode: "chat",
199-
showFloatingButton: "true",
200-
theme: "dark",
201-
});
202-
})
203-
.catch(error => {
204-
console.error("Failed to load search comonent:", error);
205-
});
189+
(function () {
190+
"use strict";
191+
192+
const link = document.createElement("link");
193+
link.rel = "stylesheet";
194+
link.href = "https://search-component.trieve.ai/dist/index.css";
195+
document.head.appendChild(link);
196+
197+
import("https://search-component.trieve.ai/dist/vanilla/index.js")
198+
.then((module) => {
199+
const root = document.createElement("div");
200+
root.classList.add("trigger");
201+
document.body.appendChild(root);
202+
203+
module.renderToDiv(root, {
204+
apiKey: "tr-ry8EUHNioE2pVKcS37l5u31EGbU5wMk9",
205+
datasetId: "930bee1b-9ce9-4e27-8939-3245937f9d41",
206+
baseUrl: "https://api.trieve.ai",
207+
type: "docs",
208+
analytics: true,
209+
brandLogoImgSrcUrl:
210+
"https://avatars.githubusercontent.com/u/46283609?s=200&v=4",
211+
brandName: "Fireship",
212+
brandColor: "#ff3e00",
213+
placeholder: "Search...",
214+
defaultSearchMode: "chat",
215+
showFloatingButton: "true",
216+
theme: "dark",
217+
});
218+
})
219+
.catch((error) => {
220+
console.error("Failed to load search comonent:", error);
221+
});
206222
})();
207223
```
208-

site-search/ecommerce.mdx

+14-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,20 @@ title: SiteSearch Ecommerce Guide
33
description: "Step by step guide on setting up a scrape of any shopify store, configuring the web component, and adding the script tag to your site."
44
---
55

6-
<div id="vimeo-ecommerce-guide"></div>
6+
## Video Guide
7+
8+
<Frame>
9+
<iframe
10+
width="560"
11+
height="315"
12+
src="https://www.youtube.com/embed/_FUHj3XF8O0?si=U87I7Mh2POlDyK-3"
13+
title="YouTube video player"
14+
frameborder="0"
15+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
16+
referrerpolicy="strict-origin-when-cross-origin"
17+
allowfullscreen
18+
></iframe>
19+
</Frame>
720

821
## How to use Trieve SiteSearch for Ecommerce Storefronts
922

site-search/vimeo.js

-39
This file was deleted.

0 commit comments

Comments
 (0)