Skip to content

Commit ce25001

Browse files
authored
Merge pull request #123 from GetStream/improve-docs
Improve docs
2 parents 9547f8c + 443b420 commit ce25001

20 files changed

+238
-23
lines changed
-23.7 KB
Loading

docusaurus/docs/Angular/components/attachment-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: attachment-list
3-
sidebar_position: 8
3+
sidebar_position: 2
44
title: Attachments
55
---
66

docusaurus/docs/Angular/components/channel-header.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
id: channel-header
3-
sidebar_position: 12
3+
sidebar_position: 4
44
title: Channel header
55
---
66

77
import ChannelHeaderScreenshot from "../assets/channel-header-screenshot.png";
88

9-
The `ChannelHeader` component displays the avatar and name of the currently active channel along with member and watcher information. You can read about the difference between members and watchers [here](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript#watchers-vs-members).
9+
The `ChannelHeader` component displays the avatar and name of the currently active channel along with member and watcher information. You can read about [the difference between members and watchers](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript#watchers-vs-members) in the platform documentation.
1010

1111
**Example 1** - Channel header:
1212

@@ -26,7 +26,7 @@ If you want to, you can create your own custom channel header, here is how to us
2626
</stream-channel>
2727
```
2828

29-
If you create your own channel header, you can use the [`ChannelService`](../services/channel.mdx) to access the currently active channel. Please note that, the default channel header also contains the menu button to [toggle the channel list](https://github.com/GetStream/stream-chat-angular/blob/master/projects/stream-chat-angular/src/lib/channel-list/channel-list-toggle.service.ts). Here is a simple implementation of a custom channel header to guide you:
29+
If you create your own channel header, you can use the [`ChannelService`](../services/channel.mdx) to access the currently active channel. Please note that, the default channel header also contains the menu button to [toggle the channel list](../services/channel-list-toggle.mdx). Here is a simple implementation of a custom channel header to guide you:
3030

3131
```typescript
3232
@Component({

docusaurus/docs/Angular/components/channel-list.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
id: channel_list
3-
sidebar_position: 4
3+
sidebar_position: 5
44
title: Channel list
55
---
66

77
The `ChannelList` component renders the list of channels.
88

99
The `ChannelList` displays channels using pagination, new channels are loaded if the user clicks the "Load more" button.
1010

11-
The channel list is always visible on desktop devices, on mobile devices, the list can be opened or closed controlled by a button in the `ChannelHeader` component.
11+
The channel list is always visible on desktop devices, on mobile devices, the list can be opened or closed controlled by a button in the [`ChannelHeader`](./channel-header.mdx) component.
1212

1313
## Customization
1414

@@ -32,7 +32,7 @@ Other building blocks, that you might find useful:
3232

3333
### Toggle
3434

35-
The channel list is always visible on desktop devices, on mobile devices, the list can be opened or closed controlled by a button in the `ChannelHeader` component. The open/close mechanism is implemented by the [`ChannelListToggleService`](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/channel-list/channel-list-toggle.service.ts).
35+
The channel list is always visible on desktop devices, on mobile devices, the list can be opened or closed controlled by a button in the `ChannelHeader` component. The open/close mechanism is implemented by the [`ChannelListToggleService`](../services/channel-list-toggle.mdx).
3636

3737
### Loading indicator
3838

@@ -45,7 +45,7 @@ The `ChannelList` component uses the [`Icon`](./icons.mdx) component to display
4545

4646
**Example 2** - Using a custom channel preview component
4747

48-
If you only want to customize the channel preview items (not the whole list), see example [here](./channel-preview.mdx/#customization).
48+
If you only want to customize the channel preview items (not the whole list), see the [channel preview customization](./channel-preview.mdx/#customization) guide.
4949

5050
## Inputs
5151

docusaurus/docs/Angular/components/channel-preview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: channel-preview
3-
sidebar_position: 5
3+
sidebar_position: 6
44
title: Channel preview
55
---
66

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
id: channel
3+
sidebar_position: 3
4+
title: Channel
5+
---
6+
7+
The `Channel` component is a container component that displays the [`ChannelHeader`](./channel-header.mdx), [`MessageList`](./message-list.mdx), [`NotificationList`](./notifications.mdx) and [`MessageInput`](./message-input.mdx) components.
8+
9+
## Customization
10+
11+
If you want to create a custom channel component, here is how to use it:
12+
13+
```html
14+
<div id="root">
15+
<stream-channel-list></stream-channel-list>
16+
<custom-channel>
17+
<stream-channel-header></stream-channel-header>
18+
<stream-message-list></stream-message-list>
19+
<stream-notification-list></stream-notification-list>
20+
<stream-message-input></stream-message-input>
21+
</custom-channel>
22+
</div>
23+
```

docusaurus/docs/Angular/components/icons.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: icon
3-
sidebar_position: 10
3+
sidebar_position: 7
44
title: Icons
55
---
66

@@ -27,7 +27,7 @@ export class CustomMessageComponent {
2727

2828
### <div class="label required basic">Required</div> icon
2929

30-
The icon to display, the list of supported icons can be found [here](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/icon/icon.component.ts).
30+
The icon to display, the list of [supported icons](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/icon/icon.component.ts) can be found on GitHub.
3131

3232
| Type |
3333
| ---------------------------------------------------------------------------------------------------------------------------------- |

docusaurus/docs/Angular/components/loading-indicator.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: loading-indicator
3-
sidebar_position: 9
3+
sidebar_position: 8
44
title: Loading indicator
55
---
66

docusaurus/docs/Angular/components/message-actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: message-actions
3-
sidebar_position: 6
3+
sidebar_position: 10
44
title: Message actions
55
---
66

docusaurus/docs/Angular/components/message-list.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: message_list
3-
sidebar_position: 3
3+
sidebar_position: 12
44
title: Message list
55
---
66

@@ -47,7 +47,7 @@ Message group styles makes the message list more readable, by grouping messages
4747

4848
**Example 2** - Using a custom message component
4949

50-
If you only want to customize the messages (not the whole list), see example [here](./message.mdx/#customization).
50+
If you only want to customize the messages (not the whole list), see the [message customization guide](./message.mdx/#customization).
5151

5252
## Inputs
5353

0 commit comments

Comments
 (0)