Skip to content

Commit 14f49c6

Browse files
committed
chore: move header scripts
1 parent aa58a41 commit 14f49c6

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

restorecommerce-docs.patch

-10
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,6 @@ index 8a094a4..1ac4540 100644
274274
</div>
275275
</div>
276276
</div>
277-
diff --git a/src/partials/header-scripts.hbs b/src/partials/header-scripts.hbs
278-
index b9e907c..67663df 100644
279-
--- a/src/partials/header-scripts.hbs
280-
+++ b/src/partials/header-scripts.hbs
281-
@@ -1 +1,5 @@
282-
{{!-- Add header scripts here --}}
283-
+<link rel="stylesheet"
284-
+ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
285-
+<link rel="stylesheet"
286-
+ href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css"/>
287277
diff --git a/src/partials/toolbar.hbs b/src/partials/toolbar.hbs
288278
index c6e9ea6..a6ec810 100644
289279
--- a/src/partials/toolbar.hbs
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<link rel="stylesheet"
2+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
3+
<link rel="stylesheet"
4+
href="https://cdn.jsdelivr.net/npm/@docsearch/css@3"/>
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
1+
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
22
<script>
33
docsearch({
4-
apiKey: '{{env.SEARCH_API_KEY}}',
5-
appId: '{{env.SEARCH_APP_ID}}',
6-
indexName: '{{env.SEARCH_INDEX_NAME}}',
7-
inputSelector: '#search-input',
4+
appId: '6R8M1A8Y4W',
5+
apiKey: 'c841b401396e9fbf7feee5d82a638003',
6+
indexName: 'restorecommerce',
7+
container: '#search-field',
88
debug: true,
99
})
1010
</script>

0 commit comments

Comments
 (0)