Skip to content

Commit

Permalink
upgrade astro
Browse files Browse the repository at this point in the history
  • Loading branch information
reednel committed Jan 15, 2024
1 parent c88cc44 commit c2a0184
Show file tree
Hide file tree
Showing 8 changed files with 8,902 additions and 5,717 deletions.
54 changes: 16 additions & 38 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,27 @@ import config from "./src/config/config.json";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";

// https://astro.build/config
export default defineConfig({
site: config.site.base_url,
base: config.site.base_path,
trailingSlash: config.site.trailing_slash ? "always" : "never",
integrations: [
react(),
sitemap(),
tailwind({
config: {
applyBaseStyles: false,
},
}),
AutoImport({
imports: [
"@/shortcodes/Button",
"@/shortcodes/Accordion",
"@/shortcodes/Notice",
"@/shortcodes/Video",
"@/shortcodes/Youtube",
"@/shortcodes/Tabs",
"@/shortcodes/Tab",
],
}),
mdx(),
],
integrations: [react(), sitemap(), tailwind({
config: {
applyBaseStyles: false
}
}), AutoImport({
imports: ["@/shortcodes/Button", "@/shortcodes/Accordion", "@/shortcodes/Notice", "@/shortcodes/Video", "@/shortcodes/Youtube", "@/shortcodes/Tabs", "@/shortcodes/Tab"]
}), mdx()],
markdown: {
remarkPlugins: [
remarkToc,
[
remarkCollapse,
{
test: "Table of contents",
},
],
remarkMath,
],
rehypePlugins: [
[rehypeKatex, {}]
],
remarkPlugins: [remarkToc, [remarkCollapse, {
test: "Table of contents"
}], remarkMath],
rehypePlugins: [[rehypeKatex, {}]],
shikiConfig: {
theme: "one-dark-pro",
wrap: true,
wrap: true
},
extendDefaultPlugins: true,
},
});
extendDefaultPlugins: true
}
});
Loading

0 comments on commit c2a0184

Please sign in to comment.