Skip to content

Commit 005796b

Browse files
authored
fix: docs links (#97)
* fix: docs links * chore: update README * chore: update README * chore: update README * chore: update README * chore: update README
1 parent d08a681 commit 005796b

15 files changed

Lines changed: 81 additions & 46 deletions

File tree

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</a>
55
<h3 align="center">sweetr.dev</h3>
66
<p align="center">
7-
<i>Optimize delivery, enhance developer experience, and foster team growth with the sweetest Developer Intelligence Platform.</i>
7+
<i>Insights and automations your dev team will actually trust. Free to <a href="https://docs.sweetr.dev/get-started/self-host" target="blank">self-host</a>.</i>
88
</p>
99

1010
<p align="center">
@@ -22,16 +22,16 @@
2222
Spot work that needs attention; unblock your team; gather data for retros, 1:1s and performance reviews.
2323
<table>
2424
<tr>
25-
<th><a href="https://docs.sweetr.dev/features/pull-requests" target="_blank">Work Log</a></th>
26-
<th><a href="https://docs.sweetr.dev/features/code-reviews" target="_blank">WIP</a></th>
25+
<th><a href="https://docs.sweetr.dev/metrics-and-insights/work-log" target="_blank">Work Log</a></th>
26+
<th><a href="https://docs.sweetr.dev/metrics-and-insights/wip" target="_blank">WIP</a></th>
2727
</tr>
2828
<tr>
2929
<th><kbd><img width="100%" alt="Work Log" src="https://github.com/user-attachments/assets/675e66e7-ca99-412e-9987-e7c2c20df404"></kbd></th>
3030
<th><kbd><img width="100%" alt="WIP PRs" src="https://github.com/user-attachments/assets/fe1417ca-d80c-4e0c-838c-8dd5d91737ff"></kbd></th>
3131
</tr>
3232
<tr>
33-
<th><a href="https://docs.sweetr.dev/features/pull-requests" target="_blank">Pull Requests</a></th>
34-
<th><a href="https://docs.sweetr.dev/features/code-reviews" target="_blank">Code Reviews</a></th>
33+
<th><a href="https://docs.sweetr.dev/metrics-and-insights/pull-requests" target="_blank">Pull Requests</a></th>
34+
<th><a href="https://docs.sweetr.dev/metrics-and-insights/code-reviews" target="_blank">Code Reviews</a></th>
3535
</tr>
3636
<tr>
3737
<th><kbd><img width="100%" alt="Pull Requests" src="https://github.com/user-attachments/assets/ed91ec67-c945-47b7-acb2-27d365bb9a96"></kbd></th>
@@ -47,8 +47,8 @@ Keep your team on the loop; unblock work; speed up reviews and releases.
4747

4848
<table>
4949
<tr>
50-
<th><a href="https://docs.sweetr.dev/features/digests" target="_blank">Digests</a></th>
51-
<th><a href="https://docs.sweetr.dev/features/alerts" target="_blank">Pull Request Alerts</a></th>
50+
<th><a href="https://docs.sweetr.dev/automations/digests" target="_blank">Digests</a></th>
51+
<th><a href="https://docs.sweetr.dev/automations/alerts" target="_blank">Pull Request Alerts</a></th>
5252
</tr>
5353
<tr>
5454
<td><kbd><img width="100%" alt="Digests" src="https://github.com/user-attachments/assets/d92d06f0-055f-4086-ab53-3089d3bd3b83"></kbd></td>
@@ -64,14 +64,18 @@ Find bottlenecks; understand the team's flow and impact of process changes; impr
6464

6565
<table>
6666
<tr>
67-
<th><a href="https://docs.sweetr.dev/features/team/cycle-time" target="_blank">PR Cycle Time</a></th>
68-
<th><a href="https://docs.sweetr.dev/features/team/pr-size-distribution" target="_blank">PR Size</a></th>
69-
<th><a href="https://docs.sweetr.dev/features/team/code-review-distribution" target="_blank">Code Review Distribution</a></th>
67+
<th colspan="2"><a href="https://docs.sweetr.dev/metrics-and-insights/dora" target="_blank">DORA Metrics</a></th>
7068
</tr>
7169
<tr>
72-
<td><kbd><img width="100%" alt="PR Cycle Time" src="https://github.com/user-attachments/assets/579808e3-6998-4c73-8360-0893b96464e2"></kbd></td>
73-
<td><kbd><img width="100%" alt="PR Size" src="https://github.com/user-attachments/assets/dc2f6635-7c66-46ca-9b02-d6eecc176323"></kbd></td>
74-
<td><kbd><img width="100%" alt="Code Review Distribution" src="https://github.com/user-attachments/assets/07cd033b-7255-4e3d-99af-1a9ef7398e84"></kbd></td>
70+
<td colspan="2"><kbd><img width="100%" alt="DORA Metrics" src="https://github.com/user-attachments/assets/2c93e328-ba38-46bc-b411-f8400cb5d75a"></kbd></td>
71+
</tr>
72+
<tr>
73+
<th><a href="https://docs.sweetr.dev/metrics-and-insights/team/pr-size-distribution" target="_blank">PR Size</a></th>
74+
<th><a href="https://docs.sweetr.dev/metrics-and-insights/team/code-review-distribution" target="_blank">Code Review Distribution</a></th>
75+
</tr>
76+
<tr>
77+
<td><kbd><img width="100%" alt="PR Size" src="https://github.com/user-attachments/assets/9a8678c6-358c-4528-81c3-ff886861aa75"></kbd></td>
78+
<td><kbd><img width="100%" alt="Code Review Distribution" src="https://github.com/user-attachments/assets/ef9f847e-fc13-4ba1-9d31-30e462cedaf6"></kbd></td>
7579
</tr>
7680
</table>
7781

@@ -83,8 +87,8 @@ Improve Developer Experience with automations.
8387

8488
<table>
8589
<tr>
86-
<th><a href="http://localhost:3000/features/automations/pr-size-labeler" target="_blank">PR Size Labeler</a></th>
87-
<th><a href="http://localhost:3000/features/automations/pr-title-check" target="_blank">PR Title Check</a></th>
90+
<th><a href="https://docs.sweetr.dev/automations/pr-size-labeler" target="_blank">PR Size Labeler</a></th>
91+
<th><a href="https://docs.sweetr.dev/automations/pr-title-check" target="_blank">PR Title Check</a></th>
8892
</tr>
8993
<tr>
9094
<td><kbd><img width="100%" alt="PR Size Labeler" src="https://github.com/user-attachments/assets/1b5f646d-6b9c-4f3f-b992-aa5ed4495dbf"></kbd></td>

apps/api/src/app/digests/services/digest-team-metrics.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ const getDigestMessageBlocks = async (
242242
type: "plain_text",
243243
text: "Setup Deployments",
244244
},
245-
url: `https://docs.sweetr.dev/features/deployments`,
245+
url: `https://docs.sweetr.dev/platform/deployments`,
246246
});
247247
} else {
248248
buttons.push({

apps/docs/platform/deployments.mdx

Lines changed: 47 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,52 @@ Deployments track when a version of an application is deployed to an environment
1818

1919
Filter deployments by application, environment, and date range to find exactly what you need.
2020

21+
## Setting up deployments for DORA Metrics
22+
23+
To get accurate [DORA metrics](/metrics-and-insights/dora), you need to track deployments in Sweetr.
24+
25+
<Steps>
26+
<Step title="Create an application">
27+
Deployments belong to [Applications](/platform/applications). Create at least one application for each deployable unit in your repositories.
28+
29+
You can create applications manually from the UI, or let Sweetr auto-create them when you send your first deployment via the API.
30+
31+
<Tip>
32+
If you have a monorepo, create a separate application for each service and configure its **subdirectory** so pull requests are correctly linked to the right application.
33+
</Tip>
34+
35+
</Step>
36+
<Step title="Choose a deployment trigger">
37+
Each application needs a deployment trigger so Sweetr knows when a deployment happens. Pick the one that fits your workflow:
38+
39+
<CardGroup cols={2}>
40+
<Card title="API Webhook" icon="webhook">
41+
Call the [POST /v1/deployments](/api-reference/deployments/create-deployment) endpoint from your CI/CD pipeline (e.g., GitHub Actions, GitLab CI, Jenkins) whenever a deployment completes. **Recommended** for the most accurate metrics, since it captures the real deployment time.
42+
</Card>
43+
44+
<Card title="Pull Request Merge" icon="git-merge">
45+
Automatically create a deployment when a pull request is merged to a target branch. Simpler to set up, but uses the merge time as an approximation of deployment time.
46+
</Card>
47+
</CardGroup>
48+
49+
Configure the trigger in your application's **Deployment settings**. For merge-based triggers, set the **target branch** to the branch that represents production (e.g., `main`).
50+
51+
</Step>
52+
<Step title="Send your first deployment">
53+
Trigger a deployment by calling the API or merging a pull request to your target branch. Sweetr will record it and start building your DORA metrics.
54+
</Step>
55+
<Step title="Backfill historical data">
56+
Want DORA metrics from day one? Start with the **Pull Request Merge** trigger, then go to **Settings → Workspace** and click **Resync all historical data**. Sweetr will create deployments for every previously merged PR to your target branch, giving you historical metrics right away.
57+
58+
Once you have your baseline, you can switch to the **API Webhook** trigger for more accurate deployment times going forward.
59+
60+
<Tip>
61+
This is a great way to get visibility into your team's delivery history without waiting for new deployments to come in.
62+
</Tip>
63+
64+
</Step>
65+
</Steps>
66+
2167
## Change type
2268

2369
Sweetr automatically determines the **change type** for each deployment by comparing commits against the previous deployment:
@@ -26,21 +72,6 @@ Sweetr automatically determines the **change type** for each deployment by compa
2672
- **Rollback**: The deployment reverts to a previous version.
2773
- **No Change**: A redeployment of the same version.
2874

29-
## Deployment triggers
30-
31-
Deployments can be tracked through two different triggers:
32-
33-
<Card title="API Webhook" icon="webhook" horizontal>
34-
Send deployments via the [POST
35-
/v1/deployments](/api-reference/deployments/create-deployment) REST endpoint.
36-
Best for custom CI/CD pipelines.
37-
</Card>
38-
39-
<Card title="Pull Request Merge" icon="git-merge" horizontal>
40-
Automatically create a deployment when a pull request is merged to a target
41-
branch. Best for trunk-based development.
42-
</Card>
43-
4475
### Linking Pull Requests
4576

4677
Each deployment is automatically linked to the pull requests it contains. The linking strategy depends on the deployment trigger.
@@ -74,7 +105,7 @@ The deployment trigger you choose affects the accuracy of your [DORA metrics](/m
74105

75106
<Card title="Pull Request Merge" icon="git-merge">
76107
Uses the **merge time** as the deployment time. This is an approximation,
77-
since the actual deployment typically happens after the merge once your
108+
since the actual deployment typically happens after the merge, once your
78109
CI/CD pipeline finishes building, testing, and deploying.
79110
</Card>
80111
</CardGroup>

apps/web/src/app/automations/settings/pr-title-check/components/form-pr-title-check-settings/form-pr-title-check-settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const FormPrTitleCheckSettings = ({
4949
fz="sm"
5050
ml="auto"
5151
target="_blank"
52-
href="https://docs.sweetr.dev/features/automations/pr-title-check#popular-patterns"
52+
href="https://docs.sweetr.dev/automations/pr-title-check#popular-patterns"
5353
rel="noreferrer"
5454
w="fit-content"
5555
>

apps/web/src/app/automations/use-automation-cards.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const automationCards = {
1111
shortDescription:
1212
"Automatically detect incidents from rollbacks, hotfixes and reverts.",
1313
demoUrl: null,
14-
docsUrl: "https://docs.sweetr.dev/features/automations/incident-detection",
14+
docsUrl: "https://docs.sweetr.dev/automations/incident-detection",
1515
color: "orange.1",
1616
icon: "🚨",
1717
benefits: {
@@ -28,7 +28,7 @@ const automationCards = {
2828
description:
2929
"Automatically label a Pull Request with its size. Increase awareness on creating small PRs.",
3030
demoUrl: "/images/automations/pr-size-labeler.webp",
31-
docsUrl: "https://docs.sweetr.dev/features/automations/pr-size-labeler",
31+
docsUrl: "https://docs.sweetr.dev/automations/pr-size-labeler",
3232
color: "indigo.1",
3333
icon: "📏",
3434
benefits: {
@@ -46,7 +46,7 @@ const automationCards = {
4646
shortDescription:
4747
"Enforce standards on Pull Request titles. Ticket code, specific prefix, or something else? You pick it.",
4848
demoUrl: "/images/automations/pr-title-check-demo.webp",
49-
docsUrl: "https://docs.sweetr.dev/features/automations/pr-title-check",
49+
docsUrl: "https://docs.sweetr.dev/automations/pr-title-check",
5050
color: "lime.1",
5151
icon: "✍️",
5252
benefits: {

apps/web/src/app/humans/teams/[id]/health-and-performance/activity/code-review-distribution/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const TeamCodeReviewDistributionPage = () => {
6767
{...drawerProps}
6868
title="Code review distribution"
6969
toolbar={
70-
<ButtonDocs href="http://docs.sweetr.dev/features/team/code-review-distribution" />
70+
<ButtonDocs href="https://docs.sweetr.dev/metrics-and-insights/team/code-review-distribution" />
7171
}
7272
>
7373
<Box p="md">

apps/web/src/app/humans/teams/[id]/health-and-performance/code-reviews/time-to-approve/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const TeamCodeReviewsTimeToApprovePage = () => {
6161
{...drawerProps}
6262
title="Time to approve"
6363
toolbar={
64-
<ButtonDocs href="http://docs.sweetr.dev/features/team/time-to-approve" />
64+
<ButtonDocs href="https://docs.sweetr.dev/metrics-and-insights/team/time-to-approve" />
6565
}
6666
>
6767
<Box p="md">

apps/web/src/app/humans/teams/[id]/health-and-performance/code-reviews/time-to-first-review/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const TeamCodeReviewsTimeToFirstReviewPage = () => {
5959
{...drawerProps}
6060
title="Time to first review"
6161
toolbar={
62-
<ButtonDocs href="http://docs.sweetr.dev/features/team/time-to-first-review" />
62+
<ButtonDocs href="https://docs.sweetr.dev/metrics-and-insights/team/time-to-first-review" />
6363
}
6464
>
6565
<Box p="md">

apps/web/src/app/humans/teams/[id]/health-and-performance/pull-requests/cycle-time/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const TeamPullRequestsCycleTimePage = () => {
6161
{...drawerProps}
6262
title="Cycle time"
6363
toolbar={
64-
<ButtonDocs href="http://docs.sweetr.dev/features/team/cycle-time" />
64+
<ButtonDocs href="https://docs.sweetr.dev/metrics-and-insights/team/cycle-time" />
6565
}
6666
>
6767
<Box p="md">

apps/web/src/app/humans/teams/[id]/health-and-performance/pull-requests/size-distribution/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const TeamPullRequestsSizeDistribution = () => {
6666
{...drawerProps}
6767
title="Pull Request size distribution"
6868
toolbar={
69-
<ButtonDocs href="http://docs.sweetr.dev/features/team/pr-size-distribution" />
69+
<ButtonDocs href="https://docs.sweetr.dev/metrics-and-insights/team/pr-size-distribution" />
7070
}
7171
>
7272
<Box p="md">

0 commit comments

Comments
 (0)