Skip to content

Commit a30b9bb

Browse files
authored
Merge pull request #220 from scroll-tech/upgrade-astro-version-v4
Upgrade astro version v4
2 parents 4fbeeea + dc1dc92 commit a30b9bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+32849
-15140
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.15.0
1+
v18.14.1

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 16.16.0
1+
nodejs 18.14.1

astro.config.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import svgr from "vite-plugin-svgr"
55
import astroI18next from "astro-i18next"
66
import { astroCallouts, asideAutoImport } from "./integrations/astro-callouts"
77
import { solidityRemixCode, codeSampleAutoImport } from "./integrations/solidity-remix"
8-
import { youtubeEmbed } from "./integrations/youtube-embed"
98
import mdx from "@astrojs/mdx"
109
import rehypeSlug from "rehype-slug"
1110
import rehypeAutolinkHeadings from "rehype-autolink-headings"
1211
import rehypeKatex from "rehype-katex"
1312
import rehypeMermaid from "rehype-mermaidjs"
1413
import remarkGfm from "remark-gfm"
1514
import remarkMath from "remark-math"
16-
import image from "@astrojs/image"
1715
import AutoImport from "astro-auto-import"
1816

1917
import sitemap from "@astrojs/sitemap"
@@ -23,6 +21,7 @@ import tailwind from "@astrojs/tailwind"
2321
// https://astro.build/config
2422
export default defineConfig({
2523
site: "https://docs.scroll.io",
24+
scopedStyleStrategy: "where",
2625
legacy: {
2726
astroFlavoredMarkdown: true,
2827
},
@@ -39,14 +38,12 @@ export default defineConfig({
3938
}),
4039
astroCallouts(),
4140
solidityRemixCode(),
42-
youtubeEmbed(),
4341
mdx(),
44-
image(),
4542
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,
44+
nesting: true,
4945
}),
46+
5047
astroI18next(),
5148
],
5249
vite: {
@@ -61,7 +58,14 @@ export default defineConfig({
6158
[
6259
rehypeAutolinkHeadings,
6360
{
64-
behavior: "append",
61+
behavior: "wrap",
62+
properties: {},
63+
content: {
64+
type: "element",
65+
tagName: "span",
66+
properties: { className: ["icon", "icon-link"] },
67+
children: [],
68+
},
6569
},
6670
],
6771
[

integrations/youtube-embed.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)