Skip to content

Commit

Permalink
include tags in adr index
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Jan 13, 2025
1 parent 49c68e7 commit eebb452
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
35 changes: 28 additions & 7 deletions docs/modules/ROOT/pages/adr/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,32 @@
|===
|Title |Status |Date |Updated

|xref:adr/0001-architecture-decision-records.adoc[] |draft |2025-01-01 |2025-01-06
|xref:adr/0002-service-documentation.adoc[] |draft |2025-01-06 |2025-01-06
|xref:adr/0003-stackgres-operator-for-postgresql.adoc[] |implemented |2022-11-15 |2023-11-01
|xref:adr/0004-postgresql-metrics-exporter.adoc[] |implemented |2023-02-21 |2023-03-07
|xref:adr/0005-automated-postgresql-service-upgrades.adoc[] |implemented |2023-05-23 |2023-05-04
|xref:adr/0006-bitnami-helm-chart-for-redis.adoc[] |implemented |2022-12-27 |2023-01-04
|xref:adr/0007-automated-redis-service-upgrades.adoc[] |implemented |2023-07-11 |2023-07-11
|xref:adr/0001-architecture-decision-records.adoc[]

`processes`
|draft |2025-01-01 |2025-01-06
|xref:adr/0002-service-documentation.adoc[]

`processes`
|draft |2025-01-06 |2025-01-06
|xref:adr/0003-stackgres-operator-for-postgresql.adoc[]

`postgresql,service`
|implemented |2022-11-15 |2023-11-01
|xref:adr/0004-postgresql-metrics-exporter.adoc[]

`postgresql,service,monitoring,metrics`
|implemented |2023-02-21 |2023-03-07
|xref:adr/0005-automated-postgresql-service-upgrades.adoc[]

`postgresql,service,maintenance`
|implemented |2023-05-23 |2023-05-04
|xref:adr/0006-bitnami-helm-chart-for-redis.adoc[]

`redis,service`
|implemented |2022-12-27 |2023-01-04
|xref:adr/0007-automated-redis-service-upgrades.adoc[]

`redis,upgrades,maintenance`
|implemented |2023-07-11 |2023-07-11
|===
3 changes: 2 additions & 1 deletion hack/adr-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def generate_index(adr_dir, output_file):
status = vars.get("adr_status", "")
date = vars.get("adr_date", "")
updated = vars.get("adr_upd_date", "")
tags = vars.get("adr_tags", "")

content += f"|xref:adr/{filename}.adoc[] |{status} |{date} |{updated}\n"
content += f"|xref:adr/{filename}.adoc[]\n\n`{tags}`\n|{status} |{date} |{updated}\n"

content += "|===\n"

Expand Down

0 comments on commit eebb452

Please sign in to comment.