Skip to content

Commit

Permalink
website: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Jan 3, 2025
1 parent 309a7f3 commit 31e065f
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ const config: Config = {
href: `https://github.com/xpack/mock-console-ts/`,
},
{
label: 'xpack',
label: 'xpack org',
href: 'https://github.com/xpack/',
},
{
label: 'xpack-dev-tools',
label: 'xpack-dev-tools org',
href: 'https://github.com/xpack-dev-tools/',
},
]
Expand Down Expand Up @@ -431,11 +431,11 @@ const config: Config = {
href: 'https://github.com/xpack/mock-console-ts/',
},
{
label: 'GitHub xpack',
label: 'GitHub xpack org',
href: 'https://github.com/xpack/',
},
{
label: 'GitHub xpack-dev-tools',
label: 'GitHub xpack-dev-tools org',
href: 'https://github.com/xpack-dev-tools/',
},
],
Expand All @@ -448,24 +448,41 @@ const config: Config = {
darkTheme: prismThemes.dracula,
},
// https://docusaurus.io/docs/search#using-algolia-docsearch
// https://docsearch.algolia.com/docs/docsearch-v3/
algolia: {
// https://docsearch.algolia.com/docs/docsearch-v3/
// The application ID provided by Algolia
appId: "KIDD7R4CL1",

// Public API key: it is safe to commit it
apiKey: "ca2ffc431941284609f2d50202fc5506",

indexName: "xpackio",

// It ensures that search results are relevant to the current
// language and version. Enabled by default.
contextualSearch: true,

// 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.
// externalUrlRegex: 'external\\.com|domain\\.com',

// 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
// replaceSearchResultPathname: undefined,
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },

// Optional: Algolia search parameters
searchParameters: {},

// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',

// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
insights: false,
},
Expand Down

0 comments on commit 31e065f

Please sign in to comment.