Skip to content

Commit fec209c

Browse files
committed
feat: update Algolia search config and button hover states
1 parent 562f6b0 commit fec209c

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

docusaurus.config.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -211,28 +211,13 @@ const config = {
211211
// Public API key: it is safe to commit it
212212
apiKey: '43fd4ebb5bb9875aa8764793ff9a09ff',
213213

214-
indexName: 'Defang Docs',
214+
indexName: 'prod_DOCS',
215215

216216
// Optional: see doc section below
217-
contextualSearch: true,
218-
219-
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
220-
externalUrlRegex: 'external\\.com|domain\\.com',
221-
222-
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
223-
replaceSearchResultPathname: {
224-
from: '/docs/', // or as RegExp: /\/docs\//
225-
to: '/',
226-
},
227-
228-
// Optional: Algolia search parameters
229-
searchParameters: {},
230-
231-
// Optional: path for search page that enabled by default (`false` to disable it)
232-
searchPagePath: 'search',
217+
contextualSearch: false,
233218

234219
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
235-
insights: false,
220+
insights: true,
236221

237222
// Optional: whether you want to use the new Ask AI feature (undefined by default)
238223
askAi: 'MUO629LjH0L5',

src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function Home() {
8383
These docs walk through the workflows, architecture patterns, and reference deployments that power modern teams.
8484
</p>
8585
<div className="flex flex-col items-center gap-4 md:flex-row md:items-center md:gap-6">
86-
<Button asChild size="lg" className="w-full md:w-auto">
86+
<Button asChild size="lg" className="w-full md:w-auto hover:text-white">
8787
<Link to="/docs/getting-started">
8888
Launch quickstart
8989
<ArrowRight className="ml-2 h-4 w-4" aria-hidden="true" />
@@ -222,7 +222,7 @@ export default function Home() {
222222
<CardDescription>{description}</CardDescription>
223223
</CardHeader>
224224
<CardContent className="pt-2">
225-
<Button asChild variant="ghost" className="gap-2 px-0 text-sm font-semibold">
225+
<Button asChild variant="ghost" className="gap-2 px-0 text-sm font-semibold hover:bg-transparent">
226226
<Link to={href}>
227227
Read the update
228228
<ArrowRight className="h-4 w-4" aria-hidden="true" />

0 commit comments

Comments
 (0)