Skip to content

Commit 8800059

Browse files
authored
Merge pull request #115 from GetStream/docusaurus-publish
chore: Publish docs to docusaurus #101
2 parents b8e8945 + a1779f5 commit 8800059

File tree

6 files changed

+56
-77
lines changed

6 files changed

+56
-77
lines changed

.github/workflows/workflow.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414
node-version: [16.x]
1515

1616
steps:
17-
- uses: actions/checkout@v1
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
1820

1921
- name: Cache node modules
2022
uses: actions/cache@v1
@@ -51,3 +53,16 @@ jobs:
5153
env:
5254
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5355
run: npx semantic-release
56+
- name: Verify docs changed
57+
uses: tj-actions/[email protected]
58+
with:
59+
files: |
60+
docusaurus
61+
id: changed_files
62+
- name: Push to docusaurus
63+
if: steps.changed_files.outputs.any_changed == 'true'
64+
uses: GetStream/push-stream-chat-docusaurus-action@main
65+
with:
66+
target-branch: ${{ github.ref == 'refs/heads/master' && 'staging' || 'staging' }}
67+
env:
68+
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ For complete pricing and details visit our [Chat Pricing Page](https://getstream
3535
### Install with NPM
3636

3737
```
38-
npm install npm install stream-chat-angular stream-chat-css stream-chat @ngx-translate/core
38+
npm install stream-chat-angular stream-chat-css stream-chat @ngx-translate/core
3939
```
4040

4141
## Sample App

docusaurus/docs/Angular/basics/getting-started.mdx

Lines changed: 0 additions & 58 deletions
This file was deleted.

docusaurus/docs/Angular/basics/installation.mdx

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
id: overview
3+
sidebar_position: 1
4+
slug: /
5+
title: Overview
6+
---
7+
8+
Building on top of the Stream Chat API, the Stream Chat Angular component library includes everything you need to build feature-rich and high-functioning chat user experiences out of the box.
9+
The library includes an extensive set of performant and customizable Angular components which allow you to get started quickly with little to no plumbing required.
10+
Use cases include team and social messaging and customer support. The library supports:
11+
12+
- Rich media messages
13+
- Reactions
14+
- Image and file uploads
15+
- Read state
16+
- Channel and message lists
17+
18+
## Architecture
19+
20+
The library contains a set of components that contain all of the necessary features to build a performant chat UI. However, it is also possible to provide your own custom components instead of the built-in ones.
21+
22+
If you want to, you can build your own chat UI from scratch but still take advantage of the library by using our services.
23+
24+
The left navigation will guide you to the various documentation sections for information on everything regarding our robust component library. Check out the instructions below for adding the library to your Angular project.
25+
26+
## Installation
27+
28+
We recommended using the component library through a package manager. Stream Chat React is based on top of Stream's [JavaScript Client](https://getstream.io/chat/docs/javascript/?language=javascript).
29+
30+
### Install with NPM
31+
32+
```bash
33+
npm install stream-chat-angular stream-chat-css stream-chat @ngx-translate/core
34+
```
35+
36+
## Tutorial
37+
38+
Follow our [tutorial](https://getstream.io/tutorials/angular-chat/) and build your first Stream Angular chat application.

projects/stream-chat-angular/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ For complete pricing and details visit our [Chat Pricing Page](https://getstream
3535
### Install with NPM
3636

3737
```
38-
npm install npm install stream-chat-angular stream-chat-css stream-chat @ngx-translate/core
38+
npm install stream-chat-angular stream-chat-css stream-chat @ngx-translate/core
3939
```
4040

4141
## Sample App

0 commit comments

Comments
 (0)