Skip to content

Commit 2831036

Browse files
authored
Merge pull request #13 from scroll-tech/sepolia-content-population
Sepolia content population
2 parents 3297159 + 40fd10b commit 2831036

File tree

65 files changed

+3283
-635
lines changed

Some content is hidden

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

65 files changed

+3283
-635
lines changed

.github/workflows/update-algolia-index.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,28 @@ on: [push]
55
jobs:
66
update-prod-index:
77
if: ${{ github.ref == 'refs/heads/main' }}
8-
name: Update algolia index
8+
name: Update algolia index -- Prod
9+
runs-on: ubuntu-latest
10+
env:
11+
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
12+
ALGOLIA_WRITE_API_KEY: ${{ secrets.ALGOLIA_WRITE_API_KEY }}
13+
ALGOLIA_INDEX_NAME: prod_scroll-docs
14+
defaults:
15+
run:
16+
working-directory: ./
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v3
20+
- name: Install Dependencies
21+
run: npm i
22+
- name: Build
23+
run: npm run build
24+
- name: Update index
25+
run: npm run update-algolia-index
26+
27+
update-dev-index:
28+
if: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/sepolia-content-population' }}
29+
name: Update algolia index -- Dev
930
runs-on: ubuntu-latest
1031
env:
1132
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}

CONTRIBUTING.md

Lines changed: 12 additions & 6 deletions
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

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

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import mdx from "@astrojs/mdx"
99
import rehypeSlug from "rehype-slug"
1010
import rehypeAutolinkHeadings from "rehype-autolink-headings"
1111
import rehypeKatex from "rehype-katex"
12+
import rehypeMermaid from "rehype-mermaidjs"
1213
import remarkGfm from "remark-gfm"
1314
import remarkMath from "remark-math"
1415
import image from "@astrojs/image"
@@ -51,6 +52,7 @@ export default defineConfig({
5152
remarkPlugins: [remarkMath, remarkGfm],
5253
rehypePlugins: [
5354
rehypeSlug,
55+
[rehypeMermaid, { strategy: "img-png" }],
5456
[
5557
rehypeAutolinkHeadings,
5658
{

0 commit comments

Comments
 (0)