aboutsummaryrefslogtreecommitdiff
path: root/docs/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-11-11 12:09:48 -0500
committerGravatar GitHub <noreply@github.com> 2021-11-11 12:09:48 -0500
commite0c3318c09c6d8158e51d09e88eae32bb26f7bb7 (patch)
tree3e61b44ba0987a728fca047d1182d7a53a42b1a7 /docs/astro.config.mjs
parent7bb768ddab3d7a4d98682f0a74653e3e8c40602c (diff)
downloadastro-e0c3318c09c6d8158e51d09e88eae32bb26f7bb7.tar.gz
astro-e0c3318c09c6d8158e51d09e88eae32bb26f7bb7.tar.zst
astro-e0c3318c09c6d8158e51d09e88eae32bb26f7bb7.zip
Update Astro docs to use v0.21 (#1738)
* update docs site to leverage astro v0.21 * fix resolutions * fix docsearch import * Resolve `@docsearch/react` is a cross-execution-context-friendly way * chore: update astro version * fix: remove line highlighting syntax * fix: braces inside of attr string * Match current astro version * Trim leading newline in MainLayout.astro template * Move card grid styles into Layout Co-authored-by: Nate Moore <nate@skypack.dev>
Diffstat (limited to 'docs/astro.config.mjs')
-rw-r--r--docs/astro.config.mjs13
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs
index d68ce262b..af4fed122 100644
--- a/docs/astro.config.mjs
+++ b/docs/astro.config.mjs
@@ -1,4 +1,5 @@
-export default {
+// @ts-check
+export default /** @type {import('astro').AstroUserConfig} */ ({
buildOptions: {
site: 'https://docs.astro.build/',
},
@@ -8,4 +9,12 @@ export default {
// Needed for Algolia search component
'@astrojs/renderer-react',
],
-};
+ vite: {
+ resolve: {
+ alias: {
+ '~': '/src',
+ 'components': '/src/components',
+ }
+ }
+ }
+})