Contributing
Share use cases with Hello ADP
Submit a Use Case
Follow these steps if you would like to add a new example to the project.
1. Fork the repository
2. Clone your fork
After forking, copy the git URL for your repository—for example https://github.com/<your-username>/hello-adp.git
.
Run the following command in the directory where you want to work:
3. Edit the MDX content
We highly recommend an AI-assisted IDE such as Cursor, Windsurf, or Cline to speed up authoring.
Open the project in a new window and review the structure:
Each folder follows the same principles:
-
meta.{lang}.json
: controls ordering and structure in the navigation drawer. Example:We use the Remix Icon set throughout the project.
-
*.mdx
: the actual document. Always include a frontmatter block at the top: -
Subfolders: further organize content. Each subfolder also needs its own
meta.{lang}.json
file.
Document filenames follow the document.{lang}.mdx
convention.
- Chinese:
document.zh.mdx
- English:
document.mdx
- Japanese:
document.ja.mdx
Localization workflow (i18n)
Write one language first and let Cursor handle the rest.
The repo ships with an i18n rule at .cursor/rules/i18n.mdc
.
Summon it with @i18n.mdc
inside Cursor. A sample prompt:
The rule documents how to name files, update meta.{lang}.json
, and keep variants in sync.
Images
Image hosting is limited through next.config.mjs
. We currently allow sm.ms so assets stay centralized.
If you prefer a different CDN, update next.config.mjs
accordingly while keeping assets well organized.
We strongly recommend capturing screenshots in English to make cross-language review easier.
4. Test locally
Run the project before opening a PR to make sure everything builds correctly.
Install dependencies
Start the dev server
Visit http://localhost:3000
and confirm your docs look good.
Verify i18n completeness
Important: every language variant must exist. Without an English (.mdx
) file, other locales will fail to compile.
Make sure you have:
- English base file:
document.mdx
- Chinese variant:
document.zh.mdx
- Japanese variant:
document.ja.mdx
- Navigation metadata for each locale:
meta.json
,meta.zh.json
,meta.ja.json
Check with:
yarn build
ornpm run build
- Watch for errors such as missing locale files, malformed frontmatter, mismatched entries in
meta.json
, or broken image URLs.
Inspect every locale in the browser:
- English:
http://localhost:3000/en/docs/...
- Chinese:
http://localhost:3000/zh/docs/...
- Japanese:
http://localhost:3000/ja/docs/...
All variants should render correctly and convey the same message.
5. Submit your changes
In your IDE, open the Git panel (), click , then choose Branches → Create branch.
Pick a descriptive branch name such as docs/<slug>
for documentation-only updates.
Next, open a pull request with your branch:
Submit a use case or feedback
If you have an idea but would like us to draft the final copy, open an Issue in this repository.
Use the following template:
We will review the Issue, follow up with any questions, and publish the documentation after acceptance.