Skip to content

Commit

Permalink
Changes for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
su-docker committed Feb 7, 2024
1 parent 0834032 commit 4364335
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

Tarka Chat UI is a plug and play javascript library to integrate a chat assistant to your website in one line

## Importing

Incude the following script in your html
## Usage

- V1 (Github pages): `<script src="https://tarkalabs.github.io/tarka-chat/dist/tarka-chat.umd.js"></script>`
- V2 (CDN): `<script src="https://d1fmfone96g0x2.cloudfront.net/tarka-chat-2.0.2.umd.js"></script>`
1. Incude the following script (hosted in CDN) in your html

**Note:** More V2 versions are available and can be found from the release tags list. They can be used from the CDN in the format `tarka-chat-<version>.es.js` and `tarka-chat-<version>.umd.js`
```
<script src="https://d1fmfone96g0x2.cloudfront.net/tarka-chat-2.0.2.umd.js"></script>
```

## Usage

Initialise the global `TarkaChat` component with options in any script tag
2. Initialise the global `TarkaChat` component with options in any script tag

```
TarkaChat.init({
Expand Down Expand Up @@ -54,3 +53,10 @@ where,

Demo is deployed from the application code in `demo/` folder.
Link: https://tarkalabs.github.io/tarka-chat/demo/

## Old versions

v1.1 : https://d1fmfone96g0x2.cloudfront.net/tarka-chat-1.1.umd.js
v1.0 : https://d1fmfone96g0x2.cloudfront.net/tarka-chat-1.1.umd.js

Check [release notes](RELEASE.md) for details
5 changes: 5 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# v1.1
- Fixed the issue #18 where the chat window does not render correctly in mobile view

# v1.0
Initial version
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</style>

<!-- Include this javscript -->
<script src="https://tarkalabs.github.io/tarka-chat/dist/tarka-chat.umd.js"></script>
<script src="https://d1fmfone96g0x2.cloudfront.net/tarka-chat-2.0.2.umd.js"></script>
</head>
<body>
<div class="container">
Expand Down

0 comments on commit 4364335

Please sign in to comment.