Documentation Style Guide
Audience: contributors.
Purpose
Section titled “Purpose”Ensure Roomful docs are consistent, accurate, and easy to maintain.
Core Rules
Section titled “Core Rules”- Use precise, technical language.
- Prefer short sections and concrete examples.
- Mark non-implemented behavior as Planned.
- Keep terminology consistent:
roompeerpresencecursorsstateawarenessevents
- Avoid speculative claims or unverified external channels.
- End each doc with a
Related docssection and includedocs/README.md.
Audience Tag
Section titled “Audience Tag”Every page must include an explicit Audience: line near the top.
Code Snippet Standards
Section titled “Code Snippet Standards”- Prefer TypeScript snippets.
- Keep examples minimal but runnable in concept.
- Include import lines for non-trivial snippets.
- Avoid pseudocode when concrete code is feasible.
API Documentation Standards
Section titled “API Documentation Standards”- Define function signatures first.
- Document option types and defaults.
- Include at least one usage example.
- Add failure-mode or constraint notes for sensitive behavior.
Contributor Documentation Standards
Section titled “Contributor Documentation Standards”- Use numbered lists for workflows.
- Separate policy from implementation details.
- Keep repository links canonical to
erayates/roomful.