diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index a6ed612..b986427 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -305,11 +305,11 @@ const config: Config = { href: `https://github.com/xpack-dev-tools/xpack-build-box/`, }, { - 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/', }, ] @@ -373,11 +373,11 @@ const config: Config = { href: 'https://github.com/xpack-dev-tools/xpack-build-box/', }, { - 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/', }, ], @@ -389,6 +389,7 @@ const config: Config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, + // https://docusaurus.io/docs/search#using-algolia-docsearch algolia: { // https://docsearch.algolia.com/docs/docsearch-v3/ appId: "KIDD7R4CL1", @@ -397,7 +398,7 @@ const config: Config = { // It ensures that search results are relevant to the current // language and version. Enabled by default. - contextualSearch: false, // true, + contextualSearch: true, // 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 @@ -406,7 +407,9 @@ const config: Config = { // Optional: Algolia search parameters searchParameters: {}, // Optional: path for search page that enabled by default (`false` to disable it) - searchPagePath: false, // 'search', + searchPagePath: 'search', + // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default) + insights: false, }, } satisfies Preset.ThemeConfig, diff --git a/website/package-lock.json b/website/package-lock.json index 77c09c6..3883468 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -38,13 +38,11 @@ "../../../xpack.github/packages/docusaurus-template-liquid.git": { "name": "@xpack/docusaurus-template-liquid", "version": "0.0.0", - "extraneous": true, "license": "MIT" }, "../../../xpack.github/packages/npm-packages-helper.git": { "name": "@xpack/npm-packages-helper", "version": "1.0.0", - "extraneous": true, "license": "MIT", "devDependencies": {}, "engines": { @@ -4623,6 +4621,14 @@ "@xtuc/long": "4.2.2" } }, + "node_modules/@xpack/docusaurus-template-liquid": { + "resolved": "../../../xpack.github/packages/docusaurus-template-liquid.git", + "link": true + }, + "node_modules/@xpack/npm-packages-helper": { + "resolved": "../../../xpack.github/packages/npm-packages-helper.git", + "link": true + }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", "license": "BSD-3-Clause"