Generate Documentation from Your Architecture Diagram
What you'll build
In this tutorial, you will take an architecture diagram on your Rekhic canvas and convert it into a structured GitHub-Flavored Markdown specification (ARCHITECTURE.md) detailing applications, services, data stores, external dependencies, and relationship flows.
Before you start
- Have an open diagram in your workspace (
/diagram), or create a quick diagram using Tutorial 1 or a template from Templates.
Step 1: Label and Categorize Your Components
Before exporting documentation, ensure your canvas nodes have meaningful labels and categories:
- Double-click the main application node and verify its label (e.g.
Web Frontend). - Verify that service nodes are labeled (e.g.
Payment Service,Order API). - Set technology tags using the context toolbar (e.g.
Node.js,Go,PostgreSQL). - Ensure databases are styled with the ellipse shape or database category.
Step 2: Label Connection Edges
Relationships in your documentation are derived from the connectors between nodes:
- Double-click each connector edge between components.
- Add a descriptive protocol or purpose:
- Between Frontend and Gateway:
HTTPS /api - Between Gateway and Service:
gRPC - Between Service and DB:
SQL read/write - Between Service and Cache:
Redis TCP
- Between Frontend and Gateway:
Step 3: Trigger the Markdown Exporter
- In the top navigation bar of the workspace, click the Export Markdown button.
- Rekhic parses the nodes, categories, and connected edges in your active drawing.
- A modal appears displaying the rendered Markdown preview and raw markdown code.
Review the generated architecture
Review the generated sections in the modal:
# System Architecture: Includes your diagram name and description.## Applications: Contains all frontend and client components.## Services: Lists all microservices and API gateways.## Data Stores: Catalogs all databases and caches.## Relationships / Data Flow: Shows the full dependency flow formatted as:markdown- **Source** -> **Target** (*Protocol*)
Customize the diagram
If you notice any missing items or unclassified components:
- Close the export modal.
- Adjust node categories or add missing connector labels directly on the canvas.
- Click Export Markdown again—the export updates instantly with your edits.
Export your result
- In the export modal, click Copy to Clipboard to paste directly into Notion, Confluence, or a pull request description.
- Or click Download Markdown to save an
ARCHITECTURE.mdfile. - Commit this file to the root of your project repository alongside
README.md.
Tips
- Keep connector labels concise (e.g.
REST /v1/ordersorKafka Topic: orders.events) so the relationship list remains scannable. - Combine the exported Markdown with an exported PNG image for a complete documentation package.
Limitations
- The markdown generator documents nodes and edges present on the active canvas. Freehand drawings or loose text boxes are excluded from the formal component tables.