- Add SYSTEM_PROMPT.md with full documentation philosophy - Add STYLE_GUIDE.md with detailed writing standards - Create services/ directory with docs for API, Operator, Core, Web, Prism, Infra - Create agents/ directory with agent ecosystem documentation - Create guides/ directory with getting-started and contributing guides - Create runbooks/ directory with incident playbook and deployment runbooks - Create reference/ directory with API reference placeholder - Update sidebars.ts to include all new sections - Update CONTRIBUTING.md to reference new comprehensive guides - Update .gitignore to exclude binary assets per system prompt requirements - All documentation builds successfully with no broken links Co-authored-by: blackboxprogramming <118287761+blackboxprogramming@users.noreply.github.com>
3.5 KiB
3.5 KiB
Contributing to BlackRoad OS Docs
This repository is the canonical source of truth for BlackRoad OS documentation. Contributions should help operators, partners, and developers understand the system quickly without sacrificing accuracy.
📚 New to contributing? Check out the comprehensive Contributing Guide and Style Guide for detailed information.
Quick setup
- Use Node.js 20+ with npm or pnpm installed.
- Install dependencies once via
npm install. - Run
npm run startfor the local docs server at http://localhost:3000.
Writing guidelines
See the Style Guide for comprehensive documentation standards. Quick tips:
- Write in Markdown using
##for sections and###for subsections. - Prefer relative links like
[Agents](../agents/agent-ecosystem.md)so content works in GitHub and static exports. - Keep paragraphs short, use bullet lists for steps, and clearly mark components as planned/alpha/in-flight when applicable.
- Reuse diagrams via Mermaid blocks or ASCII art instead of embedding binary images.
Adding or updating pages
- Place new documents under the closest matching folder within
docs/(for example,docs/services/for service documentation,docs/guides/for how-to guides). - Update
sidebars.tswhen adding new pages so navigation stays in sync. - Include concise frontmatter (title, slug, description) and cross-link related pages to reduce duplication.
Document structure
BlackRoad OS docs are organized into clear categories:
docs/overview/- High-level architecture and system overviewdocs/services/- Per-service documentation (API, Operator, Core, Web, etc.)docs/agents/- Agent ecosystem and developmentdocs/guides/- How-to guides and tutorialsdocs/runbooks/- Operational runbooks and proceduresdocs/reference/- API reference and technical specsdocs/ops/- Operations and infrastructuredocs/infra/- Infrastructure configuration and deploymentdocs/dev/- Developer-focused contentdocs/meta/- Documentation about documentation
See the System Prompt for the complete documentation philosophy.
Validation checklist
- Run
npm run buildto catch broken links and frontmatter issues before opening a pull request. - Use
npm run serveto locally review the production build when changing navigation or layout-heavy content. - If you encounter stale artifacts, run
npm run cleanto reset the Docusaurus cache.
Pull request expectations
- Keep changes scoped and describe the audience and intent in the PR summary.
- Call out cross-repo impacts (e.g., updates required in
blackroad-os-operatororblackroad-os-api). - Favor iterative updates over large rewrites so reviewers can ship improvements continuously.
Security
Never commit:
- Secrets, API keys, or credentials
- Binary images (PNG, JPEG, etc.) - use Mermaid or ASCII diagrams instead
- Large files or build artifacts
- Sensitive personal data
See the Security section of the System Prompt for details.
Resources
- 📖 System Prompt - Complete documentation philosophy
- ✍️ Style Guide - Detailed writing standards
- 🤝 Contributing Guide - Full contribution workflow
- 🏠 Getting Started - Local development setup