Skip to content
Open
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
2 changes: 1 addition & 1 deletion docs-md/api/arrayRemoveItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Returns **[array][1]** of strings without the removed element.
[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String


* Source: [array-remove-item.ts](https://github.com/iamdevlinph/common-utils-pkg/blob/main/src/array-remove-item/array-remove-item.ts#L16-L18)
* Source: [array-remove-item.ts](https://github.com/iamdevlinph/common-utils-pkg/blob/main/src/array-remove-item/array-remove-item.ts#L16-L18)
2 changes: 0 additions & 2 deletions docs-md/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ sidebar_label: Getting started
title: Getting started
---

Welcome to the new look!

# Getting started

![img](img/js-pkg.png#center)
Expand Down
51 changes: 30 additions & 21 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,42 +58,51 @@ const config: Config = {
],

themeConfig: {
announcementBar: {
id: 'new_look',
content: 'Welcome to the new look!',
backgroundColor: '#fafbfc',
textColor: '#091E42',
isCloseable: true,
},
// Replace with your project's social card
image: 'img/js-pkg.png',
colorMode: {
defaultMode: 'dark',
// 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: 'ea188884aad4b0fc23cb79f0d7bc17af',

// // Public API key: it is safe to commit it
// apiKey: 'YOUR_SEARCH_API_KEY',
indexName: 'common-utils-pkg-js',

// indexName: 'YOUR_INDEX_NAME',
// Optional: see doc section below
contextualSearch: false,

// // 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: '/docs/', // 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

// //... other Algolia params
// },
// debug: false,
},
navbar: {
title: 'Common Utilities Package',
logo: {
Expand Down
5 changes: 0 additions & 5 deletions docusaurus/Array/arrayRemoveItem.md

This file was deleted.

5 changes: 0 additions & 5 deletions docusaurus/Array/stringToArray.md

This file was deleted.

8 changes: 0 additions & 8 deletions docusaurus/Boolean/toBoolean.md

This file was deleted.

4 changes: 0 additions & 4 deletions docusaurus/Browser/browserDetect.md

This file was deleted.

9 changes: 0 additions & 9 deletions docusaurus/Color/colorBrightness.md

This file was deleted.

7 changes: 0 additions & 7 deletions docusaurus/Color/invertColor.md

This file was deleted.

4 changes: 0 additions & 4 deletions docusaurus/Color/randomPastelColor.md

This file was deleted.

8 changes: 0 additions & 8 deletions docusaurus/File/readableBytes.md

This file was deleted.

4 changes: 0 additions & 4 deletions docusaurus/Key/guid.md

This file was deleted.

3 changes: 0 additions & 3 deletions docusaurus/Storage/storageClear.md

This file was deleted.

3 changes: 0 additions & 3 deletions docusaurus/Storage/storageGet.md

This file was deleted.

3 changes: 0 additions & 3 deletions docusaurus/Storage/storageRemove.md

This file was deleted.

4 changes: 0 additions & 4 deletions docusaurus/Storage/storageSet.md

This file was deleted.

5 changes: 0 additions & 5 deletions docusaurus/String/arrayToString.md

This file was deleted.

10 changes: 0 additions & 10 deletions docusaurus/String/slugify.md

This file was deleted.

4 changes: 0 additions & 4 deletions docusaurus/String/toSentenceCase.md

This file was deleted.

4 changes: 0 additions & 4 deletions docusaurus/String/toTitleCase.md

This file was deleted.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@
"dependencies": {
"@docusaurus/core": "3.1.1",
"@docusaurus/preset-classic": "3.1.1",
"@mdx-js/react": "3.0.0",
"clsx": "2.0.0",
"@mdx-js/react": "3.0.1",
"clsx": "2.1.0",
"lz-string": "1.4.4",
"prism-react-renderer": "2.3.0",
"react": "18.0.0",
"react-dom": "18.0.0"
"prism-react-renderer": "2.3.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.1.1",
"@docusaurus/tsconfig": "3.1.1",
"@docusaurus/types": "3.1.1",
"@types/jest": "^29.0.3",
"@types/jest": "29.0.3",
"@types/node": "20.11.30",
"@typescript-eslint/eslint-plugin": "7.3.1",
"@typescript-eslint/parser": "7.3.1",
Expand All @@ -74,12 +74,12 @@
"eslint-plugin-simple-import-sort": "8.0.0",
"http-server": "14.1.1",
"husky": "8.0.1",
"jest": "^29.0.3",
"jest": "29.0.3",
"lint-staged": "13.0.3",
"mock-local-storage": "1.1.23",
"prettier": "3.2.5",
"shell-quote": "1.7.3",
"ts-jest": "^29.1.2",
"ts-jest": "29.1.2",
"typescript": "5.2.2"
},
"browserslist": {
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