Skip to content

Commit

Permalink
refactor: Renamed documentation website to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Agrawal committed Nov 26, 2023
1 parent 1979109 commit 105fc08
Show file tree
Hide file tree
Showing 109 changed files with 15 additions and 25 deletions.
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/task.md

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -42,6 +42,7 @@
},
image: "img/logo.png",
algolia: {
// deepcode ignore HardcodedNonCryptoSecret: <please specify a reason of ignoring this>
apiKey: "92c72ce8bc4acdda47492dbbe56f0e2d",
indexName: "pearl-ui",
contextualSearch: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "documentationwebsite",
"name": "documentation",
"version": "0.0.0",
"private": true,
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
],
"modulePathIgnorePatterns": [
"<rootDir>/lib/",
"<rootDir>/documentationwebsite/"
"<rootDir>/documentation/"
]
},
"files": [
Expand Down Expand Up @@ -154,4 +154,4 @@
}
]
}
}
}
11 changes: 8 additions & 3 deletions src/components/Atoms/Screen/Screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"**/*.test.[tj]sx",
"App.test.tsx",
"App.tsx",
"documentationwebsite/*"
"documentation/*"
]
}

0 comments on commit 105fc08

Please sign in to comment.