Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 25 additions & 21 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,35 +68,39 @@ const config: Config = {
// disableSwitch: false,
// respectPrefersColorScheme: false,
},
// algolia: {
// // The application ID provided by Algolia
// appId: 'YOUR_APP_ID',
algolia: {
// The application ID provided by Algolia
appId: 'CKFAW48CDG',

// // Public API key: it is safe to commit it
// apiKey: 'YOUR_SEARCH_API_KEY',
// Public API key: it is safe to commit it
apiKey: 'adb8f04cf88389128677f5ff758faf9d',

// indexName: 'YOUR_INDEX_NAME',
indexName: 'common-utils-pkg-js-v2',

// // Optional: see doc section below
// contextualSearch: true,
// 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: 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: 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: '/api/', // or as RegExp: /\/docs\//
// to: '/',
// },

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

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

// //... other Algolia params
// },
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
// insights: false,

// Optional: whether you want to use the new Ask AI feature (undefined by default)
// askAi: 'YOUR_ALGOLIA_ASK_AI_ASSISTANT_ID',
},
navbar: {
title: 'Common Utilities Package',
logo: {
Expand Down
1 change: 0 additions & 1 deletion scripts/md-generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const getDirectories = async (source) =>
.map((dirent) => dirent.name);

const methodDirectory = await getDirectories('src/');
console.log('🍉debuu ~ methodDirectory:', methodDirectory);

// generate the _category_.json for docusaurus again
// fs.writeFileSync(
Expand Down
40 changes: 40 additions & 0 deletions src-docusaurus/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,43 @@ img[src*='#center'] {
display: block;
margin: auto;
}

[data-theme='light'] .DocSearch {
/* --docsearch-primary-color: var(--ifm-color-primary); */
/* --docsearch-text-color: var(--ifm-font-color-base); */
--docsearch-muted-color: var(--ifm-color-secondary-darkest);
--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);
}

[data-theme='dark'] .DocSearch {
--docsearch-text-color: var(--ifm-font-color-base);
--docsearch-muted-color: var(--ifm-color-secondary-darkest);
--docsearch-container-background: rgba(47, 55, 69, 0.7);
/* Modal */
--docsearch-modal-background: var(--ifm-background-color);
/* Search box */
--docsearch-searchbox-background: var(--ifm-background-color);
--docsearch-searchbox-focus-background: var(--ifm-color-black);
/* Hit */
--docsearch-hit-color: var(--ifm-font-color-base);
--docsearch-hit-active-color: var(--ifm-color-white);
--docsearch-hit-background: var(--ifm-color-emphasis-100);
/* Footer */
--docsearch-footer-background: var(--ifm-background-surface-color);
--docsearch-key-gradient: linear-gradient(
-26.5deg,
var(--ifm-color-emphasis-200) 0%,
var(--ifm-color-emphasis-100) 100%
);
}
Loading