Skip to content

Commit

Permalink
feat: use algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Oct 23, 2024
1 parent 0301b43 commit 14f032c
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 9,065 deletions.
25 changes: 7 additions & 18 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import footerLinks from "./config/footer-links.json";
import navbarLinks from "./config/navbar-links.json";
import remarkMath from "remark-math";
Expand Down Expand Up @@ -61,7 +61,6 @@ const config: Config = {
} satisfies Preset.Options,
],
],
themes: ["docusaurus-theme-search-typesense"],
themeConfig: {
// Replace with your project's social card
image: "img/aelficon.png",
Expand Down Expand Up @@ -105,20 +104,10 @@ const config: Config = {
hideable: true, // https://docusaurus.io/docs/sidebar#hideable-sidebar
},
},
typesense: {
typesenseCollectionName: process.env.TYPESENSE_COLLECTION_NAME,
typesenseServerConfig: {
nodes: [
{
host: process.env.TYPESENSE_SERVER_HOST,
port: 443,
protocol: "https",
},
],
apiKey: process.env.TYPESENSE_SEARCH_ONLY_APIKEY,
},
typesenseSearchParameters: {},
contextualSearch: true,
algolia: {
appId: "IG99ZJRXDW",
apiKey: "0e3c2389292b3d211032f3843fa8eb6d",
indexName: "aelf",
},
} satisfies Preset.ThemeConfig,
stylesheets: [
Expand Down
Loading

0 comments on commit 14f032c

Please sign in to comment.