Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summary points refactor for eth2 template #4760

Merged
merged 3 commits into from Dec 16, 2021
Merged

Conversation

wackerow
Copy link
Member

Description

  • Replaces summaryPoints (array of strings), with four individual frontmatter properties, each a simple string without quotes wrapping.
  • This is changed in the template graphql query, as well as in the frontmatter of all english and translated eth2 pages (beacon-chain, merge, and shard-chains)
  • Refactor template/eth2.js to use these instead, creating the summaryPoints array here instead.

Related Issue

When importing markdown files from Crowdin, we've been encountering recurrent issues where the summaryPoints array is being turned into a string. Using different quotation marks (to accommodate for quotes used within the string) were causing complications.

See notion with notes/issues from recent import:
https://www.notion.so/efdn/12-11-2021-Crowdin-Import-Notes-e7fccce737164ac6bb8ea7659fb95ebf

This should simplify Crowdin imports in the future, preventing the recurrent bugs being caused by this array.

@github-actions github-actions bot added content 🖋️ This involves copy additions or edits review needed 👀 translation 🌍 This is related to our Translation Program labels Dec 13, 2021
@gatsby-cloud
Copy link

gatsby-cloud bot commented Dec 13, 2021

Gatsby Cloud Build Report

ethereum-org-website-dev

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 4m

Performance

Lighthouse report

Metric Score
Performance 🔶 21
Accessibility 💚 97
Best Practices 💚 93
SEO 🔶 79

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Dec 13, 2021

Gatsby Cloud Build Report

ethereum-org-website-dev2

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 5m

Performance

Lighthouse report

Metric Score
Performance 🔶 21
Accessibility 💚 97
Best Practices 💚 93
SEO 🔶 79

🔗 View full report

@minimalsm minimalsm merged commit 5200e1e into dev Dec 16, 2021
@minimalsm minimalsm deleted the summary-points-refactor branch December 16, 2021 12:06
This was referenced Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits translation 🌍 This is related to our Translation Program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants