Skip to content

Commit 091f5d5

Browse files
committed
chore: fix conflicts
2 parents 1ddf55d + 9243fe6 commit 091f5d5

File tree

223 files changed

+8879
-34550
lines changed

Some content is hidden

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

223 files changed

+8879
-34550
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.15.0
1+
v20.13.1

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 16.16.0
1+
nodejs 18.14.1

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ npm install && npm run dev
1616
- All articles are markdown and stored in `/src/content/docs/`.
1717
- Navigation is JSON in `/src/config/sidebar.ts`
1818

19+
## Tooling on Scroll
20+
21+
If you'd like to add an entry to our [tooling list](http://docs.scroll.xyz/en/developers/scroll-contracts), create a PR to add a new `mdx` file in the [tooling content folder](src/content/tools), using the following template. You can also refer to other existing entries for reference.
22+
23+
```
24+
---
25+
name: "Safe"
26+
category: ["Identity", "Wallet"]
27+
excerpt: "Safe allows you to create smart wallet on chain."
28+
logo: { src: "https://app.safe.global/images/safe-logo-green.png", alt: "Safe Logo" }
29+
website: "https://app.safe.global"
30+
network: ["Mainnet", "Testnet]
31+
noAdditionalInfo: false
32+
---
33+
34+
Add additional info here about how to access this tool on Scroll (ex. contract addresses, tutorials, API URLs)
35+
```
36+
1937
## Credits
2038

2139
- Special thanks to the Chainlink team whose documentation we forked. Their repo is available [here](https://github.com/smartcontractkit/documentation) and viewable at [https://docs.chain.link/](https://docs.chain.link/).

astro-i18next.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
export default {
33
defaultLocale: "en",
44
showDefaultLocale: true,
5-
locales: ["en", "es", "zh"],
5+
locales: ["en", "es", "zh", "tr"],
66
load: ["server", "client"],
77
}

astro.config.ts

+29-8
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,25 @@ 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"
2018

2119
import tailwind from "@astrojs/tailwind"
2220

21+
import expressiveCode from "astro-expressive-code"
22+
2323
// https://astro.build/config
2424
export default defineConfig({
2525
site: "https://docs.scroll.io",
26+
scopedStyleStrategy: "where",
2627
legacy: {
2728
astroFlavoredMarkdown: true,
2829
},
@@ -39,14 +40,27 @@ export default defineConfig({
3940
}),
4041
astroCallouts(),
4142
solidityRemixCode(),
42-
youtubeEmbed(),
43+
expressiveCode({
44+
themes: ["dark-plus"],
45+
defaultProps: {
46+
frame: "code",
47+
},
48+
styleOverrides: {
49+
borderRadius: "27px",
50+
borderColor: "transparent",
51+
frames: {
52+
shadowColor: "transparent",
53+
editorTabBorderRadius: "0.5rem",
54+
editorBackground: "#2b2b2b",
55+
},
56+
},
57+
}),
4358
mdx(),
44-
image(),
4559
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 },
60+
applyBaseStyles: false,
61+
nesting: true,
4962
}),
63+
5064
astroI18next(),
5165
],
5266
vite: {
@@ -61,7 +75,14 @@ export default defineConfig({
6175
[
6276
rehypeAutolinkHeadings,
6377
{
64-
behavior: "append",
78+
behavior: "wrap",
79+
properties: {},
80+
content: {
81+
type: "element",
82+
tagName: "span",
83+
properties: { className: ["icon", "icon-link"] },
84+
children: [],
85+
},
6586
},
6687
],
6788
[

integrations/youtube-embed.ts

-25
This file was deleted.

0 commit comments

Comments
 (0)