NEVER make up ANYTHING (imports, types, function or object names, etc.) about implementation and usage details for any document. Instead, reference the actual source material when new content must be generated (vs. copied). For all non-copied content (anything newly written), ensure accuracy and correctness by referencing the corresponding code directly (e.g., type definitions, multisynq-client exported functions, react-together/packages/react-together exports, croquet/packages/croquet/teatime/*.js files) or one of the summary files.
ALWAYS read ROADMAP.md and STYLE.md before starting any new task.
ROADMAP.mdcontains the high-level project goals, outstanding tasks, and priorities.STYLE.mdcontains the content, formatting, and style guidelines for all documentation.
This is the central repository for the Multisynq documentation, built with Mintlify. The project has recently undergone a major migration from a set of disparate, JSDoc-generated HTML files and markdown documents into this unified, modern documentation platform.
- Mintlify: The static site generator and documentation framework.
- MDX: The format for all content pages, allowing for React components within Markdown.
- React: Used for custom interactive components within the documentation.
- GitHub Actions: For CI/CD and future automation pipelines.
docs/: The root directory for all documentation content.docs.json: The master configuration file for Mintlify, defining navigation, branding, and theme.index.mdx: The homepage.api-reference/: API documentation.essentials/: Core concepts of Multisynq.tutorials/: Step-by-step guides for building applications.react-together/: Documentation specific to themultisynq-reactlibrary.images/&logo/: Static assets.package.json: Project dependencies and scripts.ROADMAP.md: High-level goals and outstanding tasks.STYLE.md: Content and style guide.CURSOR.md: This file.
The documentation is a living project that must stay in sync with several source code repositories.
- Core API (
@multisynq/multisynq): JSDoc comments within the source code atmultisynq/packages/multisynq/src/. - Tutorial Content: The
multisynq-client/docs/tutorials/directory contains the canonical markdown and code for the core tutorials. - React Together (
@multisynq/multisynq-react): Thereact-together/website/andreact-together/packages/directories contain the source documentation for all React hooks, components, and utilities.
A key objective, as outlined in ROADMAP.md and the original migration documents (AUTOMATED_SYNCING_STRATEGY.md, BUILD_PROCESS.md), is to create a fully automated pipeline for documentation generation. This involves:
- A JSDoc-to-MDX converter that automatically generates API reference pages.
- Content synchronization scripts that pull updates from the tutorial and React Together repositories.
- A CI/CD pipeline that triggers these scripts on changes to the source repositories, ensuring the documentation is always up-to-date.
cd docs/npm installnpm run docs:dev(starts dev server athttp://localhost:3001)
npm run docs:build
- Adhere to the guidelines in
STYLE.md. - Consult
ROADMAP.mdfor current priorities. - For any new content, cite the source of truth (the specific file in the source code repository).
- Ensure all code examples are tested and functional.