Skip to content

Commit 047d92d

Browse files
authored
Merge branch 'dev' into patch-1
2 parents bd730d9 + 45c2d5c commit 047d92d

File tree

410 files changed

+22379
-18566
lines changed

Some content is hidden

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

410 files changed

+22379
-18566
lines changed

.all-contributorsrc

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7313,7 +7313,8 @@
73137313
"avatar_url": "https://avatars.githubusercontent.com/u/70309026?v=4",
73147314
"profile": "https://github.com/LuozhuZhang",
73157315
"contributions": [
7316-
"doc"
7316+
"doc",
7317+
"ideas"
73177318
]
73187319
},
73197320
{
@@ -9599,6 +9600,114 @@
95999600
"contributions": [
96009601
"doc"
96019602
]
9603+
},
9604+
{
9605+
"login": "dgcoffman",
9606+
"name": "Daniel Coffman",
9607+
"avatar_url": "https://avatars.githubusercontent.com/u/1711204?v=4",
9608+
"profile": "http://dancoffman.com",
9609+
"contributions": [
9610+
"doc"
9611+
]
9612+
},
9613+
{
9614+
"login": "Amit0617",
9615+
"name": "AMIT KUMAR MISHRA",
9616+
"avatar_url": "https://avatars.githubusercontent.com/u/71893015?v=4",
9617+
"profile": "https://github.com/Amit0617",
9618+
"contributions": [
9619+
"doc"
9620+
]
9621+
},
9622+
{
9623+
"login": "Saksham010",
9624+
"name": "Saksham Thapa",
9625+
"avatar_url": "https://avatars.githubusercontent.com/u/56692835?v=4",
9626+
"profile": "https://github.com/Saksham010",
9627+
"contributions": [
9628+
"bug"
9629+
]
9630+
},
9631+
{
9632+
"login": "vjgaur",
9633+
"name": "Vijayendra Gaur",
9634+
"avatar_url": "https://avatars.githubusercontent.com/u/1871257?v=4",
9635+
"profile": "https://github.com/vjgaur",
9636+
"contributions": [
9637+
"doc"
9638+
]
9639+
},
9640+
{
9641+
"login": "nocibambi",
9642+
"name": "András Novoszáth",
9643+
"avatar_url": "https://avatars.githubusercontent.com/u/8539674?v=4",
9644+
"profile": "https://www.linkedin.com/in/andrasnovoszath/",
9645+
"contributions": [
9646+
"doc"
9647+
]
9648+
},
9649+
{
9650+
"login": "SahilAujla",
9651+
"name": "Sahil Aujla",
9652+
"avatar_url": "https://avatars.githubusercontent.com/u/83442423?v=4",
9653+
"profile": "http://sahilaujla.com",
9654+
"contributions": [
9655+
"doc"
9656+
]
9657+
},
9658+
{
9659+
"login": "ritave",
9660+
"name": "Olaf Tomalka",
9661+
"avatar_url": "https://avatars.githubusercontent.com/u/1614945?v=4",
9662+
"profile": "https://github.com/ritave",
9663+
"contributions": [
9664+
"doc"
9665+
]
9666+
},
9667+
{
9668+
"login": "armgp",
9669+
"name": "Abhiram G P",
9670+
"avatar_url": "https://avatars.githubusercontent.com/u/49094298?v=4",
9671+
"profile": "https://github.com/armgp",
9672+
"contributions": [
9673+
"code"
9674+
]
9675+
},
9676+
{
9677+
"login": "aelmanaa",
9678+
"name": "Amine E.",
9679+
"avatar_url": "https://avatars.githubusercontent.com/u/4503543?v=4",
9680+
"profile": "https://github.com/aelmanaa",
9681+
"contributions": [
9682+
"doc"
9683+
]
9684+
},
9685+
{
9686+
"login": "Roshan-R",
9687+
"name": "Roshan R Chandar",
9688+
"avatar_url": "https://avatars.githubusercontent.com/u/43182697?v=4",
9689+
"profile": "https://roshan.ml/",
9690+
"contributions": [
9691+
"doc"
9692+
]
9693+
},
9694+
{
9695+
"login": "mossow",
9696+
"name": "mossow",
9697+
"avatar_url": "https://avatars.githubusercontent.com/u/9072132?v=4",
9698+
"profile": "https://github.com/mossow",
9699+
"contributions": [
9700+
"doc"
9701+
]
9702+
},
9703+
{
9704+
"login": "OpenWJY",
9705+
"name": "yujingwei",
9706+
"avatar_url": "https://avatars.githubusercontent.com/u/29328336?v=4",
9707+
"profile": "https://github.com/OpenWJY",
9708+
"contributions": [
9709+
"doc"
9710+
]
96029711
}
96039712
],
96049713
"contributorsPerLine": 7,

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ yarn-error.log
7676
src/data/contributors.json
7777
# These files are generated by `yarn merge-translations` command
7878
src/intl/*.json
79+
i18n/locales
7980
# Auto generated code when gatsby build the site
8081
src/gatsby-types.d.ts
8182

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
11901190
<td align="center"><a href="https://github.com/1337-ishaan"><img src="https://avatars.githubusercontent.com/u/64636222?v=4?s=100" width="100px;" alt="Ishaan Parmar"/><br /><sub><b>Ishaan Parmar</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=1337-ishaan" title="Code">💻</a> <a href="#design-1337-ishaan" title="Design">🎨</a> <a href="#ideas-1337-ishaan" title="Ideas, Planning, & Feedback">🤔</a></td>
11911191
<td align="center"><a href="http://tarunbatra.com"><img src="https://avatars.githubusercontent.com/u/5329230?v=4?s=100" width="100px;" alt="Tarun Batra"/><br /><sub><b>Tarun Batra</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=tarunbatra" title="Documentation">📖</a> <a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Atarunbatra" title="Bug reports">🐛</a></td>
11921192
<td align="center"><a href="https://github.com/max-donger"><img src="https://avatars.githubusercontent.com/u/56192627?v=4?s=100" width="100px;" alt="Max"/><br /><sub><b>Max</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=max-donger" title="Documentation">📖</a> <a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Amax-donger" title="Bug reports">🐛</a></td>
1193-
<td align="center"><a href="https://github.com/LuozhuZhang"><img src="https://avatars.githubusercontent.com/u/70309026?v=4?s=100" width="100px;" alt="Luozhu"/><br /><sub><b>Luozhu</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=LuozhuZhang" title="Documentation">📖</a></td>
1193+
<td align="center"><a href="https://github.com/LuozhuZhang"><img src="https://avatars.githubusercontent.com/u/70309026?v=4?s=100" width="100px;" alt="Luozhu"/><br /><sub><b>Luozhu</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=LuozhuZhang" title="Documentation">📖</a> <a href="#ideas-LuozhuZhang" title="Ideas, Planning, & Feedback">🤔</a></td>
11941194
</tr>
11951195
<tr>
11961196
<td align="center"><a href="http://www.linkedin.com/in/sharma-yash"><img src="https://avatars.githubusercontent.com/u/44340561?v=4?s=100" width="100px;" alt="Yash Sharma "/><br /><sub><b>Yash Sharma </b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=yash-sharma1" title="Documentation">📖</a></td>
@@ -1510,6 +1510,20 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
15101510
<tr>
15111511
<td align="center"><a href="https://github.com/owenHwang"><img src="https://avatars.githubusercontent.com/u/112543777?v=4?s=100" width="100px;" alt="Owen Hwang"/><br /><sub><b>Owen Hwang</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=owenHwang" title="Documentation">📖</a></td>
15121512
<td align="center"><a href="https://github.com/florath"><img src="https://avatars.githubusercontent.com/u/11856543?v=4?s=100" width="100px;" alt="Andreas Florath"/><br /><sub><b>Andreas Florath</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=florath" title="Documentation">📖</a></td>
1513+
<td align="center"><a href="http://dancoffman.com"><img src="https://avatars.githubusercontent.com/u/1711204?v=4?s=100" width="100px;" alt="Daniel Coffman"/><br /><sub><b>Daniel Coffman</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=dgcoffman" title="Documentation">📖</a></td>
1514+
<td align="center"><a href="https://github.com/Amit0617"><img src="https://avatars.githubusercontent.com/u/71893015?v=4?s=100" width="100px;" alt="AMIT KUMAR MISHRA"/><br /><sub><b>AMIT KUMAR MISHRA</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=Amit0617" title="Documentation">📖</a></td>
1515+
<td align="center"><a href="https://github.com/Saksham010"><img src="https://avatars.githubusercontent.com/u/56692835?v=4?s=100" width="100px;" alt="Saksham Thapa"/><br /><sub><b>Saksham Thapa</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3ASaksham010" title="Bug reports">🐛</a></td>
1516+
<td align="center"><a href="https://github.com/vjgaur"><img src="https://avatars.githubusercontent.com/u/1871257?v=4?s=100" width="100px;" alt="Vijayendra Gaur"/><br /><sub><b>Vijayendra Gaur</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=vjgaur" title="Documentation">📖</a></td>
1517+
<td align="center"><a href="https://www.linkedin.com/in/andrasnovoszath/"><img src="https://avatars.githubusercontent.com/u/8539674?v=4?s=100" width="100px;" alt="András Novoszáth"/><br /><sub><b>András Novoszáth</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=nocibambi" title="Documentation">📖</a></td>
1518+
</tr>
1519+
<tr>
1520+
<td align="center"><a href="http://sahilaujla.com"><img src="https://avatars.githubusercontent.com/u/83442423?v=4?s=100" width="100px;" alt="Sahil Aujla"/><br /><sub><b>Sahil Aujla</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=SahilAujla" title="Documentation">📖</a></td>
1521+
<td align="center"><a href="https://github.com/ritave"><img src="https://avatars.githubusercontent.com/u/1614945?v=4?s=100" width="100px;" alt="Olaf Tomalka"/><br /><sub><b>Olaf Tomalka</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=ritave" title="Documentation">📖</a></td>
1522+
<td align="center"><a href="https://github.com/armgp"><img src="https://avatars.githubusercontent.com/u/49094298?v=4?s=100" width="100px;" alt="Abhiram G P"/><br /><sub><b>Abhiram G P</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=armgp" title="Code">💻</a></td>
1523+
<td align="center"><a href="https://github.com/aelmanaa"><img src="https://avatars.githubusercontent.com/u/4503543?v=4?s=100" width="100px;" alt="Amine E."/><br /><sub><b>Amine E.</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=aelmanaa" title="Documentation">📖</a></td>
1524+
<td align="center"><a href="https://roshan.ml/"><img src="https://avatars.githubusercontent.com/u/43182697?v=4?s=100" width="100px;" alt="Roshan R Chandar"/><br /><sub><b>Roshan R Chandar</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=Roshan-R" title="Documentation">📖</a></td>
1525+
<td align="center"><a href="https://github.com/mossow"><img src="https://avatars.githubusercontent.com/u/9072132?v=4?s=100" width="100px;" alt="mossow"/><br /><sub><b>mossow</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=mossow" title="Documentation">📖</a></td>
1526+
<td align="center"><a href="https://github.com/OpenWJY"><img src="https://avatars.githubusercontent.com/u/29328336?v=4?s=100" width="100px;" alt="yujingwei"/><br /><sub><b>yujingwei</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=OpenWJY" title="Documentation">📖</a></td>
15131527
</tr>
15141528
</tbody>
15151529
</table>

docs/deploy-and-review-process.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Deploy and review process
2+
3+
This documentation outlines our current processes for how we deploy the latest changes to ethereum.org, and how we prioritize items in our review process.
4+
5+
## Deploy process
6+
7+
Anything merged into the `dev` branch of [ethereum.org](http://ethereum.org) will go live on ethereum.org at the next release. Currently, we deploy the latest changes to [ethereum.org](http://ethereum.org) twice per week (Monday and Thursday). When deploying, we merge the `dev` branch into the `master` branch. The `master` branch is the latest live version of [ethereum.org](https://ethereum.org).
8+
9+
Occasionally, we’ll also do a patch deploy to fix an urgent or widespread issue.
10+
11+
## Review process
12+
13+
### General review process
14+
15+
We use a first-in, first-out system for reviewing pull requests. The longer a pull request has been open, the higher priority it is for our team to review. In some cases—for example, fixing a high-priority issue or merging low-hanging fruit for a deploy—we will stray from this process and use our best judgement to get higher-impact changes deployed more quickly.
16+
17+
We aim to have every new PR merged or closed within 30 days of opening. As outlined in the following sections, different types of pull requests do have different levels of priority, and this may influence how promptly a pull request is acted on.
18+
19+
### Translations
20+
21+
Translation pull requests are considered high priority. These are when the translated and reviewed files from our translation management platform are submitted as a pull request. They are important to our core value of bringing Ethereum education to as many languages as possible. They also are the accumulation of months of work by translators and reviewers, and any delay to this already long process is undesirable.
22+
23+
**Timeline:** PRs should be merged within 1-4 days of opening (by the next release).
24+
25+
### Feature and bug fixes
26+
27+
Any new feature correlated to an approved issue or bug fix is high-priority. Similar to translators, code contributors dedicate a large amount of their time to improving [ethereum.org](http://ethereum.org) as a resource and addressing their efforts quickly is desirable. All bug fixes should be handled swiftly, but new features that were not discussed, requested or approved do not fall under this timeline.
28+
29+
**Timeline:** Features or bug fixes should be reviewed within 1-12 days. In the case of bugs, more severe bugs will be reviewed more promptly.
30+
31+
### Content
32+
33+
Content PRs are considered medium-priority. Depending on their content, they can be very high-impact but also a high effort to go through the various stages of content review to ensure the content meets the standards we aim for. Content PRs can be broken into two categories: major content (e.g. a new page) and minor content changes (e.g. a new section to an existing page). Typo or grammar fixes are considered separately.
34+
35+
**Timeline:** Major content should be merged within 15-30 days of opening. Minor content changes within 5-15 days of opening.
36+
37+
### Typographical and grammatical errors
38+
39+
Typographical and grammatical errors are medium-priority as small errors of this kind can have second-order ramifications for the linguists of the ~50 languages we currently translate to. Though technically a subgroup of ‘content PRs’, typos and grammar errors take significantly less time to review and, as a result, are treated differently.
40+
41+
**Timeline:** Typo or grammar pull requests should be merged within 1-8 days of opening.
42+
43+
### Adding products
44+
45+
Adding new products is currently a low-to-medium priority (depending on the type of product). These pull requests often take a long time to review as we must extensively research products to ensure we not sending our users to any dubious or unsafe products.
46+
47+
**Timeline:** PRs should be closed or merged within 30 days of opening.
48+
49+
### Adding tutorials
50+
51+
Adding new tutorials to [ethereum.org](http://ethereum.org) is currently low-priority. We are currently in the middle of an epic to revamp our tutorials. As part of this, we’ll be reviewing our existing tutorials, purging outdated or low-quality tutorials, and refining our listing criteria for future tutorials to meet our increased standards. Please always create an issue to discuss the usefulness of your proposed tutorial before opening a PR.
52+
53+
**Timeline:** PRs should be closed or merged within 30 days of opening.

docs/stack.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [Gatsby Docs](https://www.gatsbyjs.org/docs/)
1010
- [React](https://reactjs.org/) - A JavaScript library for building component-based user interfaces
1111
- [Typescript](https://www.typescriptlang.org/) - TypeScript is a strongly typed programming language that builds on JavaScript
12+
- [Chakra UI](https://chakra-ui.com/) - A UI library (Migration in progress)
1213
- [GraphQL](https://graphql.org/) - A query language for APIs
1314
- [Algolia](https://www.algolia.com/) - Site indexing, rapid intra-site search results, and search analytics. [Learn more on how we implement Algolia for site search](./docs/ALGOLIA_DOCSEARCH.md).
1415
- Primary implementation: `/src/components/Search/index.ts`

gatsby-browser.tsx

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
* See: https://www.gatsbyjs.org/docs/browser-apis/
55
*/
66

7-
import React from "react"
8-
import browserLang from "browser-lang"
9-
import { withPrefix, GatsbyBrowser } from "gatsby"
10-
117
import Prism from "prism-react-renderer/prism"
128
;(typeof global !== "undefined" ? global : window).Prism = Prism
139

@@ -16,53 +12,6 @@ import "@formatjs/intl-locale/polyfill"
1612
import "@formatjs/intl-numberformat/polyfill"
1713
import "@formatjs/intl-numberformat/locale-data/en"
1814

19-
import Layout from "./src/components/Layout"
20-
import {
21-
supportedLanguages,
22-
defaultLanguage,
23-
isLang,
24-
} from "./src/utils/languages"
25-
import { IS_DEV } from "./src/utils/env"
26-
import { Context } from "./src/types"
27-
2815
// Default languages included:
2916
// https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js
3017
require("prismjs/components/prism-solidity")
31-
32-
// Prevents <Layout/> from unmounting on page transitions
33-
// https://www.gatsbyjs.com/docs/layout-components/#how-to-prevent-layout-components-from-unmounting
34-
// @ts-ignore: returning `null` is not accepted by the `GatsbyBrowser` type def.
35-
export const wrapPageElement: GatsbyBrowser<
36-
any,
37-
Context
38-
>["wrapPageElement"] = ({ element, props }) => {
39-
const { location, pageContext } = props
40-
const { pathname, search } = location
41-
const { originalPath } = pageContext
42-
43-
const [, pathLocale] = pathname.split("/")
44-
45-
// client side redirect on paths that don't have a locale in them. Most useful
46-
// on dev env where we don't have server redirects
47-
if (IS_DEV && !isLang(pathLocale)) {
48-
let detected =
49-
window.localStorage.getItem("eth-org-language") ||
50-
browserLang({
51-
languages: supportedLanguages,
52-
fallback: defaultLanguage,
53-
})
54-
55-
if (!isLang(detected)) {
56-
detected = defaultLanguage
57-
}
58-
59-
const queryParams = search || ""
60-
const newUrl = withPrefix(`/${detected}${originalPath}${queryParams}`)
61-
window.localStorage.setItem("eth-org-language", detected)
62-
window.location.replace(newUrl)
63-
64-
return null
65-
}
66-
67-
return <Layout {...props}>{element}</Layout>
68-
}

0 commit comments

Comments
 (0)