From 363ea5309239b8246a76b3cacc73a0fac49672f3 Mon Sep 17 00:00:00 2001 From: Hugo FOYART <11079152+foyarash@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:13:04 +0200 Subject: [PATCH] update docs --- .../docs/api/create-handler-function.mdx | 24 +++++++++---------- .../api/get-next-admin-props-function.mdx | 13 +++------- apps/docs/pages/index.mdx | 3 ++- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/apps/docs/pages/docs/api/create-handler-function.mdx b/apps/docs/pages/docs/api/create-handler-function.mdx index 894dd347..133d5a3a 100644 --- a/apps/docs/pages/docs/api/create-handler-function.mdx +++ b/apps/docs/pages/docs/api/create-handler-function.mdx @@ -1,8 +1,8 @@ - import { Callout, Tabs } from "nextra/components"; import OptionsTable from "../../../components/OptionsTable"; # `createHandler` function + This is the documentation for the latest version of Next Admin. If you are using an older version (`<5.0.0`), please refer to the [documentation](/v4/docs) @@ -12,21 +12,21 @@ import OptionsTable from "../../../components/OptionsTable"; Your Next Admin options - optional. + name: "options", + description: ( + <> + Your Next Admin options - optional.{" "} + + ), }, - ]} /> diff --git a/apps/docs/pages/docs/api/get-next-admin-props-function.mdx b/apps/docs/pages/docs/api/get-next-admin-props-function.mdx index 5d5a5ad2..b443b1dd 100644 --- a/apps/docs/pages/docs/api/get-next-admin-props-function.mdx +++ b/apps/docs/pages/docs/api/get-next-admin-props-function.mdx @@ -1,8 +1,8 @@ - import { Callout, Tabs } from "nextra/components"; import OptionsTable from "../../../components/OptionsTable"; # `getNextAdminProps` function + This is the documentation for the latest version of Next Admin. If you are using an older version (`<5.0.0`), please refer to the [documentation](/v4/docs) @@ -31,10 +31,6 @@ import OptionsTable from "../../../components/OptionsTable"; name: 'apiBasePath', description: 'The base path of your admin API. It is used to build the admin API URL. It is mandatory.' }, - { - name: 'schema', - description: <>The JSON schema generated by the prisma generate command. - }, { name: 'prisma', description: 'Your Prisma client instance.' @@ -70,10 +66,6 @@ import OptionsTable from "../../../components/OptionsTable"; name: 'apiBasePath', description: <>The base path of your admin API. It is used to build the admin API URL. It is optional and defaults to /api/admin. }, - { - name: 'schema', - description: <>The JSON schema generated by the prisma generate command. - }, { name: 'prisma', description: 'Your Prisma client instance.' @@ -94,8 +86,9 @@ import OptionsTable from "../../../components/OptionsTable"; name: 'options', description: <>The options object - optional. } - + ]} /> + diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdx index c4474dc3..ef12e641 100644 --- a/apps/docs/pages/index.mdx +++ b/apps/docs/pages/index.mdx @@ -13,7 +13,8 @@ import { FeaturesBento } from "@/components/bento/FeaturesBento";
Getting Started
- yarn add @premieroctet/next-admin prisma-json-schema-generator + yarn add @premieroctet/next-admin + @premieroctet/next-admin-generator-prisma
Features