Skip to content

Commit 8db51ff

Browse files
committed
Bump dependencies
1 parent 055f7e7 commit 8db51ff

File tree

12 files changed

+2015
-5582
lines changed

12 files changed

+2015
-5582
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.lintstagedrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'*.{js,ts,jsx,tsx}':
22
- prettier --write
3-
- next lint --file
3+
- oxlint --fix
44

55
'*.{md,mdx,json,yml,yaml}':
66
- prettier --write

.oxlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["oxc", "typescript", "unicorn", "react", "nextjs", "import", "jsx-a11y", "vitest", "promise"]
3+
}

app/(home)/[[...slug]]/page.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
import { notFound } from 'next/navigation';
2-
import defaultMdxComponents from 'fumadocs-ui/mdx';
3-
import { DocsBody, DocsCategory, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page';
2+
import { getPageTreePeers } from 'fumadocs-core/server';
3+
import { Card, Cards } from 'fumadocs-ui/components/card';
4+
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page';
45

56
import { metadataImage } from '@/lib/metadata';
6-
import { openapi, source } from '@/lib/source';
7+
import { source } from '@/lib/source';
8+
import { getMDXComponents } from '@/mdx-components';
79
import { getSiteUrl } from '@/utils/site';
810

11+
function DocsCategory({ url }: { url: string }) {
12+
return (
13+
<Cards>
14+
{getPageTreePeers(source.pageTree, url).map((peer) => (
15+
<Card key={peer.url} title={peer.name} href={peer.url}>
16+
{peer.description}
17+
</Card>
18+
))}
19+
</Cards>
20+
);
21+
}
22+
923
export default async function Page(props: { params: Promise<{ slug?: string[] }> }) {
1024
const params = await props.params;
1125
const page = source.getPage(params.slug);
@@ -25,8 +39,8 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
2539
<DocsTitle>{page.data.title}</DocsTitle>
2640
<DocsDescription>{page.data.description}</DocsDescription>
2741
<DocsBody>
28-
<MDX components={{ ...defaultMdxComponents, APIPage: openapi.APIPage }} />
29-
{page.data.index ? <DocsCategory page={page} from={source} /> : null}
42+
<MDX components={getMDXComponents()} />
43+
{page.data.index ? <DocsCategory url={page.url} /> : null}
3044
</DocsBody>
3145
</DocsPage>
3246
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "Access Tokens"
3+
}

content/docs/api/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"defaultOpen": true,
3-
"pages": ["providers", "clients", "..."]
3+
"pages": ["providers", "clients", "domains", "accesstokens", "tenants", "..."]
44
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title": "Tenant Provider Policies"
3+
}

mdx-components.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { APIPage } from 'fumadocs-openapi/ui';
2+
import defaultMdxComponents from 'fumadocs-ui/mdx';
3+
import type { MDXComponents } from 'mdx/types';
4+
5+
import { openapi } from '@/lib/source';
6+
7+
export function getMDXComponents(components?: MDXComponents): MDXComponents {
8+
return {
9+
...defaultMdxComponents,
10+
APIPage: (props) => <APIPage {...openapi.getAPIPageProps(props)} />,
11+
...components,
12+
};
13+
}

openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,8 @@ tags:
983983
description: Access tokens are generated for a client and can be used to access your target API.
984984
- name: Tenants
985985
description: Tenants are the group of identitiy provider which you can validate clients against.
986+
- name: TenantProviderPolicies
987+
description: Policies for tenant providers
986988

987989
security:
988990
- BearerAuth: []

0 commit comments

Comments
 (0)