@@ -473,20 +473,38 @@ console.log(mermaid)
473473**Output:**
474474
475475` ` ` mermaid
476- graph TD
477- n0["build [build]"]:::job
478- n1[".base"]:::template
479- n2["test [test]"]:::job
480- n0 --> n1
481- n2 --> n1
476+ ---
477+ config:
478+ layout: elk
479+ ---
480+ graph LR
482481 classDef template fill:#e1f5ff,stroke:#0366d6
483482 classDef job fill:#fff5e1,stroke:#fb8500
484483 classDef remote fill:#ffe1f5,stroke:#c026d3
484+
485+ subgraph Templates
486+ n1[".build_template"]:::template
487+ n2[".base"]:::template
488+ n4[".test_template"]:::template
489+ end
490+
491+ subgraph "build"
492+ n0["build"]:::job
493+ end
494+
495+ subgraph "test"
496+ n3["test"]:::job
497+ end
498+
499+ n0 --> n1
500+ n1 --> n2
501+ n3 --> n4
502+ n4 --> n2
485503` ` `
486504
487505# ### ASCII Trees
488506
489- Generate hierarchical ASCII tree views of job inheritance :
507+ Generate hierarchical ASCII tree views of job inheritance using `oo-ascii-tree` for clean, professional box-drawing characters :
490508
491509` ` ` ts
492510const ascii = config.generateAsciiTree({
@@ -500,15 +518,19 @@ console.log(ascii)
500518**Output:**
501519
502520```
503- └─ build (build)
504- └─ .base [ T]
505- └─ test (test)
506- └─ .base [ T]
521+ build (build)
522+ └─┬ .build_template [ T]
523+ └── .base [ T]
524+ test (test)
525+ └─┬ .test_template [ T]
526+ └── .base [ T]
507527```
508528
529+ The ASCII tree uses Unicode box-drawing characters for a clean, readable hierarchy that works great in terminal output and documentation.
530+
509531#### Stage Tables
510532
511- Generate tabular views showing jobs organized by stage :
533+ Generate formatted tables using `climt` showing jobs with their full inheritance chains :
512534
513535```ts
514536const table = config.generateStageTable({
@@ -521,11 +543,18 @@ console.log(table)
521543** Output:**
522544
523545```
524- build │ test │ deploy
525- ──────────────┼──────────────┼─────────────
526- build ← .base │ test ← .base │
546+ ┌───────┬────────────────────────────────────────────┐
547+ │ STAGE │ JOB │
548+ ├───────┼────────────────────────────────────────────┤
549+ │ build │ build-frontend ← .build_template ← .base │
550+ │ build │ build-backend ← .build_template ← .base │
551+ │ test │ test-unit ← .test_template ← .base │
552+ │ test │ test-e2e ← .test_template ← .base │
553+ └───────┴────────────────────────────────────────────┘
527554```
528555
556+ The table shows one job per row with its complete extends chain, making it easy to understand the full inheritance hierarchy at a glance.
557+
529558### Visualization Options
530559
531560All visualization methods accept optional configuration:
0 commit comments