Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 6.51 KB

File metadata and controls

40 lines (37 loc) · 6.51 KB

The ethereum.org website stack

Code structure

Folder Primary use
/src Main source folder for development.
/public/assets Image assets.
/src/components React components that do not function as standalone pages.
/public/content Markdown/MDX files for site content stored here.
For example: ethereum.org/about/ is built from public/content/about/index.md
The markdown files are parsed by [...slug].tsx and rendered using the proper layout in ContentPage.getLayout method.
/public/content/developers/docs *Markdown files in here use the Docs layout: src/layouts/Docs.tsx
/public/content/developers/tutorials *Markdown files in here use the Tutorial layout: src/layouts/Tutorial.tsx
/src/data General data files importable by components.
/src/hooks Custom React hooks.
/src/intl Language translation JSON files.
/app/api Next.js API Routes (https://nextjs.org/docs/app/building-your-application/routing/route-handlers)
/app Next.js App Router pages and layouts.
/src/scripts
/src/lib/utils
Custom utility scripts.
/src/styles Global styles and Tailwind CSS configuration.
/src/layouts Next.js layout components used throughout the site.