Skip to content

Commit

Permalink
fixed react inside mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakprabhakara committed Nov 1, 2023
1 parent 52f8e6c commit dd925dd
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 82 deletions.
14 changes: 2 additions & 12 deletions guides/directory-sync/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,10 @@ slug: /directory-sync

This guide describes how to add Directory Sync to different languages & frameworks.

import GuideSection from '../../src/components/GuideSection.js';
const frameworks = [
{
name: 'Next.js',
href: '/guides/directory-sync/frameworks/nextjs',
},
{
name: 'Express.js',
href: '/guides/directory-sync/frameworks/express',
}
];
import FrameworksGuide from '../../src/components/guides/dsync/FrameworksGuide.js';

<div className="container" style={{ padding: 0 }}>
<div className="row is-multiline">
<GuideSection items={frameworks} />
<FrameworksGuide />
</div>
</div>
76 changes: 6 additions & 70 deletions guides/jackson/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,81 +8,17 @@ slug: /jackson

The documentation is divided into 3 sections.

import GuideSection from '../../src/components/GuideSection.js';
const frameworks = [
{
name: 'AdonisJS',
href: '/guides/jackson/frameworks/adonis',
},
{
name: 'Express.js',
href: '/guides/jackson/frameworks/express',
},
{
name: 'Next.js',
href: '/guides/jackson/frameworks/nextjs',
},
{
name: 'React',
href: '/guides/jackson/frameworks/react',
},
{
name: 'Remix',
href: '/guides/jackson/frameworks/remix',
},
{
name: 'Laravel',
href: '/guides/jackson/frameworks/laravel',
},
{
name: 'Ruby on Rails',
href: '/guides/jackson/frameworks/rails',
},
];
const integrations = [
{
name: 'Auth0',
href: '/guides/jackson/integrations/auth0',
},
{
name: 'Firebase',
href: '/guides/jackson/integrations/firebase',
},
{
name: 'NextAuth',
href: '/guides/jackson/integrations/nextauth',
},
{
name: 'SuperTokens',
href: '/guides/jackson/integrations/supertokens',
},
{
name: 'Bubble.io',
href: '/guides/jackson/integrations/bubble',
},
];
const deployments = [
{
name: 'Heroku',
href: '/guides/jackson/deployments/heroku',
},
{
name: 'Vercel',
href: '/guides/jackson/deployments/vercel',
},
{
name: 'mogenius',
href: '/guides/jackson/deployments/mogenius',
},
];
import DeploymentsGuide from '../../src/components/guides/jackson/DeploymentsGuide.js';
import IntegrationsGuide from '../../src/components/guides/jackson/IntegrationsGuide.js';
import FrameworksGuide from '../../src/components/guides/jackson/FrameworksGuide.js';

## Deployment Guides

If you want to self host SAML Jackson, the recommended approach is to use one of the recommended one click installation options.

<div className="container" style={{ padding: 0 }}>
<div className="row is-multiline">
<GuideSection items={deployments} />
<DeploymentsGuide />
</div>
</div>

Expand All @@ -92,7 +28,7 @@ Step-by-step guides to quickly integrate SAML SSO into your application.

<div className="container" style={{ padding: 0 }}>
<div className="row is-multiline">
<GuideSection items={frameworks} />
<FrameworksGuide />
</div>
</div>

Expand All @@ -102,6 +38,6 @@ SAML Jackson works with a large number of Open source tools.

<div className="container" style={{ padding: 0 }}>
<div className="row is-multiline">
<GuideSection items={integrations} />
<IntegrationsGuide />
</div>
</div>
17 changes: 17 additions & 0 deletions src/components/guides/dsync/FrameworksGuide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import GuideSection from '../../GuideSection.js';

const frameworks = [
{
name: 'Next.js',
href: '/guides/directory-sync/frameworks/nextjs',
},
{
name: 'Express.js',
href: '/guides/directory-sync/frameworks/express',
},
];

export default function FrameworksGuide() {
return <GuideSection items={frameworks} />;
}
21 changes: 21 additions & 0 deletions src/components/guides/jackson/DeploymentsGuide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import GuideSection from '../../GuideSection.js';

const deployments = [
{
name: 'Heroku',
href: '/guides/jackson/deployments/heroku',
},
{
name: 'Vercel',
href: '/guides/jackson/deployments/vercel',
},
{
name: 'mogenius',
href: '/guides/jackson/deployments/mogenius',
},
];

export default function DeploymentsGuide() {
return <GuideSection items={deployments} />;
}
37 changes: 37 additions & 0 deletions src/components/guides/jackson/FrameworksGuide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react';
import GuideSection from '../../GuideSection.js';

const frameworks = [
{
name: 'AdonisJS',
href: '/guides/jackson/frameworks/adonis',
},
{
name: 'Express.js',
href: '/guides/jackson/frameworks/express',
},
{
name: 'Next.js',
href: '/guides/jackson/frameworks/nextjs',
},
{
name: 'React',
href: '/guides/jackson/frameworks/react',
},
{
name: 'Remix',
href: '/guides/jackson/frameworks/remix',
},
{
name: 'Laravel',
href: '/guides/jackson/frameworks/laravel',
},
{
name: 'Ruby on Rails',
href: '/guides/jackson/frameworks/rails',
},
];

export default function FrameworksGuide() {
return <GuideSection items={frameworks} />;
}
29 changes: 29 additions & 0 deletions src/components/guides/jackson/IntegrationsGuide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from 'react';
import GuideSection from '../../GuideSection.js';

const integrations = [
{
name: 'Auth0',
href: '/guides/jackson/integrations/auth0',
},
{
name: 'Firebase',
href: '/guides/jackson/integrations/firebase',
},
{
name: 'NextAuth',
href: '/guides/jackson/integrations/nextauth',
},
{
name: 'SuperTokens',
href: '/guides/jackson/integrations/supertokens',
},
{
name: 'Bubble.io',
href: '/guides/jackson/integrations/bubble',
},
];

export default function IntegrationsGuide() {
return <GuideSection items={integrations} />;
}

0 comments on commit dd925dd

Please sign in to comment.