This is an automated email from the ASF dual-hosted git repository.
ic4y pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git
The following commit(s) were added to refs/heads/main by this push:
new cb3c4ab15e0 [Feature][Doc] Add global search functionality to the
official website documentation. #5246 (#265)
cb3c4ab15e0 is described below
commit cb3c4ab15e00f2b9924f1b9fccd07a3aa83eb07d
Author: javalover123 <[email protected]>
AuthorDate: Tue Sep 5 16:21:18 2023 +0800
[Feature][Doc] Add global search functionality to the official website
documentation. #5246 (#265)
https://github.com/apache/seatunnel/issues/5246
---
docusaurus.config.js | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 84ab1a98517..8070f2e300f 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -270,6 +270,30 @@ const config = {
// would collapse all sibling categories when expanding one category
autoCollapseSidebarCategories: true,
+ // https://docusaurus.io/zh-CN/docs/search#connecting-algolia
+ algolia: {
+ // The application ID provided by Algolia
+ appId: 'S2J1A7LWND',
+ // Public API key: it is safe to commit it
+ apiKey: 'a19997f611a73120d7dfb30af9db4d3a',
+ indexName: 'seatunnel-apache',
+
+ // Optional: see doc section below
+ 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: 'seatunnel\\.apache\\.org',
+ // 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: {
+ 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',
+ //... other Algolia params
+ },
+
}),
plugins: [
'docusaurus-plugin-less',