Skip to content

Commit 958f9c2

Browse files
committed
Fixing generate
1 parent 23ee6bc commit 958f9c2

31 files changed

+65
-33
lines changed

www/astro.config.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import starlight from "@astrojs/starlight"
33
import { defineConfig } from "astro/config"
44
import { rehypeHeadingIds } from "@astrojs/markdown-remark"
55
import rehypeAutolinkHeadings from "rehype-autolink-headings"
6+
import config from "./config"
67

7-
const github = "https://github.com/toolbeam/openauth"
8-
const discord = "https://sst.dev/discord"
98
const url = "https://openauth.js.org"
109

1110
// https://astro.build/config
@@ -67,12 +66,12 @@ export default defineConfig({
6766
replacesTitle: true,
6867
},
6968
social: {
70-
github,
71-
discord,
69+
github: config.github,
70+
discord: config.discord,
7271
},
7372
lastUpdated: true,
7473
editLink: {
75-
baseUrl: `${github}/edit/master/www/`,
74+
baseUrl: `${config.github}/edit/master/www/`,
7675
},
7776
components: {
7877
Hero: "./src/components/Hero.astro",

www/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
github: "https://github.com/toolbeam/openauth",
3+
discord: "https://sst.dev/discord",
4+
};

www/generate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ function renderHeader(input: {
319319
`---`,
320320
"",
321321
"import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'",
322+
"import { Tabs, TabItem } from '@astrojs/starlight/components'",
322323
"",
323324
]
324325
}

www/src/content/docs/docs/client.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: Client
3-
editUrl: https://github.com/openauthjs/openauth/blob/master/packages/openauth/src/client.ts
3+
editUrl: https://github.com/toolbeam/openauth/blob/master/packages/openauth/src/client.ts
44
description: Reference doc for the OpenAuth client.
55
---
66

77
import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'
8+
import { Tabs, TabItem } from '@astrojs/starlight/components'
89

910
<div class="tsdoc">
1011
<Section type="about">

www/src/content/docs/docs/issuer.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: Issuer
3-
editUrl: https://github.com/openauthjs/openauth/blob/master/packages/openauth/src/issuer.ts
3+
editUrl: https://github.com/toolbeam/openauth/blob/master/packages/openauth/src/issuer.ts
44
description: Reference doc for the OpenAuth server.
55
---
66

77
import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'
8+
import { Tabs, TabItem } from '@astrojs/starlight/components'
89

910
<div class="tsdoc">
1011
<Section type="about">

www/src/content/docs/docs/provider/apple.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: AppleProvider
3-
editUrl: https://github.com/openauthjs/openauth/blob/master/packages/openauth/src/provider/apple.ts
3+
editUrl: https://github.com/toolbeam/openauth/blob/master/packages/openauth/src/provider/apple.ts
44
description: Reference doc for the `AppleProvider`.
55
---
66

77
import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'
8+
import { Tabs, TabItem } from '@astrojs/starlight/components'
89

910
<div class="tsdoc">
1011
<Section type="about">

www/src/content/docs/docs/provider/code.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: CodeProvider
3-
editUrl: https://github.com/openauthjs/openauth/blob/master/packages/openauth/src/provider/code.ts
3+
editUrl: https://github.com/toolbeam/openauth/blob/master/packages/openauth/src/provider/code.ts
44
description: Reference doc for the `CodeProvider`.
55
---
66

77
import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'
8+
import { Tabs, TabItem } from '@astrojs/starlight/components'
89

910
<div class="tsdoc">
1011
<Section type="about">

www/src/content/docs/docs/provider/cognito.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: CognitoProvider
3-
editUrl: https://github.com/openauthjs/openauth/blob/master/packages/openauth/src/provider/cognito.ts
3+
editUrl: https://github.com/toolbeam/openauth/blob/master/packages/openauth/src/provider/cognito.ts
44
description: Reference doc for the `CognitoProvider`.
55
---
66

77
import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'
8+
import { Tabs, TabItem } from '@astrojs/starlight/components'
89

910
<div class="tsdoc">
1011
<Section type="about">

www/src/content/docs/docs/provider/discord.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: DiscordProvider
3-
editUrl: https://github.com/openauthjs/openauth/blob/master/packages/openauth/src/provider/discord.ts
3+
editUrl: https://github.com/toolbeam/openauth/blob/master/packages/openauth/src/provider/discord.ts
44
description: Reference doc for the `DiscordProvider`.
55
---
66

77
import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'
8+
import { Tabs, TabItem } from '@astrojs/starlight/components'
89

910
<div class="tsdoc">
1011
<Section type="about">

www/src/content/docs/docs/provider/facebook.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: FacebookProvider
3-
editUrl: https://github.com/openauthjs/openauth/blob/master/packages/openauth/src/provider/facebook.ts
3+
editUrl: https://github.com/toolbeam/openauth/blob/master/packages/openauth/src/provider/facebook.ts
44
description: Reference doc for the `FacebookProvider`.
55
---
66

77
import { Segment, Section, NestedTitle, InlineSection } from 'toolbeam-docs-theme/components'
8+
import { Tabs, TabItem } from '@astrojs/starlight/components'
89

910
<div class="tsdoc">
1011
<Section type="about">

0 commit comments

Comments
 (0)