mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-01-17 22:28:32 +01:00
43 lines
862 B
JavaScript
43 lines
862 B
JavaScript
// https://astro.build/config
|
|
import sitemap from '@astrojs/sitemap';
|
|
import tailwind from '@astrojs/tailwind';
|
|
import compress from 'astro-compress';
|
|
import { defineConfig } from 'astro/config';
|
|
import rehypeExternalLinks from 'rehype-external-links';
|
|
import { serializeSitemap, shouldIndexPage } from './sitemap.mjs';
|
|
|
|
export default defineConfig({
|
|
site: 'https://roadmap.sh',
|
|
markdown: {
|
|
shikiConfig: {
|
|
theme: 'dracula',
|
|
},
|
|
rehypePlugins: [
|
|
[
|
|
rehypeExternalLinks,
|
|
{
|
|
target: '_blank',
|
|
},
|
|
],
|
|
],
|
|
},
|
|
build: {
|
|
format: 'file',
|
|
},
|
|
integrations: [
|
|
tailwind({
|
|
config: {
|
|
applyBaseStyles: false,
|
|
},
|
|
}),
|
|
sitemap({
|
|
filter: shouldIndexPage,
|
|
serialize: serializeSitemap,
|
|
}),
|
|
compress({
|
|
css: false,
|
|
js: false,
|
|
}),
|
|
],
|
|
});
|