mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
Search
Trying to get search working
This commit is contained in:
@@ -6,6 +6,16 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
||||
|
||||
/** @type {import('@docusaurus/types').Config} */
|
||||
const config = {
|
||||
|
||||
plugins: [
|
||||
[require.resolve("@easyops-cn/docusaurus-search-local"),
|
||||
{
|
||||
hashed: true,
|
||||
indexDocs: true
|
||||
}
|
||||
],
|
||||
],
|
||||
|
||||
title: 'Actual Budget Documentation',
|
||||
tagline: 'Dinosaurs are cool',
|
||||
url: 'https://your-docusaurus-test-site.com',
|
||||
@@ -94,29 +104,6 @@ const config = {
|
||||
],
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Actual Budget. Built with Docusaurus.`,
|
||||
},
|
||||
algolia: {
|
||||
// The application ID provided by Algolia
|
||||
appId: 'YOUR_APP_ID',
|
||||
|
||||
// Public API key: it is safe to commit it
|
||||
apiKey: 'YOUR_SEARCH_API_KEY',
|
||||
|
||||
indexName: 'YOUR_INDEX_NAME',
|
||||
|
||||
// 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: Algolia search parameters
|
||||
searchParameters: {},
|
||||
|
||||
// Optional: path for search page that enabled by default (`false` to disable it)
|
||||
searchPagePath: 'search',
|
||||
|
||||
//... other Algolia params
|
||||
},
|
||||
prism: {
|
||||
theme: lightCodeTheme,
|
||||
darkTheme: darkCodeTheme,
|
||||
|
||||
Reference in New Issue
Block a user