From 4185d9a26c4785bef82b99e6951db8f0f2fdce73 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Mon, 4 Jul 2022 17:35:03 +0100 Subject: [PATCH] Docs: Make .from-version macro be a link to the release note Fixes #6750 --- editions/tw5.com/tiddlers/system/doc-styles.tid | 6 +++--- editions/tw5.com/tiddlers/system/version-macros.tid | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/editions/tw5.com/tiddlers/system/doc-styles.tid b/editions/tw5.com/tiddlers/system/doc-styles.tid index e0f2af8a4..5b268a429 100644 --- a/editions/tw5.com/tiddlers/system/doc-styles.tid +++ b/editions/tw5.com/tiddlers/system/doc-styles.tid @@ -178,10 +178,10 @@ tr.doc-table-subheading { fill: <>; } -.doc-from-version { +a.doc-from-version.tc-tiddlylink { display: inline-block; border-radius: 1em; - background: <>; + background: <>; color: <>; fill: <>; padding: 0 0.4em; @@ -192,7 +192,7 @@ tr.doc-table-subheading { vertical-align: text-bottom; } -.doc-deprecated-version { +a.doc-deprecated-version.tc-tiddlylink { display: inline-block; border-radius: 1em; background: red; diff --git a/editions/tw5.com/tiddlers/system/version-macros.tid b/editions/tw5.com/tiddlers/system/version-macros.tid index b3893d358..f48d054e9 100644 --- a/editions/tw5.com/tiddlers/system/version-macros.tid +++ b/editions/tw5.com/tiddlers/system/version-macros.tid @@ -5,11 +5,11 @@ title: $:/editions/tw5.com/version-macros type: text/vnd.tiddlywiki \define .from-version(version) -{{$:/core/images/warning}} New in: $version$ +<$link to={{{ [<__version__>addprefix[Release ]] }}} class="doc-from-version">{{$:/core/images/warning}} New in: <$text text=<<__version__>>/> \end \define .deprecated-since(version, superseded:"TODO-Link") -<$button to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Deprecated since: $version$ . Use [[$superseded$]] instead +<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Deprecated since: <$text text=<<__version__>>/>. Use <$link to=<<__superseded__>>><$text text=<<__version__>>/> instead \end
<$view field="text"/>
\ No newline at end of file