Skip to content

Upgrade astro version v4 #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
20 changes: 12 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,12 @@ 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,
nesting: true,
}),

astroI18next(),
],
vite: {
Expand All @@ -61,7 +58,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