Skip to content

Commit 500c168

Browse files
committed
first wave of changes
1 parent 6e07323 commit 500c168

20 files changed

+535
-309
lines changed

CONTRIBUTING.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# Contributing to the Scroll Documentation
22

3-
PRs are welcome! We try to keep a clean commit history, so we'll follow a standard process initially created by the Chainlink team whose documentation we forked:
3+
As we build out the initial scope of the documentation, we intend to be selective about PRs, especially in our English language documentation. If you're interested in making a code or content contribution, please start by creating an issue and discussing the idea with a member of our team.
44

5-
- Create a PR
5+
If you want information about contributing a translation, please see [TRANSLATION.md](./TRANSLATION.md).
6+
7+
We try to keep a clean commit history, so we'll follow a standard process initially created by the Chainlink team whose documentation we forked:
8+
9+
- Create a new issue
10+
- Comment on the issue if you'd like to be assigned to it
11+
- Fork the Repo & Create a PR
612
- If your PR contains multiple commits, we'll ask you to squash them
7-
- If your PR has conflicts with `main`, we'll ask you to rebase it
13+
- If your PR has conflicts with `develop`, we'll ask you to rebase it
814
- Someone will review your PR
915
- Your PR will be merged, amended, closed, or you'll be asked for changes
1016

1117
## Standards
1218

1319
- Commit messages
14-
- Start with a present tense verb
20+
- Start with a present-tense verb
1521
- Keep your commit headline short but sufficient to understand the scope and focus of the change.
1622
- Changes are often formatted like `add doc X`, `fix page Y`, `improve docs for Z`.
17-
- Example: "`update contract addresses for BSC`".
23+
- Example: "`update contract addresses for USDC on Scroll Sepolia`".
1824
- If you touch any infrastructure, make sure it builds with `yarn build`
1925
- Trust the autoformatter (prettier)
2026
- Make sure images are optimized and compressed
@@ -29,7 +35,7 @@ git rebase origin/main
2935
git push -f
3036
```
3137

32-
It's okay to force push over your own PR branch. In fact, that's what we want so that the commits are clean.
38+
It's okay to force push over your own PR branch. That's what we want so that the commits are clean.
3339

3440
## How to squash a PR
3541

TRANSLATION.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Translation Initiative
2+
3+
_Our translation initiative hopes to translate Scroll documentation into different languages and make the website accessible to people worldwide._
4+
5+
Our current documentation is only available in English, but with community contributions, we want to support many language communities. Since this is a new initiative and we want to maintain high assurances about the information in our documentation, **we're only accepting contributions in Mandarin and Spanish**. Once we're comfortable with the process and can ensure a good experience for community translators, we'll seek contributions in additional languages.
6+
7+
### Want to get involved as a translator?
8+
9+
Create an issue describing which article you wish to translate. Then get started! If you need help or have any questions, join the [Scroll Discord](https://discord.gg/scroll). Once your translation is submitted, we'll ask a member of our team to do a review.
10+
11+
### Standards and Policies
12+
13+
For now, we will defer to Ethereum.org's excellent [Translation Style Guide](https://ethereum.org/en/contributing/translation-program/translators-guide/). We do not use a translation platform, but please assume all other guidance applies here.
14+
15+
## Starting a translation
16+
17+
1. Fork this repository
18+
1. Create an issue named using the format "Translation: _[English Article Name]_ (_[lang]_)" -- for example, "Translation: User Guide Faucet (zh)"
19+
1. Find the article you wish to translate in `src/content/docs/en/` and copy it to a matching folder in `src/content/docs/[lang]/`. All files should maintain the same file name and folder structure as the English version of the site.
20+
1. To translate UI elements or article names, modify the appropriate entry in `public/locales/[lang]/translation.json`. If you're unsure what to do here, suggest any additional changes to the site in your PR.
21+
1. Make a PR with the title following the template above. Be sure to mention the original issue in your description.
22+
1. A team member will review, recommend changes and work with you to get the final version added to the code base.
23+
24+
### Not familiar with Git?
25+
26+
If you don't want to worry about all this Git stuff, contact a team member or community moderator on the [Scroll Discord](https://discord.gg/scroll). We'd be happy to point you at the original file to translate and suggest an online text editor (like [HackMD](https://hackmd.io/)) for sharing your results. We'll take it from there.

public/locales/en/translation.json

+15-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"gettingStarted": {
4747
"gettingStarted": "Getting Started",
4848
"overview": "Overview",
49-
"alphaTestnet": "Alpha Testnet",
49+
"scrollSepoliaTestnet": "Scroll Seplolia Testnet",
5050
"userGuide": "User Guide",
5151
"setup": "Setup",
5252
"faucet": "Faucet",
@@ -56,6 +56,8 @@
5656
"rollupExplorer": "Rollup Explorer",
5757
"alphaBlockExplorer": "Alpha Block Explorer",
5858
"goerliBlockExplorer": "Goerli Block Explorer",
59+
"scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer",
60+
"sepoliaBlockExplorer": "Sepolia Explorer",
5961
"community": "Community",
6062
"discord": "Discord",
6163
"communityForum": "Community Forum"
@@ -73,18 +75,23 @@
7375
"resources": "Resources",
7476
"rollupExplorer": "Rollup Explorer",
7577
"alphaBlockExplorer": "Alpha Block Explorer",
76-
"goerliBlockExplorer": "Goerli Block Explorer"
78+
"goerliBlockExplorer": "Goerli Block Explorer",
79+
"scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer",
80+
"sepoliaBlockExplorer": "Sepolia Explorer"
7781
},
7882
"technology": {
79-
"architecture": "Architecture",
80-
"scrollArchitecture": "Scroll Architecture",
83+
"introduction": "Introduction",
8184
"principles": "Principles",
85+
"scrollArchitecture": "Scroll Architecture",
86+
"scrollProtocol": "Scroll Protocol",
87+
"overview": "Overview",
88+
"rollupProcess": "Rollup Process",
89+
8290
"zkevm": "zkEVM",
8391
"introToZkevm": "Intro to zkEVM",
8492
"zkevmOverview": "zkEVM Overview",
8593
"bridge": "Bridge",
8694
"bridgeOverview": "Bridge Overview",
87-
"rollupProcess": "Rollup Process",
8895
"sequencer": "Sequencer",
8996
"executionClient": "Execution Client",
9097
"zkTrie": "zkTrie",
@@ -98,8 +105,10 @@
98105
"theScalabilityProblem": "The Scalability Problem",
99106
"introToRollups": "Intro to Rollups",
100107
"zeroKnowledge": "Zero Knowledge",
108+
"introToZeroKnowledge": "Intro to Zero Knowledge",
101109
"polynomialCommitmentSchemes": "Polynomial Commitment Schemes",
102-
"kzgCommitmentScheme": "KZG Commitment Scheme"
110+
"kzgCommitmentScheme": "KZG Commitment Scheme",
111+
"additionalResources": "Additional Resources"
103112
}
104113
},
105114
"notTranslated": {

public/locales/es/translation.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"notTranslated": {
3+
"notTranslated": "Esta página aún no ha sido traducida."
4+
}
5+
}

src/config/sidebar.ts

+40-13
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const getSidebar = () => {
1010
contents: [{ title: t("sidebar.gettingStarted.overview"), url: "getting-started/overview" }],
1111
},
1212
{
13-
section: t("sidebar.gettingStarted.alphaTestnet"),
13+
section: t("sidebar.gettingStarted.scrollSepoliaTestnet"),
1414
contents: [
1515
{
1616
title: t("sidebar.gettingStarted.userGuide"),
@@ -38,9 +38,9 @@ export const getSidebar = () => {
3838
},
3939
],
4040
},
41+
{ title: t("sidebar.gettingStarted.scrollSepoliaBlockExplorer"), url: "https://blockscout.scroll.io/" },
42+
{ title: t("sidebar.gettingStarted.sepoliaBlockExplorer"), url: "https://sepolia.etherscan.io/" },
4143
{ title: t("sidebar.gettingStarted.rollupExplorer"), url: "https://scroll.io/alpha/rollupscan" },
42-
{ title: t("sidebar.gettingStarted.alphaBlockExplorer"), url: "https://blockscout.scroll.io/" },
43-
{ title: t("sidebar.gettingStarted.goerliBlockExplorer"), url: "https://goerli.etherscan.io/" },
4444
],
4545
},
4646
{
@@ -61,11 +61,17 @@ export const getSidebar = () => {
6161
{
6262
section: "Developers",
6363
contents: [
64-
{ title: t("sidebar.developers.buildingOnScroll"), url: "developers" },
65-
{ title: t("sidebar.developers.developerQuickstart"), url: "developers/developer-quickstart" },
66-
{ title: t("sidebar.developers.verifyingSmartContracts"), url: "developers/verifying-smart-contracts" },
67-
{ title: t("sidebar.developers.alphaTestnetContracts"), url: "developers/alpha-testnet-contracts" },
68-
{ title: t("sidebar.developers.integrations"), url: "developers/integrations" },
64+
{ title: t("sidebar.developers.buildingOnScroll"), url: formatUrl("developers") },
65+
{ title: t("sidebar.developers.developerQuickstart"), url: formatUrl("developers/developer-quickstart") },
66+
{
67+
title: t("sidebar.developers.verifyingSmartContracts"),
68+
url: formatUrl("developers/verifying-smart-contracts"),
69+
},
70+
{
71+
title: t("sidebar.developers.alphaTestnetContracts"),
72+
url: formatUrl("developers/alpha-testnet-contracts"),
73+
},
74+
{ title: t("sidebar.developers.integrations"), url: formatUrl("developers/integrations") },
6975
{
7076
title: t("sidebar.developers.ethereum&AlphaTestnetDifferences"),
7177
url: formatUrl("developers/ethereum-and-alpha-testnet-differences"),
@@ -85,14 +91,27 @@ export const getSidebar = () => {
8591
section: "Resources",
8692
contents: [
8793
{ title: t("sidebar.developers.rollupExplorer"), url: "https://scroll.io/alpha/rollupscan" },
88-
{ title: t("sidebar.developers.alphaBlockExplorer"), url: "https://blockscout.scroll.io/" },
89-
{ title: t("sidebar.developers.goerliBlockExplorer"), url: "https://goerli.etherscan.io/" },
94+
{ title: t("sidebar.developers.scrollSepoliaBlockExplorer"), url: "https://blockscout.scroll.io/" },
95+
{ title: t("sidebar.developers.sepoliaBlockExplorer"), url: "https://goerli.etherscan.io/" },
9096
],
9197
},
9298
],
9399
technology: [
94100
{
95-
section: t("sidebar.technology.architecture"),
101+
section: t("sidebar.technology.introduction"),
102+
contents: [
103+
// {
104+
// title: t("sidebar.technology.principles"),
105+
// url: "technology/architecture/principles",
106+
// },
107+
{
108+
title: t("sidebar.technology.scrollArchitecture"),
109+
url: "technology/architecture/scroll-architecture",
110+
},
111+
],
112+
},
113+
{
114+
section: t("sidebar.technology.scrollProtocol"),
96115
contents: [
97116
{
98117
title: t("sidebar.technology.scrollArchitecture"),
@@ -178,13 +197,21 @@ export const getSidebar = () => {
178197
{
179198
section: t("sidebar.learn.zeroKnowledge"),
180199
contents: [
200+
{
201+
title: t("sidebar.learn.introToZeroKnowledge"),
202+
url: formatUrl("learn/zero-knowledge/introduction-to-zero-knowledge"),
203+
},
181204
{
182205
title: t("sidebar.learn.polynomialCommitmentSchemes"),
183-
url: "learn/zero-knowledge/polynomial-commitment-schemes",
206+
url: formatUrl("learn/zero-knowledge/polynomial-commitment-schemes"),
184207
},
185208
{
186209
title: t("sidebar.learn.kzgCommitmentScheme"),
187-
url: "learn/zero-knowledge/kzg-commitment-scheme",
210+
url: formatUrl("learn/zero-knowledge/kzg-commitment-scheme"),
211+
},
212+
{
213+
title: t("sidebar.learn.additionalResources"),
214+
url: formatUrl("learn/zero-knowledge/additional-zk-learning-resources"),
188215
},
189216
],
190217
},
+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
section: gettingStarted
3+
title: "Article Components"
4+
date: Last Modified
5+
lang: "en"
6+
permalink: "/article-components"
7+
excerpt: "Learn more about the topics of Ethereum Scalability and Zero Knowledge Cryptography"
8+
isMdx: true
9+
whatsnext: { "Next Up Page 1": "/", "Second Next Up Page": "/" }
10+
metadata:
11+
title: "Conceptual Overview"
12+
description: "Metadata for social media and search results."
13+
image:
14+
0: "/files/ToDo:-image-file-name.png"
15+
---
16+
17+
import ClickToZoom from "../../../components/ClickToZoom.astro"
18+
import priceAggr from "../../../assets/images/contract-devs/price-aggr.png"
19+
import ToggleElement from "../../../components/ToggleElement.astro"
20+
import Aside from "../../../components/Aside.astro"
21+
22+
This is body text right under the article title. It typically is just paragraph text that's pretty straightforward. Then there's **bold text**, and _italic text_, and **_bold-italic text_**, and `inline-code` and **`bold inline code`** and even _`italic inline code`_ and **_`bold italic inline code`_**. And of course don't forget [links](#), and [**bold links**](#), and [_italic links_](#), and [**_bold-italic links_**](#).
23+
24+
## Markdown Components (also an H2 Heading)
25+
26+
- We've also got unordered lists!
27+
- They can have multiple items.
28+
- And some sub-items.
29+
- That get into details
30+
- That's an unordered list.
31+
32+
What else do we have?
33+
34+
1. Of course there's also ordered lists.
35+
1. They look like this.
36+
1. They're pretty useful.
37+
38+
### H3 Heading
39+
40+
#### H4 Heading
41+
42+
##### H5 Heading
43+
44+
Let's see a horizontal rule.
45+
46+
---
47+
48+
We define the Square-Fibonacci sequence[^1], a variation of the Fibonacci sequence:
49+
50+
### Math
51+
52+
- Let $f_0 = 1, f_1 = 1$
53+
- For $$i \geq 2$$, define $f_{i} := (f_{i-2})^2 + (f_{i-1})^2 \mod q$
54+
- Where $q$ is a large prime integer. We use this modulus to bound the size of each element, so that it can be represented by some predetermined number of bits.
55+
56+
### Tables
57+
58+
| Syntax | Description |
59+
| --------- | ----------- |
60+
| Header | Title |
61+
| Paragraph | Text |
62+
63+
### Blockquotes
64+
65+
> #### Success
66+
>
67+
> Vitae reprehenderit at aliquid error voluptates eum dignissimos.
68+
69+
### Footnotes
70+
71+
Here's a simple footnote,[^1] and here's a longer one.[^bignote]
72+
73+
[^1]: This is the first footnote.
74+
[^bignote]: Here's one with multiple paragraphs and code.
75+
76+
### Callout that worked in MD, but might not in MDX?
77+
78+
:::tip[Did you know?]
79+
Astro helps you build faster websites with “Islands Architecture”.
80+
:::
81+
82+
## Imported MDX Components
83+
84+
### Callouts
85+
86+
<Aside type="note" title="note">
87+
{" "}
88+
Astro helps you build faster websites with “Islands Architecture”.{" "}
89+
</Aside>
90+
<Aside type="caution" title="caution">
91+
{" "}
92+
Astro helps you build faster websites with “Islands Architecture”.{" "}
93+
</Aside>
94+
<Aside type="danger" title="danger">
95+
{" "}
96+
Astro helps you build faster websites with “Islands Architecture”.{" "}
97+
</Aside>
98+
99+
<Aside type="tip" title="tip">
100+
For .md file you can use this code.
101+
</Aside>
102+
103+
```
104+
:::tip[Did you know?]
105+
Astro helps you build faster websites with “Islands Architecture”.
106+
:::
107+
```
108+
109+
### Images zoom
110+
111+
<ClickToZoom src={priceAggr} />
112+
113+
### Toggle
114+
115+
<ToggleElement anchor="Why build on Scroll?">
116+
<div slot="title">Why build on Scroll?</div>
117+
<p>
118+
Scroll enables creators to turn their content into interactive, explorable experiences. With Scroll, you can create
119+
rich, interactive stories that engage readers, provide a better user experience, and help you stand out from the
120+
crowd.
121+
</p>
122+
</ToggleElement>
123+
<ToggleElement anchor="How does Scroll work?">
124+
<div slot="title">How does Scroll work?</div>
125+
<p>
126+
Scroll combines powerful technologies like WebGL and WebRTC to create immersive, interactive experiences. The
127+
platform allows you to build 3D environments, add interactivity, and embed content from popular web services to
128+
create a unique, engaging experience for your audience.
129+
</p>
130+
</ToggleElement>
131+
<ToggleElement anchor="What can I build with Scroll?">
132+
<div slot="title">What can I build with Scroll?</div>
133+
<p>
134+
You can build a wide range of experiences with Scroll, from interactive articles to immersive product demos and
135+
virtual tours. Scroll is designed to help you create engaging, interactive experiences that elevate your content and
136+
captivate your audience.
137+
</p>
138+
</ToggleElement>

0 commit comments

Comments
 (0)