Skip to content

Commit a187015

Browse files
committed
feat: refactor how-to pre-reqs
1 parent 28ec2c2 commit a187015

20 files changed

+618
-194
lines changed

auth4genai/how-tos/check-google-calendar-availability.mdx

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,61 +13,38 @@ import LlamaIndexSample from "/snippets/how-tos/google-calendar/llamaindex-pytho
1313
import NextJSAuth0Sample from "/snippets/how-tos/google-calendar/nextjs-auth0.mdx";
1414
import GenKitSample from "/snippets/how-tos/google-calendar/genkit.mdx";
1515

16-
import GoogleCalPrereqsCommon from "/snippets/how-tos/google-calendar/google-cal-prereqs-common.mdx";
17-
import GoogleCalPrereqsJs from "/snippets/how-tos/google-calendar/google-cal-prereqs-js.mdx";
18-
import GoogleCalPrereqsPython from "/snippets/how-tos/google-calendar/google-cal-prereqs-python.mdx";
19-
import CreateCustomApiClient from "/snippets/common/create-custom-api-client.mdx";
16+
import { GoogleCalendarPrereqs } from "/snippets/how-tos/google-calendar/prereqs.jsx";
2017

2118
<Tabs>
2219
<Tab title="Javascript" icon="js">
23-
2420
<Tabs>
2521
<Tab title="AI SDK" icon="https://mintlify-assets.b-cdn.net/auth0/vercel.svg">
26-
<Card title="Prerequisites">
27-
<GoogleCalPrereqsJs />
28-
<GoogleCalPrereqsCommon />
29-
</Card>
22+
<GoogleCalendarPrereqs lang="js" />
3023
<AISDKSample />
3124
</Tab>
3225

3326
<Tab title="Cloudflare Agents" icon="https://mintlify-assets.b-cdn.net/auth0/cloudflare.svg">
34-
<Card title="Prerequisites">
35-
<GoogleCalPrereqsJs />
36-
<GoogleCalPrereqsCommon />
37-
</Card>
27+
<GoogleCalendarPrereqs lang="js" />
3828
<CloudflareAgents />
3929
</Tab>
4030

4131
<Tab title="LangGraph" icon="https://mintlify-assets.b-cdn.net/auth0/langchain.svg">
42-
<Card title="Prerequisites">
43-
<GoogleCalPrereqsJs />
44-
<GoogleCalPrereqsCommon />
45-
<CreateCustomApiClient />
46-
</Card>
32+
<GoogleCalendarPrereqs lang="js" createCustomApiClientStep={true} />
4733
<LangGraphJSSample />
4834
</Tab>
4935

5036
<Tab title="GenKit" icon="https://mintlify-assets.b-cdn.net/auth0/genkit.svg">
51-
<Card title="Prerequisites">
52-
<GoogleCalPrereqsJs />
53-
<GoogleCalPrereqsCommon />
54-
</Card>
37+
<GoogleCalendarPrereqs lang="js" />
5538
<GenKitSample />
5639
</Tab>
5740

5841
<Tab title="LlamaIndex" icon="https://mintlify-assets.b-cdn.net/auth0/llamadex.svg">
59-
<Card title="Prerequisites">
60-
<GoogleCalPrereqsJs />
61-
<GoogleCalPrereqsCommon />
62-
</Card>
42+
<GoogleCalendarPrereqs lang="js" />
6343
<LlamaIndexJSSample />
6444
</Tab>
6545

6646
<Tab title="NextJS-Auth0" icon="https://mintlify-assets.b-cdn.net/auth0/nextjs-svgrepo-com.svg">
67-
<Card title="Prerequisites">
68-
<GoogleCalPrereqsJs />
69-
<GoogleCalPrereqsCommon />
70-
</Card>
47+
<GoogleCalendarPrereqs lang="js" />
7148
<NextJSAuth0Sample />
7249
</Tab>
7350
</Tabs>
@@ -77,18 +54,12 @@ import CreateCustomApiClient from "/snippets/common/create-custom-api-client.mdx
7754
<Tab title="Python" icon="python">
7855
<Tabs>
7956
<Tab title="LangGraph" icon="https://mintlify-assets.b-cdn.net/auth0/langchain.svg">
80-
<Card headerText="Prerequisites">
81-
<GoogleCalPrereqsPython />
82-
<GoogleCalPrereqsCommon />
83-
</Card>
57+
<GoogleCalendarPrereqs lang="python" />
8458
<LangGraphSample />
8559
</Tab>
8660

8761
<Tab title="LlamaIndex" icon="https://mintlify-assets.b-cdn.net/auth0/llamadex.svg">
88-
<Card headerText="Prerequisites">
89-
<GoogleCalPrereqsPython />
90-
<GoogleCalPrereqsCommon />
91-
</Card>
62+
<GoogleCalendarPrereqs lang="python" />
9263
<LlamaIndexSample />
9364
</Tab>
9465

auth4genai/how-tos/get-salesforce-opportunities.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ description: "Use OpenAI, NextJS, and the Auth0-AI SDKs to get Salesforce opport
44
mode: "wide"
55
---
66

7-
import SalesforcePrereqsCommon from "/snippets/how-tos/salesforce/salesforce-prereqs-common.mdx";
8-
import SalesforcePrereqsJs from "/snippets/how-tos/salesforce/salesforce-prereqs-js.mdx";
7+
import { SalesforcePrereqs } from "/snippets/how-tos/salesforce/prereqs.jsx";
98

109
<Tabs>
1110
<Tab title="Next.js" icon="https://mintlify-assets.b-cdn.net/auth0/nextjs-svgrepo-com.svg">
1211

13-
<Card title="Prerequisites">
14-
<SalesforcePrereqsJs />
15-
<SalesforcePrereqsCommon />
16-
</Card>
12+
<SalesforcePrereqs lang="js" />
1713

1814
## 1. Define the Vercel AI tool and backend API route
1915

auth4genai/how-tos/list-github-repositories.mdx

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,62 +14,39 @@ import GenKitSample from "/snippets/how-tos/github/genkit.mdx";
1414
import LlamaIndexJSSample from "/snippets/how-tos/github/llamaindex.mdx";
1515
import AccountLinking from "/snippets/how-tos/account-linking.mdx";
1616

17-
import GithubPrereqsCommon from "/snippets/how-tos/github/github-prereqs-common.mdx";
18-
import GithubPrereqsJs from "/snippets/how-tos/github/github-prereqs-js.mdx";
19-
import GithubPrereqsPython from "/snippets/how-tos/github/github-prereqs-python.mdx";
20-
21-
import CreateCustomApiClient from "/snippets/common/create-custom-api-client.mdx";
17+
import { GitHubPrereqs } from "/snippets/how-tos/github/prereqs.jsx";
2218

2319
<Tabs>
2420
<Tab title="JavaScript" icon="js">
2521

2622
<Tabs>
2723
<Tab title="AI SDK" icon="https://mintlify-assets.b-cdn.net/auth0/vercel.svg">
28-
<Card title="Prerequisites">
29-
<GithubPrereqsJs />
30-
<GithubPrereqsCommon />
31-
</Card>
24+
<GitHubPrereqs lang="js" />
3225
<AISDKSample />
3326
</Tab>
3427

3528
<Tab title="Cloudflare Agents" icon="https://mintlify-assets.b-cdn.net/auth0/cloudflare.svg">
36-
<Card title="Prerequisites">
37-
<GithubPrereqsJs />
38-
<GithubPrereqsCommon />
39-
</Card>
29+
<GitHubPrereqs lang="js" />
4030
<CloudflareAgents />
4131
</Tab>
4232

4333
<Tab title="LangGraph" icon="https://mintlify-assets.b-cdn.net/auth0/langchain.svg">
44-
<Card title="Prerequisites">
45-
<GithubPrereqsJs />
46-
<GithubPrereqsCommon />
47-
<CreateCustomApiClient />
48-
</Card>
34+
<GitHubPrereqs lang="js" createCustomApiClientStep={true} />
4935
<LangGraphJSSample />
5036
</Tab>
5137

5238
<Tab title="GenKit" icon="https://mintlify-assets.b-cdn.net/auth0/genkit.svg">
53-
<Card title="Prerequisites">
54-
<GithubPrereqsJs />
55-
<GithubPrereqsCommon />
56-
</Card>
39+
<GitHubPrereqs lang="js" />
5740
<GenKitSample />
5841
</Tab>
5942

6043
<Tab title="LlamaIndex" icon="https://mintlify-assets.b-cdn.net/auth0/llamadex.svg">
61-
<Card title="Prerequisites">
62-
<GithubPrereqsJs />
63-
<GithubPrereqsCommon />
64-
</Card>
44+
<GitHubPrereqs lang="js" />
6545
<LlamaIndexJSSample />
6646
</Tab>
6747

6848
<Tab title="NextJS-Auth0" icon="https://mintlify-assets.b-cdn.net/auth0/nextjs-svgrepo-com.svg">
69-
<Card title="Prerequisites">
70-
<GithubPrereqsJs />
71-
<GithubPrereqsCommon />
72-
</Card>
49+
<GitHubPrereqs lang="js" />
7350
<NextJSAuth0Sample />
7451
</Tab>
7552
</Tabs>
@@ -79,18 +56,12 @@ import CreateCustomApiClient from "/snippets/common/create-custom-api-client.mdx
7956
<Tab title="Python" icon="python">
8057
<Tabs>
8158
<Tab title="LangGraph" icon="https://mintlify-assets.b-cdn.net/auth0/langchain.svg">
82-
<Card title="Prerequisites">
83-
<GithubPrereqsPython />
84-
<GithubPrereqsCommon />
85-
</Card>
59+
<GitHubPrereqs lang="python" />
8660
<LangGraphSample />
8761
</Tab>
8862

8963
<Tab title="LlamaIndex" icon="https://mintlify-assets.b-cdn.net/auth0/llamadex.svg">
90-
<Card title="Prerequisites">
91-
<GithubPrereqsPython />
92-
<GithubPrereqsCommon />
93-
</Card>
64+
<GitHubPrereqs lang="python" />
9465
<LlamaIndexSample />
9566
</Tab>
9667

auth4genai/how-tos/list-slack-channels.mdx

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,34 @@ import LangGraphSample from "/snippets/how-tos/slack/langgraph-python.mdx";
1111
import LlamaIndexSample from "/snippets/how-tos/slack/llamaindex-python.mdx";
1212
import GenKitSample from "/snippets/how-tos/slack/genkit.mdx";
1313
import LlamaIndexJSSample from "/snippets/how-tos/slack/llamaindex.mdx";
14-
import CreateCustomApiClient from "/snippets/common/create-custom-api-client.mdx";
1514

16-
import GithubPrereqsCommon from "/snippets/how-tos/github/github-prereqs-common.mdx";
17-
import GithubPrereqsJs from "/snippets/how-tos/github/github-prereqs-js.mdx";
18-
import GithubPrereqsPython from "/snippets/how-tos/github/github-prereqs-python.mdx";
15+
import { SlackPrereqs } from "/snippets/how-tos/slack/prereqs.jsx";
1916

2017
<Tabs>
2118
<Tab title="Javascript" icon="js">
2219
<Tabs>
2320
<Tab title="AI SDK" icon="https://mintlify-assets.b-cdn.net/auth0/vercel.svg">
24-
<Card title="Prerequisites">
25-
<GithubPrereqsJs />
26-
<GithubPrereqsCommon />
27-
</Card>
21+
<SlackPrereqs lang="js" />
2822
<AISDKSample />
2923
</Tab>
3024

3125
<Tab title="Cloudflare Agents" icon="https://mintlify-assets.b-cdn.net/auth0/cloudflare.svg">
32-
<Card title="Prerequisites">
33-
<GithubPrereqsJs />
34-
<GithubPrereqsCommon />
35-
</Card>
26+
<SlackPrereqs lang="js" />
3627
<CloudflareAgents />
3728
</Tab>
3829

3930
<Tab title="LangGraph" icon="https://mintlify-assets.b-cdn.net/auth0/langchain.svg">
40-
<Card title="Prerequisites">
41-
<GithubPrereqsJs />
42-
<GithubPrereqsCommon />
43-
<CreateCustomApiClient />
44-
</Card>
31+
<SlackPrereqs lang="js" createCustomApiClientStep={true} />
4532
<LangGraphJSSample />
4633
</Tab>
4734

4835
<Tab title="GenKit" icon="https://mintlify-assets.b-cdn.net/auth0/genkit.svg">
49-
<Card title="Prerequisites">
50-
<GithubPrereqsJs />
51-
<GithubPrereqsCommon />
52-
</Card>
36+
<SlackPrereqs lang="js" />
5337
<GenKitSample />
5438
</Tab>
5539

5640
<Tab title="LlamaIndex" icon="https://mintlify-assets.b-cdn.net/auth0/llamadex.svg">
57-
<Card title="Prerequisites">
58-
<GithubPrereqsJs />
59-
<GithubPrereqsCommon />
60-
</Card>
41+
<SlackPrereqs lang="js" />
6142
<LlamaIndexJSSample />
6243
</Tab>
6344
</Tabs>
@@ -67,18 +48,12 @@ import GithubPrereqsPython from "/snippets/how-tos/github/github-prereqs-python.
6748
<Tab title="Python" icon="python">
6849
<Tabs>
6950
<Tab title="LangGraph" icon="https://mintlify-assets.b-cdn.net/auth0/langchain.svg">
70-
<Card title="Prerequisites">
71-
<GithubPrereqsPython />
72-
<GithubPrereqsCommon />
73-
</Card>
51+
<SlackPrereqs lang="python" />
7452
<LangGraphSample />
7553
</Tab>
7654

7755
<Tab title="LlamaIndex" icon="https://mintlify-assets.b-cdn.net/auth0/llamadex.svg">
78-
<Card title="Prerequisites">
79-
<GithubPrereqsPython />
80-
<GithubPrereqsCommon />
81-
</Card>
56+
<SlackPrereqs lang="python" />
8257
<LlamaIndexSample />
8358
</Tab>
8459

auth4genai/snippets/common/create-custom-api-client.mdx

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

auth4genai/snippets/how-tos/github/github-prereqs-common.mdx

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

auth4genai/snippets/how-tos/github/github-prereqs-js.mdx

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

auth4genai/snippets/how-tos/github/github-prereqs-python.mdx

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

0 commit comments

Comments
 (0)