mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 13:29:56 +00:00
Docs: Make .from-version macro be a link to the release note
Fixes #6750
This commit is contained in:
parent
926b7808b3
commit
4185d9a26c
@ -178,10 +178,10 @@ tr.doc-table-subheading {
|
|||||||
fill: <<colour alert-highlight>>;
|
fill: <<colour alert-highlight>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc-from-version {
|
a.doc-from-version.tc-tiddlylink {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
background: <<colour tiddler-controls-foreground>>;
|
background: <<colour muted-foreground>>;
|
||||||
color: <<colour background>>;
|
color: <<colour background>>;
|
||||||
fill: <<colour background>>;
|
fill: <<colour background>>;
|
||||||
padding: 0 0.4em;
|
padding: 0 0.4em;
|
||||||
@ -192,7 +192,7 @@ tr.doc-table-subheading {
|
|||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
.doc-deprecated-version {
|
a.doc-deprecated-version.tc-tiddlylink {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
background: red;
|
background: red;
|
||||||
|
@ -5,11 +5,11 @@ title: $:/editions/tw5.com/version-macros
|
|||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
\define .from-version(version)
|
\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
|
\end
|
||||||
|
|
||||||
\define .deprecated-since(version, superseded:"TODO-Link")
|
\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
|
\end
|
||||||
|
|
||||||
<pre><$view field="text"/></pre>
|
<pre><$view field="text"/></pre>
|
Loading…
Reference in New Issue
Block a user