You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Day 11: Share Your Architecture with a Documentation Website
2
2
3
3
## Overview
4
-
Transform your CALM architecture into browsable HTML documentation using the docify command.
4
+
Generate a shareable documentation website from your CALM architecture - making your architecture knowledge accessible to anyone with a browser.
5
5
6
6
## Objective and Rationale
7
-
-**Objective:** Use `calm docify` to generate comprehensive documentation website from your architecture
8
-
-**Rationale:**Machine-readable architecture (JSON) needs human-readable outputs. Docify generates documentation automatically, ensuring docs stay in sync with architecture. Essential for stakeholder communication and onboarding.
7
+
-**Objective:** Use `calm docify` to generate a comprehensive documentation website that can be shared across your organization
8
+
-**Rationale:**Architecture knowledge locked in JSON files or local tools limits its value. By generating a static website, you can publish your architecture documentation to internal hosting, share it with stakeholders who don't have development tools, and ensure everyone has access to the same source of truth.
9
9
10
10
## Requirements
11
11
12
-
### 1. Understand Docify
12
+
### 1. Understand the Value of Shareable Documentation
13
13
14
-
The `calm docify` command generates documentation in multiple modes:
15
-
-**Website mode (default):** Full HTML website with navigation
16
-
-**Template mode:** Single file using custom template
17
-
-**Template-dir mode:** Multiple files using template bundle
14
+
Until now, viewing your architecture required either:
15
+
- The VSCode Extension (requires VSCode installed)
16
+
- Reading raw JSON (requires technical knowledge)
18
17
19
-
### 2. Generate Default Documentation Website
18
+
A documentation website solves this by:
19
+
-**Accessibility:** Anyone with a browser can view it
20
+
-**Shareability:** Host on internal servers, GitHub Pages, or any static hosting
21
+
-**Consistency:** Everyone sees the same documentation
22
+
-**Self-serve:** Stakeholders can explore without asking architects
The generated website is a self-contained application. Install dependencies and start it:
35
40
@@ -45,264 +50,60 @@ This will start a local development server. Open the URL shown in your terminal
45
50
- Navigate through different sections (nodes, relationships, flows, controls)
46
51
- Click on nodes to see their details
47
52
- View flow sequence diagrams
48
-
-**Take screenshots** of the main pages
53
+
-**Take screenshots** of the main pages to share
49
54
50
55
When done, press `Ctrl+C` to stop the server and return to your project root:
51
56
52
57
```bash
53
58
cd ../../..
54
59
```
55
60
56
-
### 4. Understand Handlebars Templates
57
-
58
-
Docify uses [Handlebars](https://handlebarsjs.com/) as its templating engine. Handlebars provides a simple way to generate text output from your architecture data using mustache-style `{{expressions}}`.
59
-
60
-
#### Basic Handlebars Syntax
61
-
62
-
| Syntax | Description | Example |
63
-
|--------|-------------|---------|
64
-
|`{{property}}`| Output a value |`{{metadata.version}}` → `1.0.0`|
65
-
|`{{#each array}}...{{/each}}`| Loop over arrays |`{{#each nodes}}{{this.name}}{{/each}}`|
Document Day 11 progress in your README: mark the checklist, describe the documentation website, and note where to find the generated site.
274
87
275
-
Document Day 11 progress in your README: mark the checklist, describe the new documentation outputs, and link to `docs/generated/README.md` or the screenshots so stakeholders know where to browse the generated sites.
276
-
277
-
### 10. Commit Your Work
88
+
### 7. Commit Your Work
278
89
279
90
```bash
280
-
git add templates/ docs/generated/ README.md
281
-
git commit -m "Day 11: Generate documentation with docify and custom templates"
0 commit comments