From 9a8a58f710ebc9b0c70ad165c945ee4412402eeb Mon Sep 17 00:00:00 2001 From: JoblersTune Date: Wed, 4 Sep 2024 14:53:04 +0200 Subject: [PATCH] chore: included the api docs in the integration section --- .prettierignore | 2 +- packages/documentation/.gitignore | 4 ++-- packages/documentation/astro.config.mjs | 22 +++++++++++++++---- .../documentation/src/content/docs/index.mdx | 4 ++-- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/.prettierignore b/.prettierignore index c320bd5021..115c15467d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -14,5 +14,5 @@ build **/styles/*.css .docusaurus .cache-loader -packages/documentation/src/content/docs/apis/graphql/** +packages/documentation/src/content/docs/integration/apis/** .astro \ No newline at end of file diff --git a/packages/documentation/.gitignore b/packages/documentation/.gitignore index 343d5e3e79..f6d7187289 100644 --- a/packages/documentation/.gitignore +++ b/packages/documentation/.gitignore @@ -24,5 +24,5 @@ pnpm-debug.log* .vscode # generated docs -src/content/docs/apis/graphql/auth/* -src/content/docs/apis/graphql/backend/* +src/content/docs/integration/apis/auth/* +src/content/docs/integration/apis/backend/* diff --git a/packages/documentation/astro.config.mjs b/packages/documentation/astro.config.mjs index 5ef4255c7a..1d8b852ae6 100644 --- a/packages/documentation/astro.config.mjs +++ b/packages/documentation/astro.config.mjs @@ -188,6 +188,20 @@ export default defineConfig({ { label: 'GraphQL Admin APIs', link: '/integration/apis/graphql-apis' + }, + { + label: 'Backend Admin API', + collapsed: true, + autogenerate: { + directory: 'integration/apis/backend' + } + }, + { + label: 'Auth Admin API', + collapsed: true, + autogenerate: { + directory: 'integration/apis/auth' + } } ] } @@ -252,13 +266,13 @@ export default defineConfig({ }), GraphQL({ schema: '../backend/src/graphql/schema.graphql', - output: './src/content/docs/apis/graphql/backend/', - linkPrefix: '/apis/graphql/backend/' + output: './src/content/docs/integration/apis/backend/', + linkPrefix: '/integration/apis/backend/' }), GraphQL({ schema: '../auth/src/graphql/schema.graphql', - output: './src/content/docs/apis/graphql/auth/', - linkPrefix: '/apis/graphql/auth/' + output: './src/content/docs/integration/apis/auth/', + linkPrefix: '/integration/apis/auth/' }) ], server: { diff --git a/packages/documentation/src/content/docs/index.mdx b/packages/documentation/src/content/docs/index.mdx index e7811da58f..57789dd8ae 100644 --- a/packages/documentation/src/content/docs/index.mdx +++ b/packages/documentation/src/content/docs/index.mdx @@ -14,12 +14,12 @@ hero: import { Card, CardGrid } from '@astrojs/starlight/components' - + Discover what is in our Backend GraphQL schema. - + Discover what is in our Auth GraphQL schema.