-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Sitemap and Algolia Search Bar Config
- Loading branch information
1 parent
9305596
commit 575cf02
Showing
5 changed files
with
2,456 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,19 +68,6 @@ const config = { | |
], | ||
|
||
|
||
// plugins: [ | ||
// [ | ||
// '@docusaurus/plugin-content-docs', | ||
// { | ||
// id: 'api', | ||
// path: 'api', | ||
// routeBasePath: 'api', | ||
// sidebarPath: './sidebarsAPI.js', | ||
// // ... other options | ||
// }, | ||
// ], | ||
// ], | ||
|
||
stylesheets: [ | ||
{ | ||
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css', | ||
|
@@ -101,6 +88,39 @@ const config = { | |
respectPrefersColorScheme: false, | ||
}, | ||
|
||
algolia: { | ||
// The application ID provided by Algolia | ||
appId: 'FA8VWNN4PE', | ||
|
||
// Public API key: it is safe to commit it | ||
apiKey: '918f3b86baa18924ad7436755ade2427', | ||
|
||
indexName: 'coredao', | ||
|
||
// 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', | ||
|
||
// // Optional: whether the insights feature is enabled or not on Docsearch (`false` by default) | ||
// insights: false, | ||
|
||
//... other Algolia params | ||
}, | ||
|
||
image: 'img/core.png', | ||
navbar: { | ||
title: 'Core DAO Documentation', | ||
|
@@ -145,12 +165,6 @@ const config = { | |
label: 'Core API', | ||
activeBaseRegex: `/docs/`, | ||
}, | ||
// { | ||
// to: '/api', // ./docs-api/Intro.md | ||
// label: 'Core API', | ||
// position: 'left', | ||
// activeBaseRegex: `/api/`, | ||
// }, | ||
{ | ||
type: 'docSidebar', | ||
sidebarId: 'faqSidebar', | ||
|
Oops, something went wrong.