1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Docs: Make .from-version macro be a link to the release note

Fixes #6750
This commit is contained in:
jeremy@jermolene.com 2022-07-04 17:35:03 +01:00
parent 926b7808b3
commit 4185d9a26c
2 changed files with 5 additions and 5 deletions

View File

@ -178,10 +178,10 @@ tr.doc-table-subheading {
fill: <<colour alert-highlight>>;
}
.doc-from-version {
a.doc-from-version.tc-tiddlylink {
display: inline-block;
border-radius: 1em;
background: <<colour tiddler-controls-foreground>>;
background: <<colour muted-foreground>>;
color: <<colour background>>;
fill: <<colour background>>;
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;

View File

@ -5,11 +5,11 @@ title: $:/editions/tw5.com/version-macros
type: text/vnd.tiddlywiki
\define .from-version(version)
<span class="doc-from-version">{{$:/core/images/warning}} New in: $version$</span>
<$link to={{{ [<__version__>addprefix[Release ]] }}} class="doc-from-version">{{$:/core/images/warning}} New in: <$text text=<<__version__>>/></$link>
\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$ </$button>. 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__>>/></$link>. Use <$link to=<<__superseded__>>><$text text=<<__version__>>/></$link> instead
\end
<pre><$view field="text"/></pre>