Skip to content

Commit

Permalink
Merge pull request #12 from fuseio/feat/doc-fixes
Browse files Browse the repository at this point in the history
search
  • Loading branch information
NikolayRn committed Apr 9, 2023
2 parents e967509 + 224b548 commit dced3cb
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 4 deletions.
32 changes: 28 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,38 @@ const config = {
},
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
algolia: {
// The application ID provided by Algolia
appId: 'JSFYQGECI7',

// Public API key: it is safe to commit it
apiKey: '2a8a6ef22e32bf775c4f948b1ea79350',

indexName: 'fuse--fuse-team-v2',

// 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


// Optional: Algolia search parameters
searchParameters: {},

// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',

//... other Algolia params
},
navbar: {
logo: {
alt: "Fuse_logo",
src: "img/fuse-logo.svg",
},

items: [
{
type: "search",
Expand Down Expand Up @@ -171,10 +198,7 @@ const config = {
// theme: lightCodeTheme,
// darkTheme: darkCodeTheme,
// },

// algolia: {
// contextualSearch: true,
// },

}),

};
Expand Down
27 changes: 27 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,33 @@
--ifm-color-primary-lighter: #bdf8c5;
--ifm-color-primary-lightest: #f0fef2;
}



:root .DocSearch {
--docsearch-primary-color: var(--ifm-color-primary);
/* --docsearch-highlight-color: var(--ifm-color-primary); */
/* --docsearch-searchbox-background: var(--ifm-color-primary); */
/* --docsearch-text-color: var(--ifm-font-color-base); */
--docsearch-muted-color: rgba(94, 100, 112, 0.7);
--docsearch-container-background: rgba(94, 100, 112, 0.7);
/* Modal */
--docsearch-modal-background: var(--ifm-color-secondary-lighter);
/* Search box */
--docsearch-searchbox-background: var(--ifm-color-secondary);
--docsearch-searchbox-focus-background: var(--ifm-color-white);
/* Hit */
--docsearch-hit-color: var(--ifm-font-color-base);
--docsearch-hit-active-color: var(--ifm-color-white);
--docsearch-hit-background: var(--ifm-color-white);
/* Footer */
--docsearch-footer-background: var(--ifm-color-white);
}

.DocSearch-Logo{
display: none;
}

.theme-doc-footer-edit-meta-row{
background-color: #F3F3F3;
}
Expand Down

1 comment on commit dced3cb

@vercel
Copy link

@vercel vercel bot commented on dced3cb Apr 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fuse-docs – ./

fuse-docs-fuse-team-v2.vercel.app
fuse-docs-git-master-fuse-team-v2.vercel.app

Please sign in to comment.