From 105fc08b755eef4b0b43d84c62f72c9d1de199cd Mon Sep 17 00:00:00 2001 From: Rohit Agrawal Date: Sun, 26 Nov 2023 15:11:43 +0530 Subject: [PATCH] refactor: Renamed documentation website to documentation --- .github/ISSUE_TEMPLATE/task.md | 16 ---------------- CONTRIBUTING.md | 2 +- .../.gitignore | 0 .../babel.config.js | 0 .../docs/components/_category_.json | 0 .../docs/components/feedback/Badge.mdx | 0 .../docs/components/feedback/Spinner.mdx | 0 .../docs/components/feedback/_category_.json | 0 .../docs/components/forms/Button.mdx | 0 .../docs/components/forms/CheckBox.mdx | 0 .../docs/components/forms/Input.mdx | 0 .../docs/components/forms/Pressable.mdx | 0 .../docs/components/forms/Radio.mdx | 0 .../docs/components/forms/Text Link.mdx | 0 .../docs/components/forms/_category_.json | 0 .../docs/components/layout/Box.mdx | 0 .../docs/components/layout/Center.mdx | 0 .../docs/components/layout/Divider.mdx | 0 .../docs/components/layout/Screen.mdx | 0 .../docs/components/layout/Spacer.mdx | 0 .../docs/components/layout/Stack.mdx | 0 .../docs/components/layout/_category_.json | 0 .../docs/components/media/Avatar.mdx | 0 .../docs/components/media/Icon.mdx | 0 .../docs/components/media/Image.mdx | 0 .../docs/components/media/_category_.json | 0 .../docs/components/typography/Text.mdx | 0 .../docs/components/typography/_category_.json | 0 .../docs/core-features/_category_.json | 0 .../docs/core-features/animation-support.mdx | 0 .../docs/core-features/dark-mode.mdx | 0 .../docs/core-features/extensibility.mdx | 0 .../docs/core-features/responsivity.md | 0 .../docs/core-features/style-props.md | 0 .../docs/getting-started/_category_.json | 0 .../docs/getting-started/design-principles.md | 0 .../docs/getting-started/installation.md | 0 .../docs/getting-started/introduction.mdx | 0 .../docs/hooks/_category_.json | 0 .../docs/hooks/pearlify.md | 0 .../docs/hooks/useAccessibleColor.md | 0 .../docs/hooks/useAtomicComponentConfig.mdx | 0 .../docs/hooks/useCheckedState.mdx | 0 .../docs/hooks/useColorModeValue.md | 0 .../docs/hooks/useColorScheme.md | 0 .../docs/hooks/useDimensions.mdx | 0 .../docs/hooks/useDisabledState.mdx | 0 .../docs/hooks/useDynamicStateStyle.mdx | 0 .../docs/hooks/useFocusedState.mdx | 0 .../docs/hooks/useInvalidState.mdx | 0 .../docs/hooks/useMolecularComponentConfig.mdx | 0 .../docs/hooks/useMotiWithStyleProps.mdx | 0 .../docs/hooks/usePressedState.mdx | 0 .../docs/hooks/useResponsiveProp.mdx | 0 .../docs/hooks/useStyleProps.mdx | 0 .../docs/hooks/useTheme.md | 0 .../docs/others/_category_.json | 0 .../docs/others/generatePalette.mdx | 0 .../docs/others/style-functions.md | 0 .../docs/theming/_category_.json | 0 .../docs/theming/customize-theme.md | 0 .../docs/theming/default-theme.mdx | 0 .../docs/theming/typescript-support.md | 0 .../docusaurus.config.js | 3 ++- .../package.json | 2 +- .../sidebars.js | 0 .../BorderRadiiBox/BorderRadiiBox.module.css | 0 .../BorderRadiiBox/BorderRadiiBox.tsx | 0 .../ElevationBox/ElevationBox.module.css | 0 .../components/ElevationBox/ElevationBox.tsx | 0 .../src/components/ExpoSnack.tsx | 0 .../src/components/FeatureSection.tsx | 0 .../src/components/LandingPage/ThemeFeature.tsx | 0 .../PaletteColor/PaletteColor.module.css | 0 .../components/PaletteColor/PaletteColor.tsx | 0 .../src/components/Props/Props.module.css | 0 .../src/components/Props/Props.tsx | 0 .../SourceButton/SourceButton.module.css | 0 .../components/SourceButton/SourceButton.tsx | 0 .../src/components/SpacingBox/SpacingBox.tsx | 0 .../TypographyVariant.module.css | 0 .../TypographyVariant/TypographyVariant.tsx | 0 .../src/css/custom.css | 0 .../src/pages/index.module.css | 0 .../src/pages/index.tsx | 0 .../static/.nojekyll | 0 .../static/img/android_elevation.png | Bin .../static/img/component_styles_icon_dark.png | Bin .../static/img/component_styles_icon_light.png | Bin .../static/img/discord_black.svg | 0 .../static/img/discord_white.svg | 0 .../static/img/favicon.ico | Bin .../static/img/feature_elevation.png | Bin .../static/img/feature_palette.png | Bin .../static/img/feature_spacing.png | Bin .../static/img/feature_typography.png | Bin .../static/img/ios_elevation.png | Bin .../static/img/logo.png | Bin .../static/img/logoDark.png | Bin .../static/img/responsivity_phone_demo.png | Bin .../static/img/responsivity_tablet_demo.png | Bin .../static/img/twitter_black.svg | 0 .../static/img/twitter_white.svg | 0 .../static/img/typescript_example.png | Bin .../tsconfig.json | 0 .../yarn.lock | 0 package.json | 4 ++-- src/components/Atoms/Screen/Screen.tsx | 11 ++++++++--- tsconfig.json | 2 +- 109 files changed, 15 insertions(+), 25 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/task.md rename {documentationwebsite => documentation}/.gitignore (100%) rename {documentationwebsite => documentation}/babel.config.js (100%) rename {documentationwebsite => documentation}/docs/components/_category_.json (100%) rename {documentationwebsite => documentation}/docs/components/feedback/Badge.mdx (100%) rename {documentationwebsite => documentation}/docs/components/feedback/Spinner.mdx (100%) rename {documentationwebsite => documentation}/docs/components/feedback/_category_.json (100%) rename {documentationwebsite => documentation}/docs/components/forms/Button.mdx (100%) rename {documentationwebsite => documentation}/docs/components/forms/CheckBox.mdx (100%) rename {documentationwebsite => documentation}/docs/components/forms/Input.mdx (100%) rename {documentationwebsite => documentation}/docs/components/forms/Pressable.mdx (100%) rename {documentationwebsite => documentation}/docs/components/forms/Radio.mdx (100%) rename {documentationwebsite => documentation}/docs/components/forms/Text Link.mdx (100%) rename {documentationwebsite => documentation}/docs/components/forms/_category_.json (100%) rename {documentationwebsite => documentation}/docs/components/layout/Box.mdx (100%) rename {documentationwebsite => documentation}/docs/components/layout/Center.mdx (100%) rename {documentationwebsite => documentation}/docs/components/layout/Divider.mdx (100%) rename {documentationwebsite => documentation}/docs/components/layout/Screen.mdx (100%) rename {documentationwebsite => documentation}/docs/components/layout/Spacer.mdx (100%) rename {documentationwebsite => documentation}/docs/components/layout/Stack.mdx (100%) rename {documentationwebsite => documentation}/docs/components/layout/_category_.json (100%) rename {documentationwebsite => documentation}/docs/components/media/Avatar.mdx (100%) rename {documentationwebsite => documentation}/docs/components/media/Icon.mdx (100%) rename {documentationwebsite => documentation}/docs/components/media/Image.mdx (100%) rename {documentationwebsite => documentation}/docs/components/media/_category_.json (100%) rename {documentationwebsite => documentation}/docs/components/typography/Text.mdx (100%) rename {documentationwebsite => documentation}/docs/components/typography/_category_.json (100%) rename {documentationwebsite => documentation}/docs/core-features/_category_.json (100%) rename {documentationwebsite => documentation}/docs/core-features/animation-support.mdx (100%) rename {documentationwebsite => documentation}/docs/core-features/dark-mode.mdx (100%) rename {documentationwebsite => documentation}/docs/core-features/extensibility.mdx (100%) rename {documentationwebsite => documentation}/docs/core-features/responsivity.md (100%) rename {documentationwebsite => documentation}/docs/core-features/style-props.md (100%) rename {documentationwebsite => documentation}/docs/getting-started/_category_.json (100%) rename {documentationwebsite => documentation}/docs/getting-started/design-principles.md (100%) rename {documentationwebsite => documentation}/docs/getting-started/installation.md (100%) rename {documentationwebsite => documentation}/docs/getting-started/introduction.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/_category_.json (100%) rename {documentationwebsite => documentation}/docs/hooks/pearlify.md (100%) rename {documentationwebsite => documentation}/docs/hooks/useAccessibleColor.md (100%) rename {documentationwebsite => documentation}/docs/hooks/useAtomicComponentConfig.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useCheckedState.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useColorModeValue.md (100%) rename {documentationwebsite => documentation}/docs/hooks/useColorScheme.md (100%) rename {documentationwebsite => documentation}/docs/hooks/useDimensions.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useDisabledState.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useDynamicStateStyle.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useFocusedState.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useInvalidState.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useMolecularComponentConfig.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useMotiWithStyleProps.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/usePressedState.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useResponsiveProp.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useStyleProps.mdx (100%) rename {documentationwebsite => documentation}/docs/hooks/useTheme.md (100%) rename {documentationwebsite => documentation}/docs/others/_category_.json (100%) rename {documentationwebsite => documentation}/docs/others/generatePalette.mdx (100%) rename {documentationwebsite => documentation}/docs/others/style-functions.md (100%) rename {documentationwebsite => documentation}/docs/theming/_category_.json (100%) rename {documentationwebsite => documentation}/docs/theming/customize-theme.md (100%) rename {documentationwebsite => documentation}/docs/theming/default-theme.mdx (100%) rename {documentationwebsite => documentation}/docs/theming/typescript-support.md (100%) rename {documentationwebsite => documentation}/docusaurus.config.js (97%) rename {documentationwebsite => documentation}/package.json (98%) rename {documentationwebsite => documentation}/sidebars.js (100%) rename {documentationwebsite => documentation}/src/components/BorderRadiiBox/BorderRadiiBox.module.css (100%) rename {documentationwebsite => documentation}/src/components/BorderRadiiBox/BorderRadiiBox.tsx (100%) rename {documentationwebsite => documentation}/src/components/ElevationBox/ElevationBox.module.css (100%) rename {documentationwebsite => documentation}/src/components/ElevationBox/ElevationBox.tsx (100%) rename {documentationwebsite => documentation}/src/components/ExpoSnack.tsx (100%) rename {documentationwebsite => documentation}/src/components/FeatureSection.tsx (100%) rename {documentationwebsite => documentation}/src/components/LandingPage/ThemeFeature.tsx (100%) rename {documentationwebsite => documentation}/src/components/PaletteColor/PaletteColor.module.css (100%) rename {documentationwebsite => documentation}/src/components/PaletteColor/PaletteColor.tsx (100%) rename {documentationwebsite => documentation}/src/components/Props/Props.module.css (100%) rename {documentationwebsite => documentation}/src/components/Props/Props.tsx (100%) rename {documentationwebsite => documentation}/src/components/SourceButton/SourceButton.module.css (100%) rename {documentationwebsite => documentation}/src/components/SourceButton/SourceButton.tsx (100%) rename {documentationwebsite => documentation}/src/components/SpacingBox/SpacingBox.tsx (100%) rename {documentationwebsite => documentation}/src/components/TypographyVariant/TypographyVariant.module.css (100%) rename {documentationwebsite => documentation}/src/components/TypographyVariant/TypographyVariant.tsx (100%) rename {documentationwebsite => documentation}/src/css/custom.css (100%) rename {documentationwebsite => documentation}/src/pages/index.module.css (100%) rename {documentationwebsite => documentation}/src/pages/index.tsx (100%) rename {documentationwebsite => documentation}/static/.nojekyll (100%) rename {documentationwebsite => documentation}/static/img/android_elevation.png (100%) rename {documentationwebsite => documentation}/static/img/component_styles_icon_dark.png (100%) rename {documentationwebsite => documentation}/static/img/component_styles_icon_light.png (100%) rename {documentationwebsite => documentation}/static/img/discord_black.svg (100%) rename {documentationwebsite => documentation}/static/img/discord_white.svg (100%) rename {documentationwebsite => documentation}/static/img/favicon.ico (100%) rename {documentationwebsite => documentation}/static/img/feature_elevation.png (100%) rename {documentationwebsite => documentation}/static/img/feature_palette.png (100%) rename {documentationwebsite => documentation}/static/img/feature_spacing.png (100%) rename {documentationwebsite => documentation}/static/img/feature_typography.png (100%) rename {documentationwebsite => documentation}/static/img/ios_elevation.png (100%) rename {documentationwebsite => documentation}/static/img/logo.png (100%) rename {documentationwebsite => documentation}/static/img/logoDark.png (100%) rename {documentationwebsite => documentation}/static/img/responsivity_phone_demo.png (100%) rename {documentationwebsite => documentation}/static/img/responsivity_tablet_demo.png (100%) rename {documentationwebsite => documentation}/static/img/twitter_black.svg (100%) rename {documentationwebsite => documentation}/static/img/twitter_white.svg (100%) rename {documentationwebsite => documentation}/static/img/typescript_example.png (100%) rename {documentationwebsite => documentation}/tsconfig.json (100%) rename {documentationwebsite => documentation}/yarn.lock (100%) diff --git a/.github/ISSUE_TEMPLATE/task.md b/.github/ISSUE_TEMPLATE/task.md deleted file mode 100644 index ad3bac1a..00000000 --- a/.github/ISSUE_TEMPLATE/task.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -name: Task -about: Create a new task and track its progress in the board -title: "[TASK]" -labels: enhancement -assignees: agrawal-rohit - ---- - -## Checklist - -- [ ] Functionality -- [ ] Storybook story -- [ ] Unit tests -- [ ] Component documentation -- [ ] Docusaurus documentation diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 69e83db3..c183c760 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -147,7 +147,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://github.com/agrawa We use the [Docusaurus V2](https://docusaurus.io/) framework to manage documentation for Pearl UI. It uses the popular [MDX](https://mdxjs.com/) format to provide easy formatting and modern functionality. -Once you get acquainted with them, you may then start adding and updating files in the [documentation section](https://github.com/agrawal-rohit/pearl-ui/tree/main/documentationwebsite/docs). +Once you get acquainted with them, you may then start adding and updating files in the [documentation section](https://github.com/agrawal-rohit/pearl-ui/tree/main/documentation/docs). ## Styleguides diff --git a/documentationwebsite/.gitignore b/documentation/.gitignore similarity index 100% rename from documentationwebsite/.gitignore rename to documentation/.gitignore diff --git a/documentationwebsite/babel.config.js b/documentation/babel.config.js similarity index 100% rename from documentationwebsite/babel.config.js rename to documentation/babel.config.js diff --git a/documentationwebsite/docs/components/_category_.json b/documentation/docs/components/_category_.json similarity index 100% rename from documentationwebsite/docs/components/_category_.json rename to documentation/docs/components/_category_.json diff --git a/documentationwebsite/docs/components/feedback/Badge.mdx b/documentation/docs/components/feedback/Badge.mdx similarity index 100% rename from documentationwebsite/docs/components/feedback/Badge.mdx rename to documentation/docs/components/feedback/Badge.mdx diff --git a/documentationwebsite/docs/components/feedback/Spinner.mdx b/documentation/docs/components/feedback/Spinner.mdx similarity index 100% rename from documentationwebsite/docs/components/feedback/Spinner.mdx rename to documentation/docs/components/feedback/Spinner.mdx diff --git a/documentationwebsite/docs/components/feedback/_category_.json b/documentation/docs/components/feedback/_category_.json similarity index 100% rename from documentationwebsite/docs/components/feedback/_category_.json rename to documentation/docs/components/feedback/_category_.json diff --git a/documentationwebsite/docs/components/forms/Button.mdx b/documentation/docs/components/forms/Button.mdx similarity index 100% rename from documentationwebsite/docs/components/forms/Button.mdx rename to documentation/docs/components/forms/Button.mdx diff --git a/documentationwebsite/docs/components/forms/CheckBox.mdx b/documentation/docs/components/forms/CheckBox.mdx similarity index 100% rename from documentationwebsite/docs/components/forms/CheckBox.mdx rename to documentation/docs/components/forms/CheckBox.mdx diff --git a/documentationwebsite/docs/components/forms/Input.mdx b/documentation/docs/components/forms/Input.mdx similarity index 100% rename from documentationwebsite/docs/components/forms/Input.mdx rename to documentation/docs/components/forms/Input.mdx diff --git a/documentationwebsite/docs/components/forms/Pressable.mdx b/documentation/docs/components/forms/Pressable.mdx similarity index 100% rename from documentationwebsite/docs/components/forms/Pressable.mdx rename to documentation/docs/components/forms/Pressable.mdx diff --git a/documentationwebsite/docs/components/forms/Radio.mdx b/documentation/docs/components/forms/Radio.mdx similarity index 100% rename from documentationwebsite/docs/components/forms/Radio.mdx rename to documentation/docs/components/forms/Radio.mdx diff --git a/documentationwebsite/docs/components/forms/Text Link.mdx b/documentation/docs/components/forms/Text Link.mdx similarity index 100% rename from documentationwebsite/docs/components/forms/Text Link.mdx rename to documentation/docs/components/forms/Text Link.mdx diff --git a/documentationwebsite/docs/components/forms/_category_.json b/documentation/docs/components/forms/_category_.json similarity index 100% rename from documentationwebsite/docs/components/forms/_category_.json rename to documentation/docs/components/forms/_category_.json diff --git a/documentationwebsite/docs/components/layout/Box.mdx b/documentation/docs/components/layout/Box.mdx similarity index 100% rename from documentationwebsite/docs/components/layout/Box.mdx rename to documentation/docs/components/layout/Box.mdx diff --git a/documentationwebsite/docs/components/layout/Center.mdx b/documentation/docs/components/layout/Center.mdx similarity index 100% rename from documentationwebsite/docs/components/layout/Center.mdx rename to documentation/docs/components/layout/Center.mdx diff --git a/documentationwebsite/docs/components/layout/Divider.mdx b/documentation/docs/components/layout/Divider.mdx similarity index 100% rename from documentationwebsite/docs/components/layout/Divider.mdx rename to documentation/docs/components/layout/Divider.mdx diff --git a/documentationwebsite/docs/components/layout/Screen.mdx b/documentation/docs/components/layout/Screen.mdx similarity index 100% rename from documentationwebsite/docs/components/layout/Screen.mdx rename to documentation/docs/components/layout/Screen.mdx diff --git a/documentationwebsite/docs/components/layout/Spacer.mdx b/documentation/docs/components/layout/Spacer.mdx similarity index 100% rename from documentationwebsite/docs/components/layout/Spacer.mdx rename to documentation/docs/components/layout/Spacer.mdx diff --git a/documentationwebsite/docs/components/layout/Stack.mdx b/documentation/docs/components/layout/Stack.mdx similarity index 100% rename from documentationwebsite/docs/components/layout/Stack.mdx rename to documentation/docs/components/layout/Stack.mdx diff --git a/documentationwebsite/docs/components/layout/_category_.json b/documentation/docs/components/layout/_category_.json similarity index 100% rename from documentationwebsite/docs/components/layout/_category_.json rename to documentation/docs/components/layout/_category_.json diff --git a/documentationwebsite/docs/components/media/Avatar.mdx b/documentation/docs/components/media/Avatar.mdx similarity index 100% rename from documentationwebsite/docs/components/media/Avatar.mdx rename to documentation/docs/components/media/Avatar.mdx diff --git a/documentationwebsite/docs/components/media/Icon.mdx b/documentation/docs/components/media/Icon.mdx similarity index 100% rename from documentationwebsite/docs/components/media/Icon.mdx rename to documentation/docs/components/media/Icon.mdx diff --git a/documentationwebsite/docs/components/media/Image.mdx b/documentation/docs/components/media/Image.mdx similarity index 100% rename from documentationwebsite/docs/components/media/Image.mdx rename to documentation/docs/components/media/Image.mdx diff --git a/documentationwebsite/docs/components/media/_category_.json b/documentation/docs/components/media/_category_.json similarity index 100% rename from documentationwebsite/docs/components/media/_category_.json rename to documentation/docs/components/media/_category_.json diff --git a/documentationwebsite/docs/components/typography/Text.mdx b/documentation/docs/components/typography/Text.mdx similarity index 100% rename from documentationwebsite/docs/components/typography/Text.mdx rename to documentation/docs/components/typography/Text.mdx diff --git a/documentationwebsite/docs/components/typography/_category_.json b/documentation/docs/components/typography/_category_.json similarity index 100% rename from documentationwebsite/docs/components/typography/_category_.json rename to documentation/docs/components/typography/_category_.json diff --git a/documentationwebsite/docs/core-features/_category_.json b/documentation/docs/core-features/_category_.json similarity index 100% rename from documentationwebsite/docs/core-features/_category_.json rename to documentation/docs/core-features/_category_.json diff --git a/documentationwebsite/docs/core-features/animation-support.mdx b/documentation/docs/core-features/animation-support.mdx similarity index 100% rename from documentationwebsite/docs/core-features/animation-support.mdx rename to documentation/docs/core-features/animation-support.mdx diff --git a/documentationwebsite/docs/core-features/dark-mode.mdx b/documentation/docs/core-features/dark-mode.mdx similarity index 100% rename from documentationwebsite/docs/core-features/dark-mode.mdx rename to documentation/docs/core-features/dark-mode.mdx diff --git a/documentationwebsite/docs/core-features/extensibility.mdx b/documentation/docs/core-features/extensibility.mdx similarity index 100% rename from documentationwebsite/docs/core-features/extensibility.mdx rename to documentation/docs/core-features/extensibility.mdx diff --git a/documentationwebsite/docs/core-features/responsivity.md b/documentation/docs/core-features/responsivity.md similarity index 100% rename from documentationwebsite/docs/core-features/responsivity.md rename to documentation/docs/core-features/responsivity.md diff --git a/documentationwebsite/docs/core-features/style-props.md b/documentation/docs/core-features/style-props.md similarity index 100% rename from documentationwebsite/docs/core-features/style-props.md rename to documentation/docs/core-features/style-props.md diff --git a/documentationwebsite/docs/getting-started/_category_.json b/documentation/docs/getting-started/_category_.json similarity index 100% rename from documentationwebsite/docs/getting-started/_category_.json rename to documentation/docs/getting-started/_category_.json diff --git a/documentationwebsite/docs/getting-started/design-principles.md b/documentation/docs/getting-started/design-principles.md similarity index 100% rename from documentationwebsite/docs/getting-started/design-principles.md rename to documentation/docs/getting-started/design-principles.md diff --git a/documentationwebsite/docs/getting-started/installation.md b/documentation/docs/getting-started/installation.md similarity index 100% rename from documentationwebsite/docs/getting-started/installation.md rename to documentation/docs/getting-started/installation.md diff --git a/documentationwebsite/docs/getting-started/introduction.mdx b/documentation/docs/getting-started/introduction.mdx similarity index 100% rename from documentationwebsite/docs/getting-started/introduction.mdx rename to documentation/docs/getting-started/introduction.mdx diff --git a/documentationwebsite/docs/hooks/_category_.json b/documentation/docs/hooks/_category_.json similarity index 100% rename from documentationwebsite/docs/hooks/_category_.json rename to documentation/docs/hooks/_category_.json diff --git a/documentationwebsite/docs/hooks/pearlify.md b/documentation/docs/hooks/pearlify.md similarity index 100% rename from documentationwebsite/docs/hooks/pearlify.md rename to documentation/docs/hooks/pearlify.md diff --git a/documentationwebsite/docs/hooks/useAccessibleColor.md b/documentation/docs/hooks/useAccessibleColor.md similarity index 100% rename from documentationwebsite/docs/hooks/useAccessibleColor.md rename to documentation/docs/hooks/useAccessibleColor.md diff --git a/documentationwebsite/docs/hooks/useAtomicComponentConfig.mdx b/documentation/docs/hooks/useAtomicComponentConfig.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useAtomicComponentConfig.mdx rename to documentation/docs/hooks/useAtomicComponentConfig.mdx diff --git a/documentationwebsite/docs/hooks/useCheckedState.mdx b/documentation/docs/hooks/useCheckedState.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useCheckedState.mdx rename to documentation/docs/hooks/useCheckedState.mdx diff --git a/documentationwebsite/docs/hooks/useColorModeValue.md b/documentation/docs/hooks/useColorModeValue.md similarity index 100% rename from documentationwebsite/docs/hooks/useColorModeValue.md rename to documentation/docs/hooks/useColorModeValue.md diff --git a/documentationwebsite/docs/hooks/useColorScheme.md b/documentation/docs/hooks/useColorScheme.md similarity index 100% rename from documentationwebsite/docs/hooks/useColorScheme.md rename to documentation/docs/hooks/useColorScheme.md diff --git a/documentationwebsite/docs/hooks/useDimensions.mdx b/documentation/docs/hooks/useDimensions.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useDimensions.mdx rename to documentation/docs/hooks/useDimensions.mdx diff --git a/documentationwebsite/docs/hooks/useDisabledState.mdx b/documentation/docs/hooks/useDisabledState.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useDisabledState.mdx rename to documentation/docs/hooks/useDisabledState.mdx diff --git a/documentationwebsite/docs/hooks/useDynamicStateStyle.mdx b/documentation/docs/hooks/useDynamicStateStyle.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useDynamicStateStyle.mdx rename to documentation/docs/hooks/useDynamicStateStyle.mdx diff --git a/documentationwebsite/docs/hooks/useFocusedState.mdx b/documentation/docs/hooks/useFocusedState.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useFocusedState.mdx rename to documentation/docs/hooks/useFocusedState.mdx diff --git a/documentationwebsite/docs/hooks/useInvalidState.mdx b/documentation/docs/hooks/useInvalidState.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useInvalidState.mdx rename to documentation/docs/hooks/useInvalidState.mdx diff --git a/documentationwebsite/docs/hooks/useMolecularComponentConfig.mdx b/documentation/docs/hooks/useMolecularComponentConfig.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useMolecularComponentConfig.mdx rename to documentation/docs/hooks/useMolecularComponentConfig.mdx diff --git a/documentationwebsite/docs/hooks/useMotiWithStyleProps.mdx b/documentation/docs/hooks/useMotiWithStyleProps.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useMotiWithStyleProps.mdx rename to documentation/docs/hooks/useMotiWithStyleProps.mdx diff --git a/documentationwebsite/docs/hooks/usePressedState.mdx b/documentation/docs/hooks/usePressedState.mdx similarity index 100% rename from documentationwebsite/docs/hooks/usePressedState.mdx rename to documentation/docs/hooks/usePressedState.mdx diff --git a/documentationwebsite/docs/hooks/useResponsiveProp.mdx b/documentation/docs/hooks/useResponsiveProp.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useResponsiveProp.mdx rename to documentation/docs/hooks/useResponsiveProp.mdx diff --git a/documentationwebsite/docs/hooks/useStyleProps.mdx b/documentation/docs/hooks/useStyleProps.mdx similarity index 100% rename from documentationwebsite/docs/hooks/useStyleProps.mdx rename to documentation/docs/hooks/useStyleProps.mdx diff --git a/documentationwebsite/docs/hooks/useTheme.md b/documentation/docs/hooks/useTheme.md similarity index 100% rename from documentationwebsite/docs/hooks/useTheme.md rename to documentation/docs/hooks/useTheme.md diff --git a/documentationwebsite/docs/others/_category_.json b/documentation/docs/others/_category_.json similarity index 100% rename from documentationwebsite/docs/others/_category_.json rename to documentation/docs/others/_category_.json diff --git a/documentationwebsite/docs/others/generatePalette.mdx b/documentation/docs/others/generatePalette.mdx similarity index 100% rename from documentationwebsite/docs/others/generatePalette.mdx rename to documentation/docs/others/generatePalette.mdx diff --git a/documentationwebsite/docs/others/style-functions.md b/documentation/docs/others/style-functions.md similarity index 100% rename from documentationwebsite/docs/others/style-functions.md rename to documentation/docs/others/style-functions.md diff --git a/documentationwebsite/docs/theming/_category_.json b/documentation/docs/theming/_category_.json similarity index 100% rename from documentationwebsite/docs/theming/_category_.json rename to documentation/docs/theming/_category_.json diff --git a/documentationwebsite/docs/theming/customize-theme.md b/documentation/docs/theming/customize-theme.md similarity index 100% rename from documentationwebsite/docs/theming/customize-theme.md rename to documentation/docs/theming/customize-theme.md diff --git a/documentationwebsite/docs/theming/default-theme.mdx b/documentation/docs/theming/default-theme.mdx similarity index 100% rename from documentationwebsite/docs/theming/default-theme.mdx rename to documentation/docs/theming/default-theme.mdx diff --git a/documentationwebsite/docs/theming/typescript-support.md b/documentation/docs/theming/typescript-support.md similarity index 100% rename from documentationwebsite/docs/theming/typescript-support.md rename to documentation/docs/theming/typescript-support.md diff --git a/documentationwebsite/docusaurus.config.js b/documentation/docusaurus.config.js similarity index 97% rename from documentationwebsite/docusaurus.config.js rename to documentation/docusaurus.config.js index dd932dd7..baf11393 100644 --- a/documentationwebsite/docusaurus.config.js +++ b/documentation/docusaurus.config.js @@ -24,7 +24,7 @@ sidebarPath: require.resolve("./sidebars.js"), sidebarCollapsible: false, editUrl: - "https://github.com/agrawal-rohit/pearl-ui/tree/main/documentationwebsite/", + "https://github.com/agrawal-rohit/pearl-ui/tree/main/documentation/", }, theme: { customCss: require.resolve("./src/css/custom.css"), @@ -42,6 +42,7 @@ }, image: "img/logo.png", algolia: { + // deepcode ignore HardcodedNonCryptoSecret: apiKey: "92c72ce8bc4acdda47492dbbe56f0e2d", indexName: "pearl-ui", contextualSearch: true, diff --git a/documentationwebsite/package.json b/documentation/package.json similarity index 98% rename from documentationwebsite/package.json rename to documentation/package.json index 3dc011eb..7738b240 100644 --- a/documentationwebsite/package.json +++ b/documentation/package.json @@ -1,5 +1,5 @@ { - "name": "documentationwebsite", + "name": "documentation", "version": "0.0.0", "private": true, "scripts": { diff --git a/documentationwebsite/sidebars.js b/documentation/sidebars.js similarity index 100% rename from documentationwebsite/sidebars.js rename to documentation/sidebars.js diff --git a/documentationwebsite/src/components/BorderRadiiBox/BorderRadiiBox.module.css b/documentation/src/components/BorderRadiiBox/BorderRadiiBox.module.css similarity index 100% rename from documentationwebsite/src/components/BorderRadiiBox/BorderRadiiBox.module.css rename to documentation/src/components/BorderRadiiBox/BorderRadiiBox.module.css diff --git a/documentationwebsite/src/components/BorderRadiiBox/BorderRadiiBox.tsx b/documentation/src/components/BorderRadiiBox/BorderRadiiBox.tsx similarity index 100% rename from documentationwebsite/src/components/BorderRadiiBox/BorderRadiiBox.tsx rename to documentation/src/components/BorderRadiiBox/BorderRadiiBox.tsx diff --git a/documentationwebsite/src/components/ElevationBox/ElevationBox.module.css b/documentation/src/components/ElevationBox/ElevationBox.module.css similarity index 100% rename from documentationwebsite/src/components/ElevationBox/ElevationBox.module.css rename to documentation/src/components/ElevationBox/ElevationBox.module.css diff --git a/documentationwebsite/src/components/ElevationBox/ElevationBox.tsx b/documentation/src/components/ElevationBox/ElevationBox.tsx similarity index 100% rename from documentationwebsite/src/components/ElevationBox/ElevationBox.tsx rename to documentation/src/components/ElevationBox/ElevationBox.tsx diff --git a/documentationwebsite/src/components/ExpoSnack.tsx b/documentation/src/components/ExpoSnack.tsx similarity index 100% rename from documentationwebsite/src/components/ExpoSnack.tsx rename to documentation/src/components/ExpoSnack.tsx diff --git a/documentationwebsite/src/components/FeatureSection.tsx b/documentation/src/components/FeatureSection.tsx similarity index 100% rename from documentationwebsite/src/components/FeatureSection.tsx rename to documentation/src/components/FeatureSection.tsx diff --git a/documentationwebsite/src/components/LandingPage/ThemeFeature.tsx b/documentation/src/components/LandingPage/ThemeFeature.tsx similarity index 100% rename from documentationwebsite/src/components/LandingPage/ThemeFeature.tsx rename to documentation/src/components/LandingPage/ThemeFeature.tsx diff --git a/documentationwebsite/src/components/PaletteColor/PaletteColor.module.css b/documentation/src/components/PaletteColor/PaletteColor.module.css similarity index 100% rename from documentationwebsite/src/components/PaletteColor/PaletteColor.module.css rename to documentation/src/components/PaletteColor/PaletteColor.module.css diff --git a/documentationwebsite/src/components/PaletteColor/PaletteColor.tsx b/documentation/src/components/PaletteColor/PaletteColor.tsx similarity index 100% rename from documentationwebsite/src/components/PaletteColor/PaletteColor.tsx rename to documentation/src/components/PaletteColor/PaletteColor.tsx diff --git a/documentationwebsite/src/components/Props/Props.module.css b/documentation/src/components/Props/Props.module.css similarity index 100% rename from documentationwebsite/src/components/Props/Props.module.css rename to documentation/src/components/Props/Props.module.css diff --git a/documentationwebsite/src/components/Props/Props.tsx b/documentation/src/components/Props/Props.tsx similarity index 100% rename from documentationwebsite/src/components/Props/Props.tsx rename to documentation/src/components/Props/Props.tsx diff --git a/documentationwebsite/src/components/SourceButton/SourceButton.module.css b/documentation/src/components/SourceButton/SourceButton.module.css similarity index 100% rename from documentationwebsite/src/components/SourceButton/SourceButton.module.css rename to documentation/src/components/SourceButton/SourceButton.module.css diff --git a/documentationwebsite/src/components/SourceButton/SourceButton.tsx b/documentation/src/components/SourceButton/SourceButton.tsx similarity index 100% rename from documentationwebsite/src/components/SourceButton/SourceButton.tsx rename to documentation/src/components/SourceButton/SourceButton.tsx diff --git a/documentationwebsite/src/components/SpacingBox/SpacingBox.tsx b/documentation/src/components/SpacingBox/SpacingBox.tsx similarity index 100% rename from documentationwebsite/src/components/SpacingBox/SpacingBox.tsx rename to documentation/src/components/SpacingBox/SpacingBox.tsx diff --git a/documentationwebsite/src/components/TypographyVariant/TypographyVariant.module.css b/documentation/src/components/TypographyVariant/TypographyVariant.module.css similarity index 100% rename from documentationwebsite/src/components/TypographyVariant/TypographyVariant.module.css rename to documentation/src/components/TypographyVariant/TypographyVariant.module.css diff --git a/documentationwebsite/src/components/TypographyVariant/TypographyVariant.tsx b/documentation/src/components/TypographyVariant/TypographyVariant.tsx similarity index 100% rename from documentationwebsite/src/components/TypographyVariant/TypographyVariant.tsx rename to documentation/src/components/TypographyVariant/TypographyVariant.tsx diff --git a/documentationwebsite/src/css/custom.css b/documentation/src/css/custom.css similarity index 100% rename from documentationwebsite/src/css/custom.css rename to documentation/src/css/custom.css diff --git a/documentationwebsite/src/pages/index.module.css b/documentation/src/pages/index.module.css similarity index 100% rename from documentationwebsite/src/pages/index.module.css rename to documentation/src/pages/index.module.css diff --git a/documentationwebsite/src/pages/index.tsx b/documentation/src/pages/index.tsx similarity index 100% rename from documentationwebsite/src/pages/index.tsx rename to documentation/src/pages/index.tsx diff --git a/documentationwebsite/static/.nojekyll b/documentation/static/.nojekyll similarity index 100% rename from documentationwebsite/static/.nojekyll rename to documentation/static/.nojekyll diff --git a/documentationwebsite/static/img/android_elevation.png b/documentation/static/img/android_elevation.png similarity index 100% rename from documentationwebsite/static/img/android_elevation.png rename to documentation/static/img/android_elevation.png diff --git a/documentationwebsite/static/img/component_styles_icon_dark.png b/documentation/static/img/component_styles_icon_dark.png similarity index 100% rename from documentationwebsite/static/img/component_styles_icon_dark.png rename to documentation/static/img/component_styles_icon_dark.png diff --git a/documentationwebsite/static/img/component_styles_icon_light.png b/documentation/static/img/component_styles_icon_light.png similarity index 100% rename from documentationwebsite/static/img/component_styles_icon_light.png rename to documentation/static/img/component_styles_icon_light.png diff --git a/documentationwebsite/static/img/discord_black.svg b/documentation/static/img/discord_black.svg similarity index 100% rename from documentationwebsite/static/img/discord_black.svg rename to documentation/static/img/discord_black.svg diff --git a/documentationwebsite/static/img/discord_white.svg b/documentation/static/img/discord_white.svg similarity index 100% rename from documentationwebsite/static/img/discord_white.svg rename to documentation/static/img/discord_white.svg diff --git a/documentationwebsite/static/img/favicon.ico b/documentation/static/img/favicon.ico similarity index 100% rename from documentationwebsite/static/img/favicon.ico rename to documentation/static/img/favicon.ico diff --git a/documentationwebsite/static/img/feature_elevation.png b/documentation/static/img/feature_elevation.png similarity index 100% rename from documentationwebsite/static/img/feature_elevation.png rename to documentation/static/img/feature_elevation.png diff --git a/documentationwebsite/static/img/feature_palette.png b/documentation/static/img/feature_palette.png similarity index 100% rename from documentationwebsite/static/img/feature_palette.png rename to documentation/static/img/feature_palette.png diff --git a/documentationwebsite/static/img/feature_spacing.png b/documentation/static/img/feature_spacing.png similarity index 100% rename from documentationwebsite/static/img/feature_spacing.png rename to documentation/static/img/feature_spacing.png diff --git a/documentationwebsite/static/img/feature_typography.png b/documentation/static/img/feature_typography.png similarity index 100% rename from documentationwebsite/static/img/feature_typography.png rename to documentation/static/img/feature_typography.png diff --git a/documentationwebsite/static/img/ios_elevation.png b/documentation/static/img/ios_elevation.png similarity index 100% rename from documentationwebsite/static/img/ios_elevation.png rename to documentation/static/img/ios_elevation.png diff --git a/documentationwebsite/static/img/logo.png b/documentation/static/img/logo.png similarity index 100% rename from documentationwebsite/static/img/logo.png rename to documentation/static/img/logo.png diff --git a/documentationwebsite/static/img/logoDark.png b/documentation/static/img/logoDark.png similarity index 100% rename from documentationwebsite/static/img/logoDark.png rename to documentation/static/img/logoDark.png diff --git a/documentationwebsite/static/img/responsivity_phone_demo.png b/documentation/static/img/responsivity_phone_demo.png similarity index 100% rename from documentationwebsite/static/img/responsivity_phone_demo.png rename to documentation/static/img/responsivity_phone_demo.png diff --git a/documentationwebsite/static/img/responsivity_tablet_demo.png b/documentation/static/img/responsivity_tablet_demo.png similarity index 100% rename from documentationwebsite/static/img/responsivity_tablet_demo.png rename to documentation/static/img/responsivity_tablet_demo.png diff --git a/documentationwebsite/static/img/twitter_black.svg b/documentation/static/img/twitter_black.svg similarity index 100% rename from documentationwebsite/static/img/twitter_black.svg rename to documentation/static/img/twitter_black.svg diff --git a/documentationwebsite/static/img/twitter_white.svg b/documentation/static/img/twitter_white.svg similarity index 100% rename from documentationwebsite/static/img/twitter_white.svg rename to documentation/static/img/twitter_white.svg diff --git a/documentationwebsite/static/img/typescript_example.png b/documentation/static/img/typescript_example.png similarity index 100% rename from documentationwebsite/static/img/typescript_example.png rename to documentation/static/img/typescript_example.png diff --git a/documentationwebsite/tsconfig.json b/documentation/tsconfig.json similarity index 100% rename from documentationwebsite/tsconfig.json rename to documentation/tsconfig.json diff --git a/documentationwebsite/yarn.lock b/documentation/yarn.lock similarity index 100% rename from documentationwebsite/yarn.lock rename to documentation/yarn.lock diff --git a/package.json b/package.json index 881feb58..15e781ab 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ ], "modulePathIgnorePatterns": [ "/lib/", - "/documentationwebsite/" + "/documentation/" ] }, "files": [ @@ -154,4 +154,4 @@ } ] } -} +} \ No newline at end of file diff --git a/src/components/Atoms/Screen/Screen.tsx b/src/components/Atoms/Screen/Screen.tsx index 8d8f2e32..9c6b7eaa 100644 --- a/src/components/Atoms/Screen/Screen.tsx +++ b/src/components/Atoms/Screen/Screen.tsx @@ -95,9 +95,14 @@ const CustomScreen = React.forwardRef( const functionValue = await onPullToRefresh(); let isPromise = functionValue instanceof Promise; if (isPromise) - Promise.resolve(functionValue).then(() => { - setRefreshing(false); - }); + Promise.resolve(functionValue) + .then(() => { + setRefreshing(false); + }) + .catch((error) => { + console.error(error); + setRefreshing(false); + }); else { setRefreshing(false); } diff --git a/tsconfig.json b/tsconfig.json index 60b121e6..98b0e552 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,6 @@ "**/*.test.[tj]sx", "App.test.tsx", "App.tsx", - "documentationwebsite/*" + "documentation/*" ] }