@@ -5,15 +5,13 @@ import svgr from "vite-plugin-svgr"
5
5
import astroI18next from "astro-i18next"
6
6
import { astroCallouts , asideAutoImport } from "./integrations/astro-callouts"
7
7
import { solidityRemixCode , codeSampleAutoImport } from "./integrations/solidity-remix"
8
- import { youtubeEmbed } from "./integrations/youtube-embed"
9
8
import mdx from "@astrojs/mdx"
10
9
import rehypeSlug from "rehype-slug"
11
10
import rehypeAutolinkHeadings from "rehype-autolink-headings"
12
11
import rehypeKatex from "rehype-katex"
13
12
import rehypeMermaid from "rehype-mermaidjs"
14
13
import remarkGfm from "remark-gfm"
15
14
import remarkMath from "remark-math"
16
- import image from "@astrojs/image"
17
15
import AutoImport from "astro-auto-import"
18
16
19
17
import sitemap from "@astrojs/sitemap"
@@ -23,6 +21,7 @@ import tailwind from "@astrojs/tailwind"
23
21
// https://astro.build/config
24
22
export default defineConfig ( {
25
23
site : "https://docs.scroll.io" ,
24
+ scopedStyleStrategy : "where" ,
26
25
legacy : {
27
26
astroFlavoredMarkdown : true ,
28
27
} ,
@@ -39,14 +38,11 @@ export default defineConfig({
39
38
} ) ,
40
39
astroCallouts ( ) ,
41
40
solidityRemixCode ( ) ,
42
- youtubeEmbed ( ) ,
43
41
mdx ( ) ,
44
- image ( ) ,
45
42
tailwind ( {
46
- // Example: Disable injecting a basic `base.css` import on every page.
47
- // Useful if you need to define and/or import your own custom `base.css`.
48
- config : { applyBaseStyles : false } ,
43
+ applyBaseStyles : false ,
49
44
} ) ,
45
+
50
46
astroI18next ( ) ,
51
47
] ,
52
48
vite : {
@@ -61,7 +57,14 @@ export default defineConfig({
61
57
[
62
58
rehypeAutolinkHeadings ,
63
59
{
64
- behavior : "append" ,
60
+ behavior : "wrap" ,
61
+ properties : { } ,
62
+ content : {
63
+ type : "element" ,
64
+ tagName : "span" ,
65
+ properties : { className : [ "icon" , "icon-link" ] } ,
66
+ children : [ ] ,
67
+ } ,
65
68
} ,
66
69
] ,
67
70
[
0 commit comments