Skip to content

Commit

Permalink
chore: cr fixes and styles updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Q1w1N committed Nov 28, 2024
1 parent 7cda312 commit 4abbb28
Show file tree
Hide file tree
Showing 20 changed files with 419 additions and 59 deletions.
3 changes: 3 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"rspress": "^1.35.1",
"ts-node": "^10.9.2",
"typescript": "^5.6.3"
},
"dependencies": {
"rspress-plugin-font-open-sans": "^1.0.0"
}
}
27 changes: 25 additions & 2 deletions docs/rspress.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
import { defineConfig } from 'rspress/config';
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
import * as path from 'node:path';

export default defineConfig({
root: 'src',
base: '/byorg-ai/',
title: 'byorg-ai',
title: 'byorg.ai',
icon: '/img/favicon.ico',
description: 'TypeScript framework for writing chatbot applications.',
plugins: [],
logo: {
light: '/img/logo_mono_light.svg',
dark: '/img/logo_mono_dark.svg',
},
globalStyles: path.join(__dirname, 'src/styles/index.css'),
themeConfig: {
enableContentAnimation: true,
enableScrollToTop: true,
outlineTitle: 'Contents',
footer: {
message: 'Copyright © 2024 Callstack Open Source',
},
socialLinks: [
{
icon: 'github',
mode: 'link',
content: 'https://github.com/callstack/byorg-ai',
},
],
},
plugins: [pluginFontOpenSans()],
});
5 changes: 0 additions & 5 deletions docs/src/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@
"text": "Docs",
"link": "/docs/about",
"activeMatch": "^/docs/"
},
{
"text": "API",
"link": "/api/about",
"activeMatch": "^/api/"
}
]
23 changes: 0 additions & 23 deletions docs/src/api/_meta.json

This file was deleted.

3 changes: 0 additions & 3 deletions docs/src/api/about.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/src/api/core/_meta.json

This file was deleted.

3 changes: 0 additions & 3 deletions docs/src/api/core/index.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/src/api/slack/_meta.json

This file was deleted.

3 changes: 0 additions & 3 deletions docs/src/api/slack/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/docs/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Introduction

byorg.ai is a framework designed for the rapid development and deployment of AI assistants within companies and organizations.
byorg.ai is a framework designed for rapid development and deployment of AI assistants within companies and organizations.

## Supported Integrations

Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/core/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Here is step by step how to start with byorg.
systemPrompt,
});
```
### Run processing message
### Process user messages
```js
const messages = [{ role: 'user', content: 'First message!' }]
const response = await app.processMessages(messages);
Expand Down
3 changes: 3 additions & 0 deletions docs/src/docs/integrations/slack-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ received from slack endpoint.
slack.processEvent(event);
```

We provide automatic parsing from slack event to our internal event. We also provide custom formatter to
[slack blocks](https://api.slack.com/block-kit) that uses `slack-rich-text` package.

## Websocket mode

Alternatively, you can use [Slack SDK](https://tools.slack.dev/bolt-js/concepts/socket-mode) ability to connect to Slack API using WebSockets. This can be helpful in cases when you want to setup your server in a setting without public IP connection and/or for development purposes.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pageType: home

hero:
name: byorg-ai
name: '<img alt="byorg.ai" className="home-hero-name-img" src="/img/logo_dark">'
text: 'AI Assistants Framework'
tagline: A framework to make development of your AI Assistant faster and easier.
actions:
Expand Down
Binary file added docs/src/public/img/favicon.ico
Binary file not shown.
56 changes: 56 additions & 0 deletions docs/src/public/img/logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions docs/src/public/img/logo_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions docs/src/public/img/logo_mono_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions docs/src/public/img/logo_mono_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4abbb28

Please sign in to comment.