Skip to content

Commit cfad1d0

Browse files
authored
Merge pull request #723 from GetStream/docusaurus
Docusaurus soft release
2 parents d6a080c + 5dd828f commit cfad1d0

File tree

385 files changed

+11712
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+11712
-110
lines changed

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@
7676
},
7777
"overrides": [
7878
{
79-
"files": ["*.md"],
79+
"files": ["*.md", "*.mdx"],
8080
"rules": {
81+
"arrow-body-style": ["error", "as-needed"],
82+
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": false }],
8183
"no-undef": 0,
8284
"react/jsx-no-undef": 0,
8385
"react/react-in-jsx-scope": 0,

.github/workflows/docusaurus.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: docusaurus
33
on:
44
push:
55
branches:
6-
- docusaurus # default branch name for each repo that docs should be push from
6+
- master # default branch name for each repo that docs should be push from
77
paths:
88
- docusaurus/**
99
jobs:
@@ -13,5 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- name: push
1515
uses: GetStream/push-stream-chat-docusaurus-action@main
16+
with:
17+
target-branch: production
1618
env:
1719
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}

.prettierrc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,18 @@
44
"printWidth": 100,
55
"singleQuote": true,
66
"tabWidth": 2,
7-
"trailingComma": "all"
7+
"trailingComma": "all",
8+
"overrides": [
9+
{
10+
"files": ["*.md", "*.mdx"],
11+
"options": {
12+
"arrowParens": "avoid",
13+
"jsxSingleQuote": true,
14+
"printWidth": 120,
15+
"singleQuote": true,
16+
"tabWidth": 2,
17+
"trailingComma": "all"
18+
}
19+
}
20+
]
821
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"label": "Additional Resources",
3+
"position": 8
4+
}
5+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
id: libraries
3+
sidebar_position: 2
4+
title: Libraries
5+
---
6+
7+
### [React Navigation Docs](https://reactnavigation.org/docs/getting-started/)
8+
9+
Our tutorials, guides and sample apps are all using React Navigation. We recommend using it in
10+
order to provide better support for all the use cases displayed.
11+
12+
### [Gesture Handler Docs](https://docs.swmansion.com/react-native-gesture-handler/docs/)
13+
14+
React Native Gesture Handler is used inside of our SDK on our channels and messages lists. Also used
15+
on our gallery, chat buttons, and reactions overlay.
16+
17+
### [Markdown Lib Docs](https://github.com/andangrd/react-native-markdown-package)
18+
19+
React Native Markdown Package is used to render markdown on our messages.
20+
21+
### [Reanimated Lib Docs](https://docs.swmansion.com/react-native-reanimated/docs)
22+
23+
React Native Reanimated is used to create our own beautiful custom animations in our gallery, attachment picker,
24+
message actions/reactions and loading indicators/skeletons.
25+
26+
### [Day.js Docs](https://day.js.org/docs/en/installation/installation)
27+
28+
We are using Day.js to manipulate, customize, parse and display dates through the app.
29+
You may want to use it when creating you own custom components.
30+
31+
### [React Native SVG](https://github.com/react-native-svg/react-native-svg)
32+
33+
React Native SVG is one of our peer dependencies. We use it to render icons and a couple of small indicators
34+
through the app.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
id: stream-additional-resources
3+
sidebar_position: 1
4+
title: Stream Additional Resources
5+
---
6+
7+
### [Demos](https://github.com/GetStream/react-native-samples)
8+
9+
Stream Chat for React Native has multiple examples in the repo.
10+
In addition we have "cloned" some popular UIs to help demonstrate the flexibility of the SDK.
11+
12+
### [JavaScript Client](https://getstream.io/chat/docs/javascript/?language=javascript)
13+
14+
Stream Chat for React Native uses the Stream Chat JS client under the hood for most interactions with the backend.
15+
The client documentation covers a wide range of interactions that can be performed, not all of these are used within
16+
the Stream Chat for React Native SDK but can be integrated within your own app as required.
17+
18+
### [API Tutorial](https://getstream.io/chat/get_started/)
19+
20+
To help you get acquainted with the Stream Chat JS client we have an easy to follow tutorial on our website.
21+
This is a great primer for using the client directly and can also help you understand how the Stream Chat for
22+
React Native SDK if functioning under the hood.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
id: technologies-and-techniques
3+
sidebar_position: 3
4+
title: Technologies & Techniques
5+
---
6+
7+
### [Typescript Generics](https://www.typescriptlang.org/docs/handbook/2/generics.html)
8+
9+
Our SDK is written in Typescript and heavily uses generics in order to allow users to use custom data and
10+
still have decent typing support.
11+
12+
### [React Context](https://reactjs.org/docs/context.html)
13+
14+
We rely on multiple contexts in our SDK to access components, functions, and data.
15+
Context also allows you as a developer to override our defaults for many of these throughout the SDK.
16+
Understanding how to draw upon values in context is important to customizing the SDK for your own needs.
17+
18+
### [React Hooks](https://reactjs.org/docs/hooks-intro.html)
19+
20+
We use/expose a bunch of our component's hooks so users can use them in order to replicate some behaviour/data
21+
parsing when creating custom components. Understanding how to work with hooks can come in very handy.
199 KB
Loading
257 KB
Loading
320 KB
Loading

0 commit comments

Comments
 (0)