-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add AI-facing documentation #5340
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,141 @@ | ||||||||||||||||||
| # AsyncAPI Website — AI Agent Guidelines | ||||||||||||||||||
|
|
||||||||||||||||||
| Guidelines for AI coding assistants working on this repository. Read this before generating any code or PRs. | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Project Overview | ||||||||||||||||||
|
|
||||||||||||||||||
| - **Framework:** Next.js (Pages Router) with TypeScript (strict mode) | ||||||||||||||||||
| - **Styling:** Tailwind CSS 3 with a custom theme defined in `tailwind.config.ts` | ||||||||||||||||||
| - **Content:** Blog posts and docs are written in MDX/MD inside the `markdown/` directory | ||||||||||||||||||
| - **Testing:** Jest for unit/script tests, Cypress for E2E | ||||||||||||||||||
| - **Deployment:** Netlify (static site + edge functions) | ||||||||||||||||||
| - **i18n:** next-i18next with locales `en`, `de`, `zh_cn` | ||||||||||||||||||
| - **Component docs:** Storybook 8 | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Project Structure | ||||||||||||||||||
|
|
||||||||||||||||||
| ``` | ||||||||||||||||||
| pages/ # Next.js page routes (includes [lang]/ for i18n) | ||||||||||||||||||
| components/ # Reusable React/TypeScript UI components | ||||||||||||||||||
| markdown/ # Blog posts, docs, and about content (MDX/MD) | ||||||||||||||||||
| scripts/ # Build and data-generation scripts (TypeScript) | ||||||||||||||||||
| config/ # JSON schemas, data files, finance configs | ||||||||||||||||||
| types/ # TypeScript type definitions | ||||||||||||||||||
| utils/ # Shared utility functions | ||||||||||||||||||
| context/ # React Context providers | ||||||||||||||||||
| styles/ # Global CSS and Tailwind imports | ||||||||||||||||||
| tests/ # Jest test files | ||||||||||||||||||
| cypress/ # Cypress E2E test files | ||||||||||||||||||
| public/ # Static assets, images, i18n locale JSON files | ||||||||||||||||||
| netlify/ # Netlify edge functions | ||||||||||||||||||
| .github/ # GitHub Actions workflows | ||||||||||||||||||
| ``` | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Contribution Workflow | ||||||||||||||||||
|
|
||||||||||||||||||
| 1. **Open an issue first** and get it approved before starting any PR, unless its a typo or obvious fix | ||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||||||||||||||||||
| 1. **Open an issue first** and get it approved before starting any PR, unless its a typo or obvious fix | |
| 1. **Open an issue first** and get it approved before starting any PR, unless it's a typo or obvious fix |
Copilot
AI
Apr 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repo has a dedicated Netlify edge/functions test script (npm run test:netlify running Deno tests). It would be helpful to include it in either Project Overview (Testing) or the Dev Commands list so contributors run the full suite before opening PRs.
Copilot
AI
Apr 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TypeScript conventions here read as strict rules, but they aren’t consistently true across the codebase (e.g., some props interfaces don’t have JSDoc on each field, and some data shapes are exported as type aliases like IBlogPost). Suggest rewording these bullets as recommendations and/or broadening to “types/interfaces” to better match reality.
| - Props interfaces use JSDoc comments on each field | |
| - Data shape interfaces use `I` prefix (e.g. `IBlogPost`, `IHeadProps`) | |
| - Component props use descriptive names (e.g. `HeadingProps`, `ButtonProps`) | |
| - Enum values are used for component variants (see `@/types/`) | |
| - Prefer adding JSDoc comments to fields in props types/interfaces | |
| - Data shape types/interfaces often use an `I` prefix (e.g. `IBlogPost`, `IHeadProps`) | |
| - Prefer descriptive names for component props types/interfaces (e.g. `HeadingProps`, `ButtonProps`) | |
| - Enum values are commonly used for component variants (see `@/types/`) |
Copilot
AI
Apr 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The guideline "config/ JSON files — auto-generated data" looks overly broad for this repo; there are config files that are meant to be edited manually (e.g., tools-manual.json, maintainers lists). Consider narrowing this to the specific generated outputs (like tools.json/all-tags.json/posts.json, etc.) so contributors don’t avoid legitimate updates.
| - `config/` JSON files — auto-generated data | |
| - Generated config outputs such as `config/tools.json`, `config/all-tags.json`, and `config/posts.json` — auto-generated data; other `config/` JSON files may be manually maintained |
Uh oh!
There was an error while loading. Please reload this page.