This repository contains the NoteGen website, bilingual product documentation, download pages, and source-grounded interface replicas used by the docs.
Requirements:
- Node.js compatible with Next.js 15
- pnpm
Install dependencies and start the development server:
pnpm install
pnpm devOpen http://localhost:3000. Production commands are:
pnpm build
pnpm startapp/ Next.js routes for the website, docs, and APIs
components/notegen/ deterministic NoteGen interface replicas
content/docs/ Chinese and English MDX documentation
lib/ content loading, i18n, SEO, and server helpers
public/ static website assets
src/config/ download metadata
Documentation navigation is defined by:
content/docs/meta.jsonfor Chinese;content/docs/meta.en.jsonfor English.
Every published documentation page must have a Chinese/English pair:
content/docs/<path>.mdx
content/docs/<path>.en.mdx
Keep both files aligned in scope and heading order. Internal links must include the locale:
[同步配置](/cn/docs/settings/sync)
[Sync](/en/docs/settings/sync)Use stable headings, concrete UI paths, prerequisites, warnings before destructive actions, validation steps, and rollback instructions for migrations or sync changes. Link to an existing page instead of duplicating volatile configuration details.
Documentation can render deterministic NoteGen replicas with NoteGenDocPreview:
<NoteGenDocPreview kind="desktop-canvas" lang="cn" label="桌面端画布界面" />
<NoteGenDocPreview kind="settings" section="webSearch" lang="en" label="Web search settings" />
<NoteGenDocPreview kind="mobile" screen="writing" lang="en" label="Mobile editor" />Supported preview types are defined in components/notegen/doc-preview.tsx. Update a replica from the real NoteGen source and UI; do not invent controls that are not implemented.
The product repository is the source of truth for behavior. Before documenting a feature, inspect the corresponding route, settings page, store, and platform checks in note-gen.
Update documentation when a product change affects:
- a user-visible workflow or setting;
- platform availability;
- permissions, privacy, or data transmission;
- import, export, backup, sync, or migration behavior;
- a command, port, path, model type, or supported format;
- recovery, rollback, or troubleshooting steps.
When behavior is experimental or platform-dependent, label it explicitly.
- Add the Chinese and English MDX files.
- Add both locales to
meta.jsonandmeta.en.jsonin the same position. - Add links from related overview, tutorial, settings, or troubleshooting pages.
- Reuse an existing interface replica when it materially helps the task.
- Check that examples, links, platform notes, privacy boundaries, and rollback guidance match the source.
- The reader and task are obvious from the title and introduction.
- Chinese and English pages cover the same behavior.
- UI names match the current application translations.
- Platform differences are stated near the affected step.
- Destructive or overwriting actions have a warning and backup step.
- Secrets and private content are never used in examples.
- Related pages are linked instead of copied.
- New navigation entries exist in both metadata files.
Deployment scripts and process configuration live in scripts/, ecosystem.config.js, and the repository workflows. Keep environment-specific credentials out of the repository.