open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

Add developer guide for the pages/ (landing page) project

Open lizhengfeng101 opened this issue 5 months ago • 1 comments

Background

The pages/ directory contains the OpenCodeReview landing page (built with TypeScript + Webpack + Tailwind CSS), but there is currently no developer documentation for it. This makes it hard for new contributors to get started — they have to read through config files just to figure out how to run the dev server.

What We Need

A pages/README.md (or pages/CONTRIBUTING.md) that covers at least:

Getting Started

  • Prerequisites (Node.js version, npm/pnpm)
  • How to install dependencies (npm install)
  • How to start the local dev server (npx webpack serve)
  • How to build for production (npx webpack)
  • Project structure overview (src/, dist/, config files)

Development Guidelines

  • PR screenshots required: Any PR that touches pages/ must include before/after screenshots showing the affected pages
  • Code style and formatting conventions
  • How Tailwind CSS is configured (tailwind.config.js, postcss.config.js)
  • TypeScript configuration notes (tsconfig.json)

Why This Matters

A clear developer guide lowers the barrier for new contributors and helps maintain consistency across contributions to the landing page.

Acceptance Criteria

  • [ ] A documentation file exists in the pages/ directory
  • [ ] It covers local development setup (install, dev server, build)
  • [ ] It documents the PR screenshot requirement
  • [ ] It provides a brief project structure overview

lizhengfeng101 avatar Jul 02 '26 05:07 lizhengfeng101

我可以认领这个需求吗

Gongyl01 avatar Jul 02 '26 05:07 Gongyl01