Skip to content

Commit

Permalink
fix: 文档添加 adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Apr 10, 2024
1 parent 03bfd13 commit 831cf66
Show file tree
Hide file tree
Showing 4 changed files with 420 additions and 39 deletions.
64 changes: 34 additions & 30 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';

import vercel from "@astrojs/vercel/serverless";

// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Pic Impact',
defaultLocale: 'root',
locales: {
root: {
label: '简体中文',
lang: 'zh-CN',
},
},
social: {
github: 'https://github.com/besscroft/PicImpact',
},
sidebar: [
{
label: '从这里开始',
autogenerate: { directory: 'quick' },
},
{
label: '指南',
autogenerate: { directory: 'guides' },
},
{
label: '参考',
autogenerate: { directory: 'reference' },
},
],
}),
],
});
integrations: [starlight({
title: 'Pic Impact',
defaultLocale: 'root',
locales: {
root: {
label: '简体中文',
lang: 'zh-CN'
}
},
social: {
github: 'https://github.com/besscroft/PicImpact'
},
sidebar: [{
label: '从这里开始',
autogenerate: {
directory: 'quick'
}
}, {
label: '指南',
autogenerate: {
directory: 'guides'
}
}, {
label: '参考',
autogenerate: {
directory: 'reference'
}
}]
})],
output: "server",
adapter: vercel()
});
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/starlight": "^0.21.5",
"@astrojs/vercel": "^7.5.2",
"astro": "^4.3.5",
"sharp": "^0.32.5",
"@astrojs/check": "^0.5.10",
"typescript": "^5.4.4"
}
}
Loading

0 comments on commit 831cf66

Please sign in to comment.