forked from twentyhq/twenty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Documentation (twentyhq#3795)
* Begin docs improvement * Keep improving documentation * Upgrade Docusarus * Fix broken links
- Loading branch information
1 parent
6748dfe
commit a5989a4
Showing
91 changed files
with
1,045 additions
and
895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"label": "Contributor guide", | ||
"position": 2 | ||
"label": "Contributing", | ||
"position": 3 | ||
} |
2 changes: 1 addition & 1 deletion
2
...enty-docs/docs/start/bug-and-requests.mdx → ...ocs/docs/contributor/bug-and-requests.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Bugs & Requests | ||
title: Bugs and Requests | ||
sidebar_position: 3 | ||
sidebar_custom_props: | ||
icon: TbBug | ||
|
4 changes: 3 additions & 1 deletion
4
packages/twenty-docs/docs/contributor/frontend/_category_.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"position": 3 | ||
"position": 3, | ||
"collapsible": true, | ||
"collapsed": true | ||
} |
4 changes: 0 additions & 4 deletions
4
packages/twenty-docs/docs/contributor/frontend/advanced/_category_.json
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/twenty-docs/docs/contributor/frontend/basics/_category_.json
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
packages/twenty-docs/docs/contributor/frontend/basics/basics.mdx
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
packages/twenty-docs/docs/contributor/frontend/basics/contributing.mdx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/twenty-docs/docs/contributor/frontend/basics/design-system.mdx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
80 changes: 76 additions & 4 deletions
80
packages/twenty-docs/docs/contributor/frontend/frontend.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,86 @@ | ||
--- | ||
id: frontend | ||
title: Frontend Development | ||
displayed_sidebar: frontendSidebar | ||
sidebar_position: 0 | ||
sidebar_custom_props: | ||
icon: TbTerminal2 | ||
isSidebarRoot: true | ||
--- | ||
|
||
Welcome to the Frontend Development section of the documentation. | ||
Here you will find information about the frontend development process, the recommended tools, and the best practices you should follow. | ||
import DocCardList from '@theme/DocCardList'; | ||
|
||
|
||
<DocCardList /> | ||
|
||
## Useful commands | ||
|
||
### Starting the app | ||
|
||
```bash | ||
nx start twenty-front | ||
``` | ||
|
||
### Regenerate graphql schema based on API graphql schema | ||
|
||
```bash | ||
nx graphql:generate twenty-front | ||
``` | ||
|
||
### Lint | ||
|
||
```bash | ||
nx lint twenty-front | ||
``` | ||
|
||
### Test | ||
|
||
```bash | ||
nx test twenty-front# run jest tests | ||
nx storybook:dev twenty-front# run storybook | ||
nx storybook:test twenty-front# run tests # (needs yarn storybook:dev to be running) | ||
nx storybook:coverage twenty-front # (needs yarn storybook:dev to be running) | ||
``` | ||
|
||
## Tech Stack | ||
|
||
The project has a clean and simple stack, with minimal boilerplate code. | ||
|
||
**App** | ||
|
||
- [React](https://react.dev/) | ||
- [Apollo](https://www.apollographql.com/docs/) | ||
- [GraphQL Codegen](https://the-guild.dev/graphql/codegen) | ||
- [Recoil](https://recoiljs.org/docs/introduction/core-concepts) | ||
- [TypeScript](https://www.typescriptlang.org/) | ||
|
||
**Testing** | ||
|
||
- [Jest](https://jestjs.io/) | ||
- [Storybook](https://storybook.js.org/) | ||
|
||
**Tooling** | ||
|
||
- [Yarn](https://yarnpkg.com/) | ||
- [Craco](https://craco.js.org/docs/) | ||
- [ESLint](https://eslint.org/) | ||
|
||
## Architecture | ||
|
||
### Routing | ||
|
||
[React Router](https://reactrouter.com/) handles the routing. | ||
|
||
To avoid unnecessary [re-renders](/contributor/frontend/best-practices#managing-re-renders) all the routing logic is in a `useEffect` in `PageChangeEffect`. | ||
|
||
### State Management | ||
|
||
[Recoil](https://recoiljs.org/docs/introduction/core-concepts) handles state management. | ||
|
||
See [best practices](/contributor/frontend/best-practices#state-management) for more information on state management. | ||
|
||
## Testing | ||
|
||
[Jest](https://jestjs.io/) serves as the tool for unit testing while [Storybook](https://storybook.js.org/) is for component testing. | ||
|
||
Jest is mainly for testing utility functions, and not components themselves. | ||
|
||
Storybook is for testing the behavior of isolated components, as well as displaying the design system. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"position": 4 | ||
"position": 4, | ||
"collapsible": true, | ||
"collapsed": true | ||
} |
4 changes: 0 additions & 4 deletions
4
packages/twenty-docs/docs/contributor/server/basics/_category_.json
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
packages/twenty-docs/docs/contributor/server/basics/overview.mdx
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
packages/twenty-docs/docs/contributor/server/basics/workflows.mdx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions
4
packages/twenty-docs/docs/contributor/server/others/_category_.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.