From c493952ea2ed4071621a03d8611ab5a572407e9c Mon Sep 17 00:00:00 2001 From: mmattel Date: Fri, 12 Jul 2024 16:09:45 +0200 Subject: [PATCH] adoc helper template fix --- docs/templates/ADOC.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/templates/ADOC.tmpl b/docs/templates/ADOC.tmpl index 7ba5d3b12..753862d46 100644 --- a/docs/templates/ADOC.tmpl +++ b/docs/templates/ADOC.tmpl @@ -1,4 +1,6 @@ // set the attribute to true or leave empty, true without any quotes. +// if the generated adoc file is used outside tabs, it renders correctly depending on the attribute set. +// if inside, you need additioanlly use the xxx_deprecation.adoc file. attributes cant be defined inside tabs. :show-deprecation: {{ .HasDeprecations }} @@ -23,6 +25,8 @@ ifeval::[{show-deprecation} == true] {{- end }} |=== +{empty} + + endif::[] [caption=]