Skip to content

Commit

Permalink
docs: add document and website entry in app
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Sep 10, 2024
1 parent 1895ac7 commit f74289f
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/client/components/feed/FeedIntegration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover';
import { CodeBlock } from '../CodeBlock';
import { useTranslation } from '@i18next-toolkit/react';
import { SiSentry } from 'react-icons/si';
import { Link } from '@tanstack/react-router';

export const FeedIntegration: React.FC<{
feedId: string;
Expand Down Expand Up @@ -42,6 +43,17 @@ export const FeedIntegration: React.FC<{
<CodeBlock
code={`${window.location.origin}/open/feed/${props.feedId}/sentry`}
/>

<div className="mt-2">
{t('Check here to learn more')}:{' '}
<a
className="text-blue-500 underline"
href="https://tianji.msgbyte.com/docs/feed/sentry"
target="_blank"
>
{t('Document')}
</a>
</div>
</div>
}
/>
Expand Down
4 changes: 4 additions & 0 deletions website/docs/feed/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Feed",
"position": 17
}
Binary file added website/docs/feed/assets/sentry1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/docs/feed/assets/sentry2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/docs/feed/assets/sentry3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/docs/feed/assets/sentry4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/docs/feed/assets/sentry5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/docs/feed/assets/sentry6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions website/docs/feed/sentry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
sidebar_position: 1
---

# Integration with Sentry

:::info
Learn more about sentry in [sentry.io](https://sentry.io/)
:::

Click `Settings` => `Integrations` => `Create New Integration`

![](./assets/sentry1.png)

Create a `Internal Integration` application

![](./assets/sentry2.png)

Input name `Tianji` and put in webhook url into form.

![](./assets/sentry3.png)

Don't forget enable `Alert Rule Action`

![](./assets/sentry4.png)

Then, add issue read `permission`, and webhook add `issue` and `error`

![](./assets/sentry5.png)

Finally, you can create a alert rule, and you can see `Tianji` in notification section dropdown list

![](./assets/sentry6.png)

0 comments on commit f74289f

Please sign in to comment.