mirror of
https://github.com/JonasunderscoreJones/docs.jonasjones.dev.git
synced 2025-10-22 18:49:18 +02:00
Merge pull request #1 from JonasunderscoreJones/search
Added Search functionality with Algolia
This commit is contained in:
commit
5feffd57de
2 changed files with 23 additions and 0 deletions
|
@ -54,6 +54,27 @@ const config = {
|
||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
algolia: {
|
||||||
|
// The application ID provided by Algolia
|
||||||
|
appId: '59JHI8GRGH',
|
||||||
|
|
||||||
|
// Public API key: it is safe to commit it
|
||||||
|
apiKey: '87a26fafb2fb30c39503a44b80fad4cf',
|
||||||
|
|
||||||
|
indexName: 'jonasjones',
|
||||||
|
|
||||||
|
// 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: '/',
|
||||||
|
//},
|
||||||
|
},
|
||||||
prism: {
|
prism: {
|
||||||
additionalLanguages: ['properties', 'ini', 'powershell', 'bash', 'yaml'],
|
additionalLanguages: ['properties', 'ini', 'powershell', 'bash', 'yaml'],
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,9 +14,11 @@
|
||||||
"write-heading-ids": "docusaurus write-heading-ids"
|
"write-heading-ids": "docusaurus write-heading-ids"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@docsearch/js": "^3.8.2",
|
||||||
"@docusaurus/core": "3.5.2",
|
"@docusaurus/core": "3.5.2",
|
||||||
"@docusaurus/preset-classic": "3.5.2",
|
"@docusaurus/preset-classic": "3.5.2",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.0.0",
|
||||||
|
"cheerio": "^1.0.0-rc.12",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.3.0",
|
||||||
"react": "^18.0.0",
|
"react": "^18.0.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue