Skip to content

Commit

Permalink
支持搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
walon committed Jun 20, 2023
1 parent 3b46324 commit 206ab20
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/other/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@
- han 170487453@qq.com
- 鲶巴啷 (657542753)
- C和弦® (632020710)
- 王二 (1282695408)
29 changes: 29 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,35 @@ const config = {
darkTheme: darkCodeTheme,
additionalLanguages: ['csharp', 'cpp'],
},
algolia: {
// The application ID provided by Algolia
appId: 'MHX0T95QPO',

// Public API key: it is safe to commit it
apiKey: '6f676c54be649ee5890b35572a9e7ba3',

indexName: 'hybridclrcode-philosophy',

// 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: '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: {
// 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
},
}),
};

Expand Down

0 comments on commit 206ab20

Please sign in to comment.