-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from saasquatch/sandpack
Update quickstart docs with live code examples
- Loading branch information
Showing
21 changed files
with
1,179 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,72 @@ | ||
import starlight from '@astrojs/starlight'; | ||
import { defineConfig } from 'astro/config'; | ||
import { generateTypeDoc } from 'starlight-typedoc'; | ||
import react from "@astrojs/react"; | ||
import starlight from "@astrojs/starlight"; | ||
import { defineConfig } from "astro/config"; | ||
import { generateTypeDoc } from "starlight-typedoc"; | ||
|
||
const apiSidebarGroup = await generateTypeDoc({ | ||
output: "reference/vanilla", | ||
sidebar: { | ||
label: "Vanilla Reference", | ||
collapsed: true | ||
}, | ||
output: "reference/vanilla", | ||
sidebar: { | ||
label: "Vanilla Reference", | ||
collapsed: true, | ||
}, | ||
|
||
entryPoints: ['../src/vanilla/index.ts'], | ||
tsconfig: '../src/vanilla/tsconfig.docs.json', | ||
}) | ||
entryPoints: ["../src/vanilla/index.ts"], | ||
tsconfig: "../src/vanilla/tsconfig.docs.json", | ||
}); | ||
|
||
const reactSidebar = await generateTypeDoc({ | ||
output: "reference/react", | ||
sidebar: { | ||
label: "React Reference", | ||
collapsed: true | ||
}, | ||
entryPoints: ['../src/react/index.ts'], | ||
tsconfig: '../src/react/tsconfig.docs.json', | ||
}) | ||
output: "reference/react", | ||
sidebar: { | ||
label: "React Reference", | ||
collapsed: true, | ||
}, | ||
entryPoints: ["../src/react/index.ts"], | ||
tsconfig: "../src/react/tsconfig.docs.json", | ||
}); | ||
const vueSidebar = await generateTypeDoc({ | ||
output: "reference/vue", | ||
sidebar: { | ||
label: "Vue Reference", | ||
collapsed: true | ||
}, | ||
entryPoints: ['../src/vue/index.ts'], | ||
tsconfig: '../src/vue/tsconfig.docs.json', | ||
}) | ||
|
||
output: "reference/vue", | ||
sidebar: { | ||
label: "Vue Reference", | ||
collapsed: true, | ||
}, | ||
entryPoints: ["../src/vue/index.ts"], | ||
tsconfig: "../src/vue/tsconfig.docs.json", | ||
}); | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [ | ||
starlight({ | ||
title: 'Bunshi', | ||
favicon: "./public/favicon.ico", | ||
logo: { | ||
src: "./src/assets/bunshi.svg", | ||
}, | ||
customCss: [ | ||
// Relative path to your custom CSS file | ||
'./src/styles/custom.css', | ||
], | ||
social: { | ||
github: 'https://github.com/saasquatch/bunshi', | ||
}, | ||
sidebar: [ | ||
{ | ||
label: 'Concepts', | ||
autogenerate: { directory: 'concepts' }, | ||
}, | ||
{ | ||
label: 'Integrations', | ||
autogenerate: { directory: 'integrations' }, | ||
}, | ||
{ | ||
label: 'Advanced', | ||
autogenerate: { directory: 'advanced' }, | ||
}, | ||
reactSidebar, | ||
vueSidebar, | ||
apiSidebarGroup, | ||
], | ||
}), | ||
], | ||
integrations: [ | ||
react(), | ||
starlight({ | ||
title: "Bunshi", | ||
favicon: "./public/favicon.ico", | ||
logo: { | ||
src: "./src/assets/bunshi.svg", | ||
}, | ||
customCss: [ | ||
// Relative path to your custom CSS file | ||
"./src/styles/custom.css", | ||
], | ||
social: { | ||
github: "https://github.com/saasquatch/bunshi", | ||
}, | ||
sidebar: [ | ||
{ | ||
label: "Concepts", | ||
autogenerate: { directory: "concepts" }, | ||
}, | ||
{ | ||
label: "Integrations", | ||
autogenerate: { directory: "integrations" }, | ||
}, | ||
{ | ||
label: "Advanced", | ||
autogenerate: { directory: "advanced" }, | ||
}, | ||
reactSidebar, | ||
vueSidebar, | ||
apiSidebarGroup, | ||
], | ||
}), | ||
], | ||
}); |
Oops, something went wrong.