1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-23 03:03:14 +00:00

use testcases for toc documentation

This commit is contained in:
pmario 2024-07-25 09:08:14 +02:00
parent a44fb50cf7
commit 946bf46da0
7 changed files with 36 additions and 4 deletions

View File

@ -13,6 +13,7 @@ title: $:/core/ui/TestCaseTemplate
testActions="Actions"
testHideIfPass=<<hideIfPass>>
>
<$data $compound-tiddler={{!!import-compound}}/>
<$data $compound-tiddler=<<currentTiddler>>/>
<$data title="Description" text={{!!description}}/>
</$testcase>

View File

@ -1,6 +1,6 @@
created: 20240204164038858
modified: 20240204164143744
modified: 20240724102624904
title: $:/config/TextEditor/EditorHeight/Mode
type: text/vnd.tiddlywiki
fixed
auto

View File

@ -0,0 +1,6 @@
created: 20240724102117494
modified: 20240724102117494
title: $:/themes/tiddlywiki/vanilla/settings/editorfontfamily
type: text/vnd.tiddlywiki
"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace

View File

@ -1,6 +1,6 @@
title: Narrative
* The following code defines a "Simple Table of Contents" using "root" as the base tag.
* The following code defines a "Simple Table of Contents" using "root" as the base tag
* Click through all the tabs to get additional info
{{Narrative-extended}}

View File

@ -1,7 +1,7 @@
created: 20240724070813184
description: Simple TOC
display-format: wikitext
modified: 20240724100513345
modified: 20240724101415661
tags: $:/tags/wiki-test-spec
title: Examples/TOC/SimpleToc
type: text/vnd.tiddlywiki-multiple

View File

@ -0,0 +1,18 @@
title: Description
text: Simple TOC - captionField parameter
+
title: Narrative-extended
* The "Fifth" tiddler has an alternative "caption-field"
+
title: Fifth
tags: Fourth
alt: alt-caption
text: 5th
+
title: Output
<div class="tc-table-of-contents">
<<toc tag:"root" captionField:"alt">>
</div>

View File

@ -0,0 +1,7 @@
created: 20240724104351802
description: asdf
import-compound: Examples/TOC/SimpleToc
modified: 20240724112711726
tags: $:/tags/wiki-test-spec
title: Examples/TOC/SimpleToc/captionField 1
type: text/vnd.tiddlywiki-multiple