kogral/templates/export/summary.md.tera
Jesús Pérez 9ea04852a8
Some checks failed
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled
Nickel Type Check / Nickel Type Checking (push) Has been cancelled
chore: add schemas and just recipes
2026-01-23 16:12:50 +00:00

60 lines
1.5 KiB
Plaintext

# {{ graph.name }} - Knowledge Base Summary
**Version:** {{ graph.version }}
{% if graph.description -%}
**Description:** {{ graph.description }}
{% endif -%}
**Generated:** {{ timestamp }}
**Total Nodes:** {{ stats.total_nodes }}
**Total Edges:** {{ stats.total_edges }}
## Statistics
### Nodes by Type
{% for type, count in stats.nodes_by_type %}
- **{{ type | title }}:** {{ count }}
{% endfor %}
### Nodes by Status
{% for status, count in stats.nodes_by_status %}
- **{{ status | title }}:** {{ count }}
{% endfor %}
{% if stats.top_tags and stats.top_tags | length > 0 %}
### Top Tags
{% for tag, count in stats.top_tags %}
- **{{ tag }}:** {{ count }} nodes
{% endfor %}
{% endif %}
{% if nodes and nodes | length > 0 %}
## Nodes
{% for node in nodes %}
### {{ node.title }}
**Type:** {{ node.type | title }}
**Status:** {{ node.status | title }}
**Created:** {{ node.created | date(format="%Y-%m-%d %H:%M") }}
**Modified:** {{ node.modified | date(format="%Y-%m-%d %H:%M") }}
{% if node.tags and node.tags | length > 0 -%}
**Tags:** {% for tag in node.tags %}{{ tag }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif -%}
{{ node.content | truncate(length=200) }}
{% if node.relates_to and node.relates_to | length > 0 -%}
**Related:** {% for rel in node.relates_to %}{{ rel }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
---
{% endfor %}
{% endif %}
{% if graph.metadata and graph.metadata.notes %}
## Notes
{{ graph.metadata.notes }}
{% endif %}