Skip to content

Commit

Permalink
Upgrade to Astro v3
Browse files Browse the repository at this point in the history
  • Loading branch information
zzq0826 committed Mar 21, 2024
1 parent bc4dfa4 commit 019d4c5
Show file tree
Hide file tree
Showing 16 changed files with 3,900 additions and 2,257 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.15.0
v18.14.1
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 16.16.0
nodejs 18.14.1
19 changes: 11 additions & 8 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import svgr from "vite-plugin-svgr"
import astroI18next from "astro-i18next"
import { astroCallouts, asideAutoImport } from "./integrations/astro-callouts"
import { solidityRemixCode, codeSampleAutoImport } from "./integrations/solidity-remix"
import { youtubeEmbed } from "./integrations/youtube-embed"
import mdx from "@astrojs/mdx"
import rehypeSlug from "rehype-slug"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeKatex from "rehype-katex"
import rehypeMermaid from "rehype-mermaidjs"
import remarkGfm from "remark-gfm"
import remarkMath from "remark-math"
import image from "@astrojs/image"
import AutoImport from "astro-auto-import"

import sitemap from "@astrojs/sitemap"
Expand All @@ -23,6 +21,7 @@ import tailwind from "@astrojs/tailwind"
// https://astro.build/config
export default defineConfig({
site: "https://docs.scroll.io",
scopedStyleStrategy: "where",
legacy: {
astroFlavoredMarkdown: true,
},
Expand All @@ -39,14 +38,11 @@ export default defineConfig({
}),
astroCallouts(),
solidityRemixCode(),
youtubeEmbed(),
mdx(),
image(),
tailwind({
// Example: Disable injecting a basic `base.css` import on every page.
// Useful if you need to define and/or import your own custom `base.css`.
config: { applyBaseStyles: false },
applyBaseStyles: false,
}),

astroI18next(),
],
vite: {
Expand All @@ -61,7 +57,14 @@ export default defineConfig({
[
rehypeAutolinkHeadings,
{
behavior: "append",
behavior: "wrap",
properties: {},
content: {
type: "element",
tagName: "span",
properties: { className: ["icon", "icon-link"] },
children: [],
},
},
],
[
Expand Down
25 changes: 0 additions & 25 deletions integrations/youtube-embed.ts

This file was deleted.

Loading

0 comments on commit 019d4c5

Please sign in to comment.