This guide distills the key information an autonomous agent or ChatGPT-style assistant needs when working in this repository.
- Stack: Next.js (App Router) + TypeScript + Tailwind CSS + Fumadocs UI.
- Purpose: Collaborative knowledge base for students, served from
app/docs/content. - Configs of interest:
source.config.ts– Fumadocs sources and structure.mdx-components.tsx– custom MDX components available to docs.components/– reusable UI building blocks.
- Edit or add Markdown/MDX files under
app/docs/. - Preserve the frontmatter block with at least
titleand include optional metadata (description,date,tags). - Place referenced media inside
<doc>.assets/and runpnpm lint:imagesif assets change.
- Add shared pieces to
components/or page-specific pieces under the relevantapp/route folder. - Use Tailwind utilities for styling; follow existing responsive patterns.
- Ensure server/client boundaries are respected (declare
"use client"only when necessary).
pnpm install– install dependencies (Node.js 18+ required).pnpm dev– start the development server at http://localhost:3000.pnpm build– run the production build (use when changing runtime code or config).pnpm lint:images– validate documentation images.
- Frontmatter present on new/edited docs.
- Assets live beside their documents.
- Components match surrounding code style and naming.
- Necessary scripts/tests executed and mentioned in the report.
- PR summary explains user-visible changes and follow-up steps if any.
For deeper details, read README.md, README.en.md, and CONTRIBUTING.md.