Skip to content

Commit

Permalink
feat: upgrade to astro 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-abc committed Jan 24, 2024
1 parent 75f2793 commit 059f26c
Show file tree
Hide file tree
Showing 7 changed files with 1,145 additions and 893 deletions.
2 changes: 1 addition & 1 deletion packages/site/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export default defineConfig({
// pages: './src/pages', // Path to Astro components, pages, and data
outDir: './build', // When running `astro build`, path to final static output
// public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that don’t need processing.
site: 'https://felte.dev', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
site: 'https://felte.dev/', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
integrations: [svelte(), sitemap()],
});
10 changes: 5 additions & 5 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/markdown-component": "^1.0.1",
"@astrojs/sitemap": "^1.0.0",
"@astrojs/svelte": "^1.0.1",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/svelte": "^3.0.0",
"@babel/core": "^7.17.7",
"@types/flexsearch": "0.7.3",
"astro": "1.4.7",
"astro": "^3.0.0",
"autoprefixer": "^10.4.4",
"cssnano": "^5.1.4",
"front-matter": "^4.0.2",
Expand All @@ -29,13 +28,14 @@
"@felte/reporter-tippy": "latest",
"@felte/validator-yup": "latest",
"@shoelace-style/shoelace": "^2.4.0",
"astro-remote": "^0.2.4",
"felte": "latest",
"flexsearch": "0.7.21",
"focus-visible": "^5.2.0",
"lit": "^2.0.2",
"prism-svelte": "^0.5.0",
"prismjs": "^1.27.0",
"svelte-markdown": "^0.2.2",
"svelte-markdown": "^0.4.1",
"tippy.js": "^6.3.7",
"yup": "^1.2.0"
}
Expand Down
1 change: 1 addition & 0 deletions packages/site/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
2 changes: 1 addition & 1 deletion packages/site/src/pages/docs/[framework]/[section].astro
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function getStaticPaths() {
}
}));
}));
return params;
return params.flat();
};
const { section, framework } = Astro.params;
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/pages/docs/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Markdown from '@astrojs/markdown-component';
import { Markdown } from 'astro-remote';
import BaseLayout from 'layouts:BaseLayout.astro';
---

Expand Down
5 changes: 5 additions & 0 deletions packages/site/svelte.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { vitePreprocess } from '@astrojs/svelte';

export default {
preprocess: vitePreprocess(),
};
Loading

0 comments on commit 059f26c

Please sign in to comment.