From efb27b3ba46166e6e04df9865c47d76925a63745 Mon Sep 17 00:00:00 2001 From: Sean Marquez Date: Tue, 22 Feb 2022 17:11:36 -0700 Subject: [PATCH] fix broken derivedFrom links --- templates/sealion-mission-architecture.adoc.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/sealion-mission-architecture.adoc.liquid b/templates/sealion-mission-architecture.adoc.liquid index 967a32a7..8a4fe0c9 100644 --- a/templates/sealion-mission-architecture.adoc.liquid +++ b/templates/sealion-mission-architecture.adoc.liquid @@ -56,7 +56,7 @@ As a *{{us.actor}}* I want to *{{us.behavior}}* so that I can *{{us.rationale}}* * {{architecture['elements'][derivedFromItem].url}}[{{architecture['elements'][derivedFromItem].title}}] {% endif %} {% if architecture['elements'][derivedFromItem].name %} -* xref:{doc-name}#_{{architecture['elements'][derivedFromItem].id | downcase | replace: " ", "_" | replace: ".", "_"}}_{{architecture['elements'][derivedFromItem].name | downcase | replace: " ", "_"}}[{{architecture['elements'][derivedFromItem].name}}] +* xref:{{architecture.package.name}}#_{{architecture['elements'][derivedFromItem].id | downcase | replace: " ", "_" | replace: ".", "_"}}_{{architecture['elements'][derivedFromItem].name | downcase | replace: " ", "_"}}[{{architecture['elements'][derivedFromItem].name}}] {% endif %} {% endfor %} {% endif %} @@ -115,7 +115,7 @@ a|{% for reference in field.derivedFrom %} * {{architecture['elements'][derivedFromItem].url}}[{{architecture['elements'][derivedFromItem].title}}] {% endif %} {% if architecture['elements'][derivedFromItem].name %} -* xref:{doc-name}#_{{architecture['elements'][derivedFromItem].id | downcase | replace: " ", "_" | replace: ".", "_"}}_{{architecture['elements'][derivedFromItem].name | downcase | replace: " ", "_"}}[{{architecture['elements'][derivedFromItem].name}}] +* xref:{{architecture.package.name}}#_{{architecture['elements'][derivedFromItem].id | downcase | replace: " ", "_" | replace: ".", "_"}}_{{architecture['elements'][derivedFromItem].name | downcase | replace: " ", "_"}}[{{architecture['elements'][derivedFromItem].name}}] {% endif %} {% endfor %} {% endif %}