Skip to content

Commit fb592cd

Browse files
committed
Merge branch 'dev' into pr/Seek4samurai/10348
2 parents cf03b50 + d4a9fa3 commit fb592cd

File tree

472 files changed

+18830
-2269
lines changed

Some content is hidden

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

472 files changed

+18830
-2269
lines changed

.all-contributorsrc

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10172,6 +10172,44 @@
1017210172
"contributions": [
1017310173
"content"
1017410174
]
10175+
},
10176+
{
10177+
"login": "megatheikal",
10178+
"name": "megatheikal",
10179+
"avatar_url": "https://avatars.githubusercontent.com/u/64621442?v=4",
10180+
"profile": "https://megatheikal.com",
10181+
"contributions": [
10182+
"bug"
10183+
]
10184+
},
10185+
{
10186+
"login": "stephenfire",
10187+
"name": "Stephen Guo",
10188+
"avatar_url": "https://avatars.githubusercontent.com/u/17247036?v=4",
10189+
"profile": "https://github.com/stephenfire",
10190+
"contributions": [
10191+
"translation"
10192+
]
10193+
},
10194+
{
10195+
"login": "feuGeneA",
10196+
"name": "F. Eugene Aumson",
10197+
"avatar_url": "https://avatars.githubusercontent.com/u/7883777?v=4",
10198+
"profile": "http://aumson.org/gene",
10199+
"contributions": [
10200+
"bug",
10201+
"content"
10202+
]
10203+
},
10204+
{
10205+
"login": "rpalakkal",
10206+
"name": "Roshan",
10207+
"avatar_url": "https://avatars.githubusercontent.com/u/19766713?v=4",
10208+
"profile": "https://github.com/rpalakkal",
10209+
"contributions": [
10210+
"content",
10211+
"code"
10212+
]
1017510213
}
1017610214
],
1017710215
"contributorsPerLine": 7,
@@ -10180,5 +10218,6 @@
1018010218
"repoType": "github",
1018110219
"repoHost": "https://github.com",
1018210220
"skipCi": true,
10183-
"commitConvention": "angular"
10221+
"commitConvention": "angular",
10222+
"commitType": "docs"
1018410223
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Suggest quiz
2+
description: Add, update, delete questions for a quiz on ethereum.osg
3+
title: Add/Update/Delete quiz question
4+
labels: ["feature :sparkles", "quiz :books:"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Before suggesting additions, updates, or deletions of quiz content, make sure you've read our [contributing guidelines for quizzes](https://ethereum.org/en/contributing/quizzes/).
10+
- type: input
11+
id: page
12+
attributes:
13+
label: Page URL
14+
description: URL for the page the quiz can be found on, or should be added to
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: question_content
19+
attributes:
20+
label: Question content
21+
description: Suggest questions to add, update, or delete based on contribution guideline
22+
validations:
23+
required: true
24+
- type: checkboxes
25+
id: work_on
26+
attributes:
27+
label: Would you like to work on this issue?
28+
options:
29+
- label: "Yes"
30+
required: false
31+
- label: "No"
32+
required: false
33+
validations:
34+
required: true

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
15951595
<tr>
15961596
<td align="center" valign="top" width="14.28%"><a href="https://changwu.me/"><img src="https://avatars.githubusercontent.com/u/1557364?v=4?s=100" width="100px;" alt="changwu"/><br /><sub><b>changwu</b></sub></a><br /><a href="#content-changwu-tw" title="Content">🖋</a></td>
15971597
<td align="center" valign="top" width="14.28%"><a href="http://uniyj.eth"><img src="https://avatars.githubusercontent.com/u/84749041?v=4?s=100" width="100px;" alt="yj"/><br /><sub><b>yj</b></sub></a><br /><a href="#content-uniyj" title="Content">🖋</a></td>
1598+
<td align="center" valign="top" width="14.28%"><a href="https://megatheikal.com"><img src="https://avatars.githubusercontent.com/u/64621442?v=4?s=100" width="100px;" alt="megatheikal"/><br /><sub><b>megatheikal</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Amegatheikal" title="Bug reports">🐛</a></td>
1599+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/stephenfire"><img src="https://avatars.githubusercontent.com/u/17247036?v=4?s=100" width="100px;" alt="Stephen Guo"/><br /><sub><b>Stephen Guo</b></sub></a><br /><a href="#translation-stephenfire" title="Translation">🌍</a></td>
1600+
<td align="center" valign="top" width="14.28%"><a href="http://aumson.org/gene"><img src="https://avatars.githubusercontent.com/u/7883777?v=4?s=100" width="100px;" alt="F. Eugene Aumson"/><br /><sub><b>F. Eugene Aumson</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AfeuGeneA" title="Bug reports">🐛</a> <a href="#content-feuGeneA" title="Content">🖋</a></td>
1601+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rpalakkal"><img src="https://avatars.githubusercontent.com/u/19766713?v=4?s=100" width="100px;" alt="Roshan"/><br /><sub><b>Roshan</b></sub></a><br /><a href="#content-rpalakkal" title="Content">🖋</a> <a href="https://github.com/ethereum/ethereum-org-website/commits?author=rpalakkal" title="Code">💻</a></td>
15981602
</tr>
15991603
</tbody>
16001604
</table>

docs/chakra-migration-guide.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ const Text = styled.p`
118118
`
119119

120120
// now
121-
<Text color="primary" bg="background" />
121+
<Text color="primary.base" bg="background.base" />
122122
```
123123

124+
> Note the dotted notation. In Chakra, the values are referred to as "semantic tokens" and the new theme applies a nested structure of like tokens for better organization. See [semanticTokens.ts](../src/%40chakra-ui/gatsby-plugin/semanticTokens.ts)
125+
124126
<aside>
125127
💡 In the **next iteration** we will refactor all the colors with the correct color from the new Design System
126128
</aside>

gatsby-config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,11 @@ if (!IS_PREVIEW) {
318318
resolve: "gatsby-plugin-matomo",
319319
options: {
320320
siteId: "4",
321-
matomoUrl: "https://matomo.ethereum.org",
321+
matomoUrl: "https://ethereumfoundation.matomo.cloud",
322322
siteUrl,
323323
matomoPhpScript: "matomo.php",
324324
matomoJsScript: "matomo.js",
325325
trackLoad: false,
326-
additionalTrackers: [
327-
{
328-
siteId: "1",
329-
trackerUrl: "https://ethereumfoundation.matomo.cloud/matomo.php",
330-
},
331-
],
332326
},
333327
},
334328
]

gatsby-node.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,15 @@ const checkIsPageOutdated = async (
9898

9999
const joinedFilepath = filePath.join("-")
100100
const srcPath = path.resolve(`src/intl/${lang}/page-${joinedFilepath}.json`)
101-
const englishPath = path.resolve(`src/intl/en/page-${joinedFilepath}.json`)
101+
const englishPath = path.resolve(
102+
`src/intl/${defaultLanguage}/page-${joinedFilepath}.json`
103+
)
102104

103105
// If no file exists, default to english
104106
if (!fs.existsSync(srcPath)) {
105107
return {
106-
isOutdated: true,
108+
// Consider always defaultLanguage paths as updated
109+
isOutdated: lang !== defaultLanguage,
107110
isContentEnglish: true,
108111
}
109112
} else {
@@ -291,6 +294,7 @@ export const createPages: GatsbyNode<any, Context>["createPages"] = async ({
291294
isOutdated: false,
292295
isContentEnglish: true,
293296
relativePath, // Use English path for template MDX query
297+
isDefaultLang: lang === defaultLanguage,
294298
// gatsby i18n plugin
295299
i18n: {
296300
language: lang,
@@ -366,6 +370,7 @@ export const createPages: GatsbyNode<any, Context>["createPages"] = async ({
366370
slug,
367371
isContentEnglish,
368372
isOutdated,
373+
isDefaultLang: lang === defaultLanguage,
369374
// gatsby i18n plugin
370375
i18n: {
371376
language: lang,
@@ -391,6 +396,8 @@ export const onCreatePage: GatsbyNode<any, Context>["onCreatePage"] = async ({
391396
actions,
392397
}) => {
393398
const { createPage, deletePage, createRedirect } = actions
399+
const rootPath = page.path.slice(3)
400+
const is404Page = rootPath.match(/^\/404(\/|.html)$/)
394401

395402
if (!page.context) {
396403
return
@@ -417,9 +424,11 @@ export const onCreatePage: GatsbyNode<any, Context>["onCreatePage"] = async ({
417424
context: {
418425
...page.context,
419426
languagesToFetch: [language],
420-
isOutdated,
421-
//display TranslationBanner for translation-component pages that are still in English
427+
// hide the outdated content banner for 404 pages
428+
isOutdated: is404Page ? false : isOutdated,
429+
// display TranslationBanner for translation-component pages that are still in English
422430
isContentEnglish,
431+
isDefaultLang,
423432
},
424433
}
425434

@@ -445,8 +454,7 @@ export const onCreatePage: GatsbyNode<any, Context>["onCreatePage"] = async ({
445454
if (!IS_DEV && i18n.routed) {
446455
createPage<Context>(newPage)
447456

448-
const rootPath = page.path.slice(3)
449-
if (isDefaultLang && !rootPath.match(/^\/404(\/|.html)$/)) {
457+
if (isDefaultLang && !is404Page) {
450458
createRedirect({
451459
...commonRedirectProps,
452460
fromPath: rootPath,

0 commit comments

Comments
 (0)