improve summary
This commit is contained in:
parent
22a4e9fbf8
commit
e52b9ab372
3
book/index.md
Normal file
3
book/index.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# STORM
|
||||||
|
|
||||||
|
An intro page.
|
@ -40,10 +40,27 @@
|
|||||||
{{ value["doc"]["name"] }} ([{{ value["id"] }}]({{ value["id"] | domain_id_link }}))
|
{{ value["doc"]["name"] }} ([{{ value["id"] }}]({{ value["id"] | domain_id_link }}))
|
||||||
{%- endmacro name_and_id_link %}
|
{%- endmacro name_and_id_link %}
|
||||||
|
|
||||||
{% macro summary_list(instances) -%}
|
{% macro summary_table(instances) -%}
|
||||||
| ID | Name |
|
| ID | Name |
|
||||||
|:---------------------------:|:------------------------|
|
|:---------------------------:|:------------------------|
|
||||||
{% for item in instances -%}
|
{% for item in instances -%}
|
||||||
| [{{ item.id }}]({{ item.id | domain_id_link }}) | {{ item.name }} |
|
| [{{ item.id }}]({{ item.id | domain_id_link }}) | {{ item.name }} |
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{%- endmacro summary_list %}
|
{%- endmacro summary_table %}
|
||||||
|
|
||||||
|
{% macro summary_list(instances) %}
|
||||||
|
{%- set last_domain = "" -%}
|
||||||
|
{%- set last_model = "" -%}
|
||||||
|
{%- for item in summary -%}
|
||||||
|
{%- set id_parts = item.id | domain_id -%}
|
||||||
|
{%- if last_domain != id_parts.domain -%}
|
||||||
|
{%- set_global last_domain = id_parts.domain %}
|
||||||
|
# {{ id_parts.domain | capitalize }}
|
||||||
|
{%- endif -%}
|
||||||
|
{%- if last_model != id_parts.model -%}
|
||||||
|
{%- set_global last_model = id_parts.model %}
|
||||||
|
- [{{ id_parts.model | capitalize }}](.{{ item.id | domain_id_link(for="model") }})
|
||||||
|
{%- endif %}
|
||||||
|
- [{{ item.name }}](.{{ item.id | domain_id_link }})
|
||||||
|
{%- endfor -%}
|
||||||
|
{% endmacro summary_list %}
|
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
Observable items use to detect and respond to threat actor behaviour.
|
Observable items use to detect and respond to threat actor behaviour.
|
||||||
|
|
||||||
{{ macros::summary_list(instances=instances) }}
|
{{ macros::summary_table(instances=instances) }}
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
# Action
|
# Action
|
||||||
|
|
||||||
{{ macros::summary_list(instances=instances) }}
|
{{ macros::summary_table(instances=instances) }}
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
Phase of a response to observed threat behaviour.
|
Phase of a response to observed threat behaviour.
|
||||||
|
|
||||||
{{ macros::summary_list(instances=instances) }}
|
{{ macros::summary_table(instances=instances) }}
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
Feed or result of a query used to satisfy intelligence requirements.
|
Feed or result of a query used to satisfy intelligence requirements.
|
||||||
|
|
||||||
{{ macros::summary_list(instances=instances) }}
|
{{ macros::summary_table(instances=instances) }}
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
An internal or external supplier of intelligence.
|
An internal or external supplier of intelligence.
|
||||||
|
|
||||||
{{ macros::summary_list(instances=instances) }}
|
{{ macros::summary_table(instances=instances) }}
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
Collection of intelligence used by actions, detections and mitigations.
|
Collection of intelligence used by actions, detections and mitigations.
|
||||||
|
|
||||||
{{ macros::summary_list(instances=instances) }}
|
{{ macros::summary_table(instances=instances) }}
|
||||||
|
@ -1,16 +1,7 @@
|
|||||||
|
{% import "macros.tera" as macros %}
|
||||||
|
|
||||||
# Summary
|
# Summary
|
||||||
|
|
||||||
{%- set last_domain = "" -%}
|
[STORM](./index.md)
|
||||||
{%- set last_model = "" -%}
|
|
||||||
{%- for item in summary -%}
|
{{ macros::summary_list(instances) }}
|
||||||
{%- set id_parts = item.id | domain_id -%}
|
|
||||||
{%- if last_domain != id_parts.domain -%}
|
|
||||||
{%- set_global last_domain = id_parts.domain %}
|
|
||||||
# {{ id_parts.domain | capitalize }}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if last_model != id_parts.model -%}
|
|
||||||
{%- set_global last_model = id_parts.model %}
|
|
||||||
- [{{ id_parts.model | capitalize }}](.{{ item.id | domain_id_link(for="model") }})
|
|
||||||
{%- endif %}
|
|
||||||
- [{{ item.name }}](.{{ item.id | domain_id_link }})
|
|
||||||
{%- endfor -%}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user