Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 5.74 KB

stack.md

File metadata and controls

39 lines (36 loc) · 5.74 KB

The ethereum.org website stack

Code structure

Folder Primary use
/src Main source folder for development
/src/assets Image assets
/src/components React components that do not function as standalone pages
/src/content Markdown/MDX files for site content stored here.
For example: ethereum.org/en/about/ is built from src/content/about/index.md
The markdown files are parsed and rendered by src/templates/static.ts*
/src/content/developers/docs *Markdown files in here use the Docs template: src/templates/docs.ts
/src/content/developers/tutorials *Markdown files in here use the Tutorial template: src/templates/tutorial.ts
/src/data General data files importable by components
/src/hooks Custom React hooks
/src/intl Language translation JSON files
/src/lambda Lambda function scripts for API calls
/src/pages
/src/pages-conditional
React components that function as standalone pages.
For example: ethereum.org/en/wallets/find-wallet is built from src/pages/wallets/find-wallet.ts
/src/scripts
/src/utils
Custom utility scripts
/src/styles Stores layout.css which contains root level css styling
/src/templates TSX templates that define layouts of different regions of the site
/src/theme.ts Declares site color themes, breakpoints and other constants (try to utilize these colors first)