Skip to content

Commit

Permalink
Add expressiveCode
Browse files Browse the repository at this point in the history
  • Loading branch information
zzq0826 committed Jul 3, 2024
1 parent 94cfcdd commit 57b2aee
Show file tree
Hide file tree
Showing 3 changed files with 19,429 additions and 6 deletions.
18 changes: 12 additions & 6 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import rehypeMermaid from "rehype-mermaidjs"
import remarkGfm from "remark-gfm"
import remarkMath from "remark-math"
import AutoImport from "astro-auto-import"

import sitemap from "@astrojs/sitemap"

import tailwind from "@astrojs/tailwind"

import expressiveCode from "astro-expressive-code"

// https://astro.build/config
export default defineConfig({
site: "https://docs.scroll.io",
Expand All @@ -32,18 +32,17 @@ export default defineConfig({
preact({
compat: true,
}),

sitemap({
changefreq: "daily",
}),
astroCallouts(),
solidityRemixCode(),
expressiveCode(),
mdx(),
tailwind({
applyBaseStyles: false,
nesting: true,
}),

astroI18next(),
],
vite: {
Expand All @@ -54,7 +53,12 @@ export default defineConfig({
remarkPlugins: [remarkMath, remarkGfm],
rehypePlugins: [
rehypeSlug,
[rehypeMermaid, { strategy: "img-png" }],
[
rehypeMermaid,
{
strategy: "img-png",
},
],
[
rehypeAutolinkHeadings,
{
Expand All @@ -63,7 +67,9 @@ export default defineConfig({
content: {
type: "element",
tagName: "span",
properties: { className: ["icon", "icon-link"] },
properties: {
className: ["icon", "icon-link"],
},
children: [],
},
},
Expand Down
Loading

0 comments on commit 57b2aee

Please sign in to comment.