Contributing to Fabric-X Documentation¶
Guidelines¶
Diagrams¶
All diagrams must be in Mermaid format. ASCII art is no longer accepted.
Flowchart Example¶
flowchart TB
A[Start] --> B[Process]
B --> C[End]
style A fill:#e3f2fd
style B fill:#c8e6c9
style C fill:#fff3e0
Sequence Diagram Example¶
sequenceDiagram
participant A as Actor
participant B as Backend
A->>B: Request
B-->>A: Response
Architecture Accuracy¶
- Verify against source code
- Use correct component names
- Show accurate data flows
- Include all critical components
Style Guide¶
- Headers: Use sentence case
- Code: Use language-specific syntax highlighting
- Links: Use relative paths
- Tables: Align columns properly
Review Process¶
- Create PR with changes
- Automated checks (Mermaid syntax)
- Technical review
- Merge to main
Tools¶
Local Preview¶
Building documentation¶
The root mkdocs.yml builds the published Fabric-X documentation site.
Install documentation dependencies:
Build the default docs configuration:
For local component documentation development, keep sibling repositories next to this repository:
Then build with the local override config:
mkdocs.local.yml imports selected orderer and committer architecture docs from local sibling repositories using mkdocs-multirepo-plugin and local tags named fabric-x-docs-local.
Do not use mkdocs.local.yml for GitHub Pages or release builds. Published builds must use refs that exist in remote component repositories.