Skip to content

Commit

Permalink
Merge pull request #146 from scroll-tech/develop
Browse files Browse the repository at this point in the history
Merge dev into prod
  • Loading branch information
dghelm authored Jan 17, 2024
2 parents ef9e4fe + a36b43a commit a34b39b
Show file tree
Hide file tree
Showing 111 changed files with 2,156 additions and 669 deletions.
2 changes: 1 addition & 1 deletion astro-i18next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
export default {
defaultLocale: "en",
showDefaultLocale: true,
locales: ["en", "zh", "es"],
locales: ["en", "es"],
load: ["server", "client"],
}
5 changes: 5 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "astro/config"
import preact from "@astrojs/preact"
import react from "@astrojs/react"
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"
Expand Down Expand Up @@ -32,6 +33,7 @@ export default defineConfig({
preact({
compat: true,
}),

sitemap({
changefreq: "daily",
}),
Expand All @@ -47,6 +49,9 @@ export default defineConfig({
}),
astroI18next(),
],
vite: {
plugins: [svgr()],
},
markdown: {
drafts: true,
remarkPlugins: [remarkMath, remarkGfm],
Expand Down
2 changes: 1 addition & 1 deletion integrations/utils/makeComponentNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function makeComponentNode(
type: "mdxJsxFlowElement",
name,
attributes: Object.entries(attributes)
// Filter out non-truthy attributes to avoid empty attrs being parsed as `true`.
// Filter out non-truthy attributes to avoid empty attributes being parsed as `true`.
.filter(([_k, v]) => v !== false && Boolean(v))
.map(([name, value]) => ({
type: "mdxJsxAttribute",
Expand Down
Loading

0 comments on commit a34b39b

Please sign in to comment.