Skip to content

Commit defa07c

Browse files
jessiemongeon1sesi200marc0olo
authored
replace local search with Algolia search (#5555)
* Algolia search * Update .ic-assets.json * Update .ic-assets.json * Update .ic-assets.json * Create submodule.yml * Update submodule.yml * Update submodule.yml * Update submodule.yml * Update submodule.yml * Update and rename submodule.yml to check_submodule.yml * Update CODEOWNERS * Update check_submodule.yml * Update .github/workflows/check_submodule.yml Co-authored-by: Severin Siffert <[email protected]> * fix motoko sub version * fix sdk sub version * merge master * fix placeholder text --------- Co-authored-by: Severin Siffert <[email protected]> Co-authored-by: Marco Walz <[email protected]>
1 parent 742f262 commit defa07c

38 files changed

+49
-9855
lines changed

.github/workflows/update-search.yml

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

docusaurus.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,6 @@ const config = {
587587
organizationName: "dfinity",
588588
projectName: "portal",
589589
customFields: {
590-
searchCanisterId: "5qden-jqaaa-aaaam-abfpa-cai",
591590
marketingNav,
592591
},
593592
markdown: {
@@ -692,6 +691,19 @@ const config = {
692691
// but to do that type preset- classic had to be disabled below
693692
// /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
694693
{
694+
algolia: {
695+
// The application ID provided by Algolia
696+
appId: 'B0O3KB7MGW',
697+
698+
// Public API key: it is safe to commit it
699+
apiKey: '43d8a7a6f4697a580cdf0cb021affddb',
700+
701+
indexName: 'internetcomputer',
702+
703+
contextualSearch: true,
704+
705+
insights: true,
706+
},
695707
image: "/img/share.webp",
696708
colorMode: {
697709
disableSwitch: false,

package-lock.json

Lines changed: 20 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)