Skip to content

Commit 213805a

Browse files
authored
Merge pull request #302 from scroll-tech/develop
Dev Tooling page
2 parents 4071770 + c7f3925 commit 213805a

File tree

76 files changed

+1874
-393
lines changed

Some content is hidden

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

76 files changed

+1874
-393
lines changed

README.md

Lines changed: 18 additions & 0 deletions
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.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import sitemap from "@astrojs/sitemap"
1818

1919
import tailwind from "@astrojs/tailwind"
2020

21+
import expressiveCode from "astro-expressive-code"
22+
2123
// https://astro.build/config
2224
export default defineConfig({
2325
site: "https://docs.scroll.io",
@@ -38,6 +40,21 @@ export default defineConfig({
3840
}),
3941
astroCallouts(),
4042
solidityRemixCode(),
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+
}),
4158
mdx(),
4259
tailwind({
4360
applyBaseStyles: false,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@astrojs/tailwind": "^5.1.0",
2929
"@nanostores/preact": "^0.3.1",
3030
"astro-auto-import": "^0.4.2",
31+
"astro-expressive-code": "^0.35.3",
3132
"astro-i18next": "^1.0.0-beta.21",
3233
"clipboard": "^2.0.11",
3334
"ethereum-rpc-table": "^0.0.1",
@@ -42,6 +43,7 @@
4243
"query-string": "^7.1.1",
4344
"react-instantsearch-hooks-web": "^6.38.1",
4445
"react-mailchimp-subscribe": "^2.1.3",
46+
"rehype-format": "^5.0.0",
4547
"rehype-katex": "^7.0.0",
4648
"rehype-mermaidjs": "^1.0.1",
4749
"remark-gfm": "^4.0.0",

public/assets/github-white-800.svg

Lines changed: 3 additions & 0 deletions
Loading

public/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"erc1155TokenBridge": "ERC1155 Token Bridge",
9090
"theScrollMessenger": "The Scroll Messenger",
9191
"transactionFeesOnScroll": "Transaction Fees on Scroll",
92+
"toolingDeployedOnScroll": "Tooling deployed On Scroll",
9293
"l2Fee": "L2 Fee",
9394
"l1Fee": "L1 Fee",
9495
"gasOracle": "Gas Oracle",

public/scroll-docs-white-800.svg

Lines changed: 25 additions & 0 deletions
Loading

src/assets/svgs/header/sun.svg

Lines changed: 1 addition & 1 deletion
Loading

src/assets/svgs/home/Note.svg

Lines changed: 14 additions & 0 deletions
Loading

src/components/Aside.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const icons = {
2121

2222
<aside class={`content ${type}`} aria-label={title}>
2323
<div class="icon">
24-
<span class="inline-block w-[1.5rem] h-[1.5rem] text-black dark:text-white">
24+
<span class="inline-block w-[1.5rem] h-[1.5rem] text-black dark:text-white-800">
2525
<Fragment set:html={icons[type]} />
2626
</span>
2727
</div>

src/components/Footer/Subscribe/EmailInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ const EmailInput = (props) => {
3232
onKeyDown={handleEnter}
3333
className={clsx(
3434
styles.inputBase,
35-
"dark:text-white",
35+
"dark:text-white-800",
3636
"dark:bg-black",
37-
"dark:border-white",
37+
"dark:border-white-800",
3838
"placeholder:text-[#dcdcdc]",
3939
"placeholder:dark:text-[#FFF8F366]",
4040
"focus:outline-none"

0 commit comments

Comments
 (0)