Skip to content

Commit 8d99e5d

Browse files
committed
docs: add agent and dashboard plugins at the landing page
1 parent 28a7957 commit 8d99e5d

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

adminforth/documentation/docs/tutorial/08-Plugins/27-dashboard.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Dashboard
3-
description: "Guide to the Dashboard plugin."
2+
title: Dashboard plugin
3+
description: "Documentation for the Dashboard plugin."
44
slug: /tutorial/Plugins/dashboard
55
---
66

@@ -24,7 +24,7 @@ Supported widgets:
2424
pnpm install @adminforth/dashboard --save
2525
```
2626

27-
## Create Dashboard Configs Table
27+
### Create Dashboard Configs Table
2828

2929
The plugin needs one resource to store dashboard definitions. For Prisma-based projects, add the table to your schema:
3030

@@ -64,7 +64,7 @@ CREATE INDEX "dashboard_configs_slug_idx" ON "dashboard_configs"("slug");
6464

6565
Use the JSON column type supported by your database connector. For example, PostgreSQL migrations might use `JSONB`, while SQLite migrations can use `JSON`.
6666

67-
## Create Resource
67+
### Create Resource
6868

6969
Create a resource that points to the `dashboard_configs` table:
7070

@@ -136,7 +136,7 @@ export const admin = new AdminForth({
136136
});
137137
```
138138

139-
## Configure Plugin
139+
### Configure Plugin
140140

141141
Attach the plugin to one of your resources, usually the users resource:
142142

adminforth/documentation/src/pages/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ const images = [
140140
link: '/docs/tutorial/Plugins/background-jobs/',
141141
description: 'Use background jobs to handle long-running tasks efficiently. Schedule, monitor, and manage your background processes with ease even after server restarts'
142142
},
143+
{
144+
original: require('@site/static/img/previews/agent.png').default,
145+
title: 'Agent Plugin - give AI any task and let it handle it',
146+
link: '/docs/tutorial/Plugins/agent/',
147+
description: 'Provides an internal agent that can perform various tasks based on natural language instructions. Connect it to your data and let it help you with content generation, data management, or any custom use case you can think of'
148+
},
149+
{
150+
original: require('@site/static/img/previews/dashboards-plugin.png').default,
151+
title: 'Dashboard Plugin - creare custom dashboards from web interface',
152+
link: '/docs/tutorial/Plugins/dashboard/',
153+
description: 'Provides a customizable dashboard plugin that allows you to create and manage dashboards for your data. Connect it to your resources and visualize your data in a meaningful way'
154+
},
143155
];
144156

145157

562 KB
Loading
448 KB
Loading

0 commit comments

Comments
 (0)