mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Merge branch 'master' into multi-wiki-support
This commit is contained in:
commit
edc32c5262
@ -16,3 +16,11 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
--output . \
|
--output . \
|
||||||
--build readmes \
|
--build readmes \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
|
|
||||||
|
# tw.org readmes
|
||||||
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
|
editions/tw.org \
|
||||||
|
--verbose \
|
||||||
|
--output . \
|
||||||
|
--build readmes \
|
||||||
|
|| exit 1
|
||||||
|
1
code-of-conduct.md
Normal file
1
code-of-conduct.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>This community exists because TiddlyWiki is more useful when people share and work together.</p><p>This community is a beautiful but fragile thing: a collection of diverse people from all over the planet, united in their interest in the project, and their commitment to helping one another achieve and learn more.</p><p>We try to make the community as broad and welcoming as possible by remembering some basic principles of culture and behaviour.</p><p>These principles guide technical and non-technical decisions, and help contributors and leaders support our project and community.</p><ul><li>We are optimistic and hopeful</li><li>We aim to foster a learning environment that is collaborative and safe for everyone</li><li>We recognise that the motivation for sharing and helping is usually for appreciation, and not financial gain, and so we take care to acknowledge and <strong>thank the people who enrich the community by sharing what they have created</strong></li><li>While we are united in our interest in TiddlyWiki, we differ in every other conceivable way. We choose to focus on what unites us, and <strong>avoid unnecessarily mixing contentious topics like religion and politics</strong></li><li>We treat each other with respect, and start with the assumption that <strong>others are acting in good faith</strong></li><li>We avoid discriminatory language</li><li>We try to use our strength as a community to help others</li><li>We avoid responding when angry or upset because we try to de-escalate conflict</li><li>We make sure we critique ideas, not people</li><li>When we disagree with others we do so graciously, and treat others with dignity and respoect</li><li>We do not tolerate intolerance towards others</li><li>We seek first to understand others, and then to be understood</li><li>We have fun</li></ul><p>Our discussions are in English. It is not the first language of many people in the community, nor do we all share the same cultural background and reference points. So we take care to use language that is clear and unambigous, and avoid cultural references or jokes that will not be widely understood.</p><p>It is not acceptable to make jokes or other comments that discriminate by race, gender, sexuality, or other protected characteristic.</p><p>As an inclusive community, we are committed to making sure that TiddlyWiki is an accessible tool that understands the needs of people with disabilities.</p>
|
@ -198,6 +198,12 @@ Settings/TitleLinks/Yes/Description: Display tiddler titles as links
|
|||||||
Settings/MissingLinks/Caption: Wiki Links
|
Settings/MissingLinks/Caption: Wiki Links
|
||||||
Settings/MissingLinks/Hint: Choose whether to link to tiddlers that do not exist yet
|
Settings/MissingLinks/Hint: Choose whether to link to tiddlers that do not exist yet
|
||||||
Settings/MissingLinks/Description: Enable links to missing tiddlers
|
Settings/MissingLinks/Description: Enable links to missing tiddlers
|
||||||
|
SocialCard/Caption: Social Media Card
|
||||||
|
SocialCard/Domain/Prompt: Domain name to display for the link (for example, ''tiddlywiki.com'')
|
||||||
|
SocialCard/Hint: This information is used by social and messaging services to display a preview card for links to this TiddlyWiki when hosted online
|
||||||
|
SocialCard/PreviewUrl/Prompt: Full URL to preview image for this TiddlyWiki
|
||||||
|
SocialCard/PreviewUrl/Preview: Preview image:
|
||||||
|
SocialCard/Url/Prompt: Full URL of this TiddlyWiki
|
||||||
StoryTiddler/Caption: Story Tiddler
|
StoryTiddler/Caption: Story Tiddler
|
||||||
StoryTiddler/Hint: This rule cascade is used to dynamically choose the template for displaying a tiddler in the story river.
|
StoryTiddler/Hint: This rule cascade is used to dynamically choose the template for displaying a tiddler in the story river.
|
||||||
StoryView/Caption: Story View
|
StoryView/Caption: Story View
|
||||||
|
@ -93,11 +93,12 @@ var processRow = function(prevColumns) {
|
|||||||
}
|
}
|
||||||
// Check whether this is a heading cell
|
// Check whether this is a heading cell
|
||||||
var cell;
|
var cell;
|
||||||
|
var start = this.parser.pos;
|
||||||
if(chr === "!") {
|
if(chr === "!") {
|
||||||
this.parser.pos++;
|
this.parser.pos++;
|
||||||
cell = {type: "element", tag: "th", children: []};
|
cell = {type: "element", tag: "th", start: start, children: []};
|
||||||
} else {
|
} else {
|
||||||
cell = {type: "element", tag: "td", children: []};
|
cell = {type: "element", tag: "td", start: start, children: []};
|
||||||
}
|
}
|
||||||
tree.push(cell);
|
tree.push(cell);
|
||||||
// Record information about this cell
|
// Record information about this cell
|
||||||
@ -121,6 +122,7 @@ var processRow = function(prevColumns) {
|
|||||||
}
|
}
|
||||||
// Move back to the closing `|`
|
// Move back to the closing `|`
|
||||||
this.parser.pos--;
|
this.parser.pos--;
|
||||||
|
cell.end = this.parser.pos;
|
||||||
}
|
}
|
||||||
col++;
|
col++;
|
||||||
cellRegExp.lastIndex = this.parser.pos;
|
cellRegExp.lastIndex = this.parser.pos;
|
||||||
@ -169,12 +171,13 @@ exports.parse = function() {
|
|||||||
rowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});
|
rowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});
|
||||||
} else {
|
} else {
|
||||||
// Create the row
|
// Create the row
|
||||||
var theRow = {type: "element", tag: "tr", children: []};
|
var theRow = {type: "element", tag: "tr", children: [], start: rowMatch.index};
|
||||||
$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? "oddRow" : "evenRow");
|
$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? "oddRow" : "evenRow");
|
||||||
rowContainer.children.push(theRow);
|
rowContainer.children.push(theRow);
|
||||||
// Process the row
|
// Process the row
|
||||||
theRow.children = processRow.call(this,prevColumns);
|
theRow.children = processRow.call(this,prevColumns);
|
||||||
this.parser.pos = rowMatch.index + rowMatch[0].length;
|
this.parser.pos = rowMatch.index + rowMatch[0].length;
|
||||||
|
theRow.end = this.parser.pos;
|
||||||
// Increment the row count
|
// Increment the row count
|
||||||
rowCount++;
|
rowCount++;
|
||||||
}
|
}
|
||||||
|
@ -924,7 +924,7 @@ exports.transliterate = function(str) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.transliterateToSafeASCII = function(str) {
|
exports.transliterateToSafeASCII = function(str) {
|
||||||
return str.replace(/[^\x00-\x7F]/g,function(ch) {
|
return str.replace(/[^\x20-\x7F]/g,function(ch) {
|
||||||
return exports.transliterationPairs[ch] || ""
|
return exports.transliterationPairs[ch] || ""
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333353
|
foreground: #333353
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/palettes/ContrastLight
|
title: $:/palettes/ContrastDark
|
||||||
name: Contrast (Light)
|
name: Contrast (Dark)
|
||||||
color-scheme: light
|
color-scheme: dark
|
||||||
description: High contrast and unambiguous (light version)
|
description: High contrast and unambiguous (dark version)
|
||||||
tags: $:/tags/Palette
|
tags: $:/tags/Palette
|
||||||
type: application/x-tiddler-dictionary
|
type: application/x-tiddler-dictionary
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ alert-background: #f00
|
|||||||
alert-border: <<colour background>>
|
alert-border: <<colour background>>
|
||||||
alert-highlight: <<colour foreground>>
|
alert-highlight: <<colour foreground>>
|
||||||
alert-muted-foreground: #800
|
alert-muted-foreground: #800
|
||||||
background: #fff
|
background: #000
|
||||||
blockquote-bar: <<colour muted-foreground>>
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
button-background: <<colour background>>
|
button-background: <<colour background>>
|
||||||
button-foreground: <<colour foreground>>
|
button-foreground: <<colour foreground>>
|
||||||
@ -33,7 +33,8 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #00a
|
external-link-foreground-visited: #00a
|
||||||
external-link-foreground: #00e
|
external-link-foreground: #00e
|
||||||
foreground: #000
|
footnote-target-background: #4c4c4c
|
||||||
|
foreground: #fff
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
message-background: <<colour foreground>>
|
message-background: <<colour foreground>>
|
||||||
@ -82,8 +83,8 @@ tab-foreground: <<colour background>>
|
|||||||
table-border: #dddddd
|
table-border: #dddddd
|
||||||
table-footer-background: #a8a8a8
|
table-footer-background: #a8a8a8
|
||||||
table-header-background: #f0f0f0
|
table-header-background: #f0f0f0
|
||||||
tag-background: #000
|
tag-background: #fff
|
||||||
tag-foreground: #fff
|
tag-foreground: #000
|
||||||
tiddler-background: <<colour background>>
|
tiddler-background: <<colour background>>
|
||||||
tiddler-border: <<colour foreground>>
|
tiddler-border: <<colour foreground>>
|
||||||
tiddler-controls-foreground-hover: #ddd
|
tiddler-controls-foreground-hover: #ddd
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/palettes/ContrastDark
|
title: $:/palettes/ContrastLight
|
||||||
name: Contrast (Dark)
|
name: Contrast (Light)
|
||||||
color-scheme: dark
|
color-scheme: light
|
||||||
description: High contrast and unambiguous (dark version)
|
description: High contrast and unambiguous (light version)
|
||||||
tags: $:/tags/Palette
|
tags: $:/tags/Palette
|
||||||
type: application/x-tiddler-dictionary
|
type: application/x-tiddler-dictionary
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ alert-background: #f00
|
|||||||
alert-border: <<colour background>>
|
alert-border: <<colour background>>
|
||||||
alert-highlight: <<colour foreground>>
|
alert-highlight: <<colour foreground>>
|
||||||
alert-muted-foreground: #800
|
alert-muted-foreground: #800
|
||||||
background: #000
|
background: #fff
|
||||||
blockquote-bar: <<colour muted-foreground>>
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
button-background: <<colour background>>
|
button-background: <<colour background>>
|
||||||
button-foreground: <<colour foreground>>
|
button-foreground: <<colour foreground>>
|
||||||
@ -33,7 +33,8 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #00a
|
external-link-foreground-visited: #00a
|
||||||
external-link-foreground: #00e
|
external-link-foreground: #00e
|
||||||
foreground: #fff
|
footnote-target-background: #e5e5e5
|
||||||
|
foreground: #000
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
message-background: <<colour foreground>>
|
message-background: <<colour foreground>>
|
||||||
@ -82,8 +83,8 @@ tab-foreground: <<colour background>>
|
|||||||
table-border: #dddddd
|
table-border: #dddddd
|
||||||
table-footer-background: #a8a8a8
|
table-footer-background: #a8a8a8
|
||||||
table-header-background: #f0f0f0
|
table-header-background: #f0f0f0
|
||||||
tag-background: #fff
|
tag-background: #000
|
||||||
tag-foreground: #000
|
tag-foreground: #fff
|
||||||
tiddler-background: <<colour background>>
|
tiddler-background: <<colour background>>
|
||||||
tiddler-border: <<colour foreground>>
|
tiddler-border: <<colour foreground>>
|
||||||
tiddler-controls-foreground-hover: #ddd
|
tiddler-controls-foreground-hover: #ddd
|
||||||
|
@ -31,6 +31,7 @@ external-link-background: transparent
|
|||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited: #BF5AF2
|
external-link-foreground-visited: #BF5AF2
|
||||||
external-link-foreground: #32D74B
|
external-link-foreground: #32D74B
|
||||||
|
footnote-target-background: #747474
|
||||||
foreground: #FFFFFF
|
foreground: #FFFFFF
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -35,6 +35,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -39,6 +39,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #313163
|
external-link-foreground-visited: #313163
|
||||||
external-link-foreground: #555592
|
external-link-foreground: #555592
|
||||||
|
footnote-target-background: #fff7d9
|
||||||
foreground: #2D2A23
|
foreground: #2D2A23
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -40,6 +40,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #d3869b
|
external-link-foreground-visited: #d3869b
|
||||||
external-link-foreground: #8ec07c
|
external-link-foreground: #8ec07c
|
||||||
|
footnote-target-background: #665c54
|
||||||
foreground: #fbf1c7
|
foreground: #fbf1c7
|
||||||
highlight-background: #ffff79
|
highlight-background: #ffff79
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -40,6 +40,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #5E81AC
|
external-link-foreground-visited: #5E81AC
|
||||||
external-link-foreground: #8FBCBB
|
external-link-foreground: #8FBCBB
|
||||||
|
footnote-target-background: #2E3440
|
||||||
foreground: #d8dee9
|
foreground: #d8dee9
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -131,6 +131,7 @@ external-link-background-hover: inherit
|
|||||||
external-link-background-visited: inherit
|
external-link-background-visited: inherit
|
||||||
external-link-background: inherit
|
external-link-background: inherit
|
||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
|
footnote-target-background: #ded8c5
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
message-border: #cfd6e6
|
message-border: #cfd6e6
|
||||||
@ -141,6 +142,10 @@ sidebar-controls-foreground-hover:
|
|||||||
sidebar-muted-foreground-hover:
|
sidebar-muted-foreground-hover:
|
||||||
sidebar-tab-background: #ded8c5
|
sidebar-tab-background: #ded8c5
|
||||||
sidebar-tiddler-link-foreground-hover:
|
sidebar-tiddler-link-foreground-hover:
|
||||||
|
stability-deprecated: <<colour red>>
|
||||||
|
stability-experimental: <<colour yellow>>
|
||||||
|
stability-legacy: <<colour blue>>
|
||||||
|
stability-stable: <<colour green>>
|
||||||
static-alert-foreground: #aaaaaa
|
static-alert-foreground: #aaaaaa
|
||||||
tab-border: #cccccc
|
tab-border: #cccccc
|
||||||
modal-footer-border: <<colour tab-border>>
|
modal-footer-border: <<colour tab-border>>
|
||||||
|
@ -34,6 +34,7 @@ external-link-background-visited: inherit
|
|||||||
external-link-foreground: #268bd2
|
external-link-foreground: #268bd2
|
||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited: #268bd2
|
external-link-foreground-visited: #268bd2
|
||||||
|
footnote-target-background: #073642
|
||||||
foreground: #839496
|
foreground: #839496
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -34,6 +34,7 @@ external-link-background-visited: inherit
|
|||||||
external-link-foreground: #268bd2
|
external-link-foreground: #268bd2
|
||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #268bd2
|
external-link-foreground-visited: #268bd2
|
||||||
|
footnote-target-background: #eee8d5
|
||||||
foreground: #657b83
|
foreground: #657b83
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: transparent
|
|||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited:
|
external-link-foreground-visited:
|
||||||
external-link-foreground:
|
external-link-foreground:
|
||||||
|
footnote-target-background: #ececec
|
||||||
foreground: rgba(0, 0, 0, 0.87)
|
foreground: rgba(0, 0, 0, 0.87)
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -33,6 +33,7 @@ external-link-background: transparent
|
|||||||
external-link-foreground-hover:
|
external-link-foreground-hover:
|
||||||
external-link-foreground-visited: #7c318c
|
external-link-foreground-visited: #7c318c
|
||||||
external-link-foreground: #9e3eb3
|
external-link-foreground: #9e3eb3
|
||||||
|
footnote-target-background: #494949
|
||||||
foreground: rgba(255, 255, 255, 0.7)
|
foreground: rgba(255, 255, 255, 0.7)
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -42,6 +42,7 @@ external-link-background-visited: inherit
|
|||||||
external-link-foreground: rgb(179, 179, 255)
|
external-link-foreground: rgb(179, 179, 255)
|
||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: rgb(153, 153, 255)
|
external-link-foreground-visited: rgb(153, 153, 255)
|
||||||
|
footnote-target-background: <<colour tag-foreground>>
|
||||||
foreground: rgb(179, 179, 179)
|
foreground: rgb(179, 179, 179)
|
||||||
highlight-background: #ffff78
|
highlight-background: #ffff78
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
@ -41,6 +41,7 @@ external-link-background: inherit
|
|||||||
external-link-foreground-hover: inherit
|
external-link-foreground-hover: inherit
|
||||||
external-link-foreground-visited: #0000aa
|
external-link-foreground-visited: #0000aa
|
||||||
external-link-foreground: #0000ee
|
external-link-foreground: #0000ee
|
||||||
|
footnote-target-background: #ecf2ff
|
||||||
foreground: #333333
|
foreground: #333333
|
||||||
highlight-background: #ffff00
|
highlight-background: #ffff00
|
||||||
highlight-foreground: #000000
|
highlight-foreground: #000000
|
||||||
|
38
core/templates/social-metadata.tid
Normal file
38
core/templates/social-metadata.tid
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
title: $:/core/templates/social-metadata
|
||||||
|
tags: $:/tags/RawMarkupWikified
|
||||||
|
|
||||||
|
\procedure meta-plain(name,source,name-attribute:"name")
|
||||||
|
\whitespace trim
|
||||||
|
<%if [<source>has[text]] %>
|
||||||
|
<meta <$text text=<<name-attribute>>/>="<$text text=<<name>>/>" content="<$text text={{{ [<source>get[text]encodehtml[]] }}}/>">
|
||||||
|
<$text text={{{ [charcode[10]] }}}/>
|
||||||
|
<%endif%>
|
||||||
|
\end meta-plain
|
||||||
|
|
||||||
|
\procedure meta-wikified(name,source,name-attribute:"name")
|
||||||
|
\whitespace trim
|
||||||
|
<%if [<source>has[text]] %>
|
||||||
|
<$wikify name="html" text={{{ [<source>get[text]] }}} output="text">
|
||||||
|
<meta <$text text=<<name-attribute>>/>="<$text text=<<name>>/>" content="<$text text={{{ [<html>encodehtml[]] }}}/>">
|
||||||
|
<$text text={{{ [charcode[10]] }}}/>
|
||||||
|
</$wikify>
|
||||||
|
<%endif%>
|
||||||
|
\end meta-wikified
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock conditional commentinline commentblock
|
||||||
|
<<meta-wikified "description" "$:/SiteSubtitle">>
|
||||||
|
|
||||||
|
<!-- Facebook Meta Tags -->
|
||||||
|
<<meta-plain "og:url" "$:/SiteUrl" "property">>
|
||||||
|
<<meta-plain "og:type" "website" "property">>
|
||||||
|
<<meta-wikified "og:title" "$:/SiteTitle" "property">>
|
||||||
|
<<meta-wikified "og:description" "$:/SiteSubtitle" "property">>
|
||||||
|
<<meta-plain "og:image" "$:/SitePreviewImageUrl" "property">>
|
||||||
|
|
||||||
|
<!-- Twitter Meta Tags -->
|
||||||
|
<<meta-plain "twitter:card" "summary_large_image">>
|
||||||
|
<<meta-plain "twitter:domain" "$:/SiteDomain" "property">>
|
||||||
|
<<meta-plain "twitter:url" "$:/SiteUrl" "property">>
|
||||||
|
<<meta-wikified "twitter:title" "$:/SiteTitle">>
|
||||||
|
<<meta-wikified "twitter:description" "$:/SiteSubtitle">>
|
||||||
|
<<meta-plain "twitter:image" "$:/SitePreviewImageUrl">>
|
22
core/ui/ControlPanel/SocialCard.tid
Normal file
22
core/ui/ControlPanel/SocialCard.tid
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/SocialCard
|
||||||
|
tags: $:/tags/ControlPanel/Advanced
|
||||||
|
caption: {{$:/language/ControlPanel/SocialCard/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/
|
||||||
|
|
||||||
|
<<lingo SocialCard/Hint>>
|
||||||
|
|
||||||
|
|<$link to="$:/SiteTitle"><<lingo Basics/Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
|
||||||
|
|<$link to="$:/SiteSubtitle"><<lingo Basics/Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
|
||||||
|
|<$link to="$:/SiteDomain"><<lingo SocialCard/Domain/Prompt>></$link> |<$edit-text tiddler="$:/SiteDomain" default="" tag="input"/> |
|
||||||
|
|<$link to="$:/SiteUrl"><<lingo SocialCard/Url/Prompt>></$link> |<$edit-text tiddler="$:/SiteUrl" default="" tag="input"/> |
|
||||||
|
|<$link to="$:/SitePreviewUrl"><<lingo SocialCard/PreviewUrl/Prompt>></$link> |<$edit-text tiddler="$:/SitePreviewUrl" default="" tag="input"/> |
|
||||||
|
|
||||||
|
<%if [[$:/SitePreviewUrl]get[text]else[]!is[blank]] %>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<<lingo SocialCard/PreviewUrl/Preview>>
|
||||||
|
</div>
|
||||||
|
<img src={{$:/SitePreviewUrl}}/>
|
||||||
|
</div>
|
||||||
|
<%endif%>
|
@ -2,91 +2,141 @@ title: $:/core/ui/testcases/DefaultTemplate
|
|||||||
code-body: yes
|
code-body: yes
|
||||||
|
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
|
|
||||||
|
\function tf.state() [<qualify "$:/state/testcase">]
|
||||||
|
|
||||||
\procedure linkcatcherActions()
|
\procedure linkcatcherActions()
|
||||||
<%if [<navigateTo>has[title]] %>
|
<%if [<navigateTo>has[title]] %>
|
||||||
<$qualify title=<<state>> name="qualifiedState">
|
<$action-setfield $tiddler=<<tf.state>> text=<<navigateTo>>/>
|
||||||
<$action-setfield $tiddler=<<qualifiedState>> text=<<navigateTo>>/>
|
|
||||||
</$qualify>
|
|
||||||
<%endif%>
|
<%endif%>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<$let
|
\procedure testcase-header()
|
||||||
state={{{ [<qualify "$:/state/testcase">] }}}
|
<div class="tc-test-case-header">
|
||||||
>
|
<h2>
|
||||||
<div class="tc-test-case-wrapper">
|
<$genesis $type={{{ [<linkTarget>!match[]then[$link]else[span]] }}} to=<<testcaseTiddler>>>
|
||||||
<div class="tc-test-case-header">
|
<%if [<testResult>!match[]] %>
|
||||||
<h2>
|
<span class={{{ tc-test-case-result-icon
|
||||||
<$genesis $type={{{ [<linkTarget>!match[]then[$link]else[span]] }}} to=<<testcaseTiddler>>>
|
[<testResult>!match[fail]then[tc-test-case-result-icon-pass]]
|
||||||
<%if [<testResult>!match[]] %>
|
[<testResult>match[fail]then[tc-test-case-result-icon-fail]]
|
||||||
<span class={{{ tc-test-case-result-icon [<testResult>!match[fail]then[tc-test-case-result-icon-pass]] [<testResult>match[fail]then[tc-test-case-result-icon-fail]] +[join[ ]] }}}>
|
+[join[ ]] }}}
|
||||||
<%if [<testResult>!match[fail]] %>
|
>
|
||||||
{{$:/core/images/done-button}}
|
<%if [<testResult>!match[fail]] %>
|
||||||
<%else%>
|
{{$:/core/images/done-button}}
|
||||||
{{$:/core/images/close-button}}
|
<%else%>
|
||||||
<%endif%>
|
{{$:/core/images/close-button}}
|
||||||
</span>
|
|
||||||
<%endif%>
|
<%endif%>
|
||||||
<$view tiddler="Description" mode="inline"/>
|
|
||||||
</$genesis>
|
|
||||||
<span class="tc-test-case-toolbar">
|
|
||||||
<$button popup=`$(state)$-more`
|
|
||||||
tooltip={{$:/language/Buttons/More/Hint}}
|
|
||||||
aria-label={{$:/language/Buttons/More/Caption}}
|
|
||||||
class="tc-btn-invisible"
|
|
||||||
selectedClass="tc-selected"
|
|
||||||
>
|
|
||||||
{{$:/core/images/down-arrow}}
|
|
||||||
</$button>
|
|
||||||
<$let
|
|
||||||
tv-config-toolbar-icons="yes"
|
|
||||||
tv-config-toolbar-text="yes"
|
|
||||||
tv-config-toolbar-class="tc-btn-invisible"
|
|
||||||
>
|
|
||||||
<$reveal state=`$(state)$-more` type="popup" position="belowleft" animate="yes">
|
|
||||||
<div class="tc-drop-down">
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TestCase/Actions]!has[draft.of]]"
|
|
||||||
variable="listItem"
|
|
||||||
>
|
|
||||||
<$transclude $tiddler=<<listItem>> $mode="inline"/>
|
|
||||||
</$list>
|
|
||||||
</div>
|
|
||||||
</$reveal>
|
|
||||||
</$let>
|
|
||||||
</span>
|
</span>
|
||||||
</h2>
|
<%endif%>
|
||||||
|
<$view tiddler="Description" mode="inline"/>
|
||||||
|
</$genesis>
|
||||||
|
<span class="tc-test-case-toolbar">
|
||||||
|
<<testcase-toolbar>>
|
||||||
|
</span>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-toolbar()
|
||||||
|
<$button popup=`$(tf.state)$-more`
|
||||||
|
tooltip={{$:/language/Buttons/More/Hint}}
|
||||||
|
aria-label={{$:/language/Buttons/More/Caption}}
|
||||||
|
class="tc-btn-invisible"
|
||||||
|
selectedClass="tc-selected"
|
||||||
|
>
|
||||||
|
{{$:/core/images/down-arrow}}
|
||||||
|
</$button>
|
||||||
|
<$let
|
||||||
|
tv-config-toolbar-icons="yes"
|
||||||
|
tv-config-toolbar-text="yes"
|
||||||
|
tv-config-toolbar-class="tc-btn-invisible"
|
||||||
|
>
|
||||||
|
<$reveal state=`$(tf.state)$-more` type="popup" position="belowleft" animate="yes">
|
||||||
|
<div class="tc-drop-down">
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TestCase/Actions]!has[draft.of]]"
|
||||||
|
variable="listItem"
|
||||||
|
>
|
||||||
|
<$transclude $tiddler=<<listItem>> $mode="inline"/>
|
||||||
|
</$list>
|
||||||
</div>
|
</div>
|
||||||
<%if [[Narrative]is[tiddler]] %>
|
</$reveal>
|
||||||
<div class="tc-test-case-narrative">
|
|
||||||
<$transclude $tiddler="Narrative" $mode="block"/>
|
|
||||||
</div>
|
|
||||||
<%endif%>
|
|
||||||
<%if [<testResult>match[fail]] %>
|
|
||||||
<div class="tc-test-case-result-fail">
|
|
||||||
<div class="tc-test-case-result-fail-header">
|
|
||||||
TEST FAILED
|
|
||||||
</div>
|
|
||||||
<div class="tc-test-case-result-fail-body">
|
|
||||||
<$diff-text source=<<expectedHTML>> dest=<<outputHTML>>/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<%endif%>
|
|
||||||
<div class="tc-test-case-panes">
|
|
||||||
<div class="tc-test-case-source">
|
|
||||||
<$macrocall $name="tabs" tabsList="[all[tiddlers]sort[]] -[prefix<state>] -Description -Narrative -Output Output +[putfirst[]] -[has[plugin-type]]" state=<<state>> default="Output" template="$:/core/ui/testcases/DefaultTemplate/SourceTabs"/>
|
|
||||||
</div>
|
|
||||||
<div class="tc-test-case-divider">
|
|
||||||
</div>
|
|
||||||
<div class="tc-test-case-output">
|
|
||||||
<%if [<displayFormat>!match[]else[wikitext]match[plaintext]] %>
|
|
||||||
<pre><$view tiddler="Output" format="plainwikified" mode="block"/></pre>
|
|
||||||
<%else%>
|
|
||||||
<$linkcatcher actions=<<linkcatcherActions>>>
|
|
||||||
<$tiddler tiddler="Output">
|
|
||||||
<$transclude $tiddler="Output" $mode="block"/>
|
|
||||||
</$tiddler>
|
|
||||||
</$linkcatcher>
|
|
||||||
<%endif%>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</$let>
|
</$let>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-narrative()
|
||||||
|
<div class="tc-test-case-narrative">
|
||||||
|
<$transclude $tiddler="Narrative" $mode="block"/>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-fail()
|
||||||
|
<div class="tc-test-case-result-fail">
|
||||||
|
<div class="tc-test-case-result-fail-header">
|
||||||
|
TEST FAILED
|
||||||
|
</div>
|
||||||
|
<div class="tc-test-case-result-fail-body">
|
||||||
|
<$diff-text source=<<expectedHTML>> dest=<<outputHTML>>/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-output-wikified()
|
||||||
|
<$linkcatcher actions=<<linkcatcherActions>>>
|
||||||
|
<$tiddler tiddler="Output">
|
||||||
|
<$transclude $tiddler="Output" $mode="block"/>
|
||||||
|
</$tiddler>
|
||||||
|
</$linkcatcher>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-output()
|
||||||
|
<div class="tc-test-case-output">
|
||||||
|
<%if [<displayFormat>!match[]else[wikitext]match[plaintext]] %>
|
||||||
|
<pre><$view tiddler="Output" format="plainwikified" mode="block"/></pre>
|
||||||
|
<%else%>
|
||||||
|
<<testcase-output-wikified>>
|
||||||
|
<%endif%>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-tabsList()
|
||||||
|
[all[tiddlers]sort[]] Output +[putfirst[]]
|
||||||
|
-Description
|
||||||
|
-Narrative
|
||||||
|
-[has[plugin-type]]
|
||||||
|
-[prefix<tf.state>]
|
||||||
|
-[prefix[$:/state/popup/export]]
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-source()
|
||||||
|
<div class="tc-test-case-source">
|
||||||
|
<$macrocall $name="tabs"
|
||||||
|
tabsList=<<testcase-tabsList>>
|
||||||
|
explicitState=<<tf.state>>
|
||||||
|
default="Output"
|
||||||
|
template="$:/core/ui/testcases/DefaultTemplate/SourceTabs"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-panes()
|
||||||
|
<div class="tc-test-case-panes">
|
||||||
|
<<testcase-source>>
|
||||||
|
<div class="tc-test-case-divider"></div>
|
||||||
|
<<testcase-output>>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\procedure testcase-body()
|
||||||
|
<div class="tc-test-case-wrapper">
|
||||||
|
<<testcase-header>>
|
||||||
|
<%if [[Narrative]is[tiddler]] %>
|
||||||
|
<<testcase-narrative>>
|
||||||
|
<%endif%>
|
||||||
|
<%if [<testResult>match[fail]] %>
|
||||||
|
<<testcase-fail>>
|
||||||
|
<%endif%>
|
||||||
|
<<testcase-panes>>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
<<testcase-body>>
|
@ -1,4 +1,4 @@
|
|||||||
title: $:/core/ui/testcases/actions/Export
|
title: $:/core/ui/testcases/actions/Export
|
||||||
tags: $:/tags/TestCase/Actions
|
tags: $:/tags/TestCase/Actions
|
||||||
|
|
||||||
<$macrocall $name="exportButton" exportFilter="[all[tiddlers]sort[]] -[prefix[$:/state/]] -Description -Narrative -ExpectedResult -Output Output +[putfirst[]] -[has[plugin-type]]" lingoBase="$:/language/Buttons/ExportTiddlers/"/>
|
<$macrocall $name="exportButton" exportFilter="[all[tiddlers]sort[]] -[prefix[$:/state/]] -Description -Narrative -ExpectedResult -[has[plugin-type]]" lingoBase="$:/language/Buttons/ExportTiddlers/"/>
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/tags/ViewTemplateBodyFilter
|
title: $:/tags/ViewTemplateBodyFilter
|
||||||
list: $:/config/ViewTemplateBodyFilters/testcase $:/config/ViewTemplateBodyFilters/hide-body $:/config/ViewTemplateBodyFilters/code-body $:/config/ViewTemplateBodyFilters/stylesheet $:/config/ViewTemplateBodyFilters/core-ui-advanced-search $:/config/ViewTemplateBodyFilters/core-ui-tags $:/config/ViewTemplateBodyFilters/system $:/config/ViewTemplateBodyFilters/import $:/config/ViewTemplateBodyFilters/plugin $:/config/ViewTemplateBodyFilters/default
|
list: $:/config/ViewTemplateBodyFilters/testcase $:/config/ViewTemplateBodyFilters/hide-body $:/config/ViewTemplateBodyFilters/code-body $:/config/ViewTemplateBodyFilters/stylesheet $:/config/ViewTemplateBodyFilters/core-ui-advanced-search $:/config/ViewTemplateBodyFilters/core-ui-tags $:/config/ViewTemplateBodyFilters/import $:/config/ViewTemplateBodyFilters/plugin $:/config/ViewTemplateBodyFilters/system $:/config/ViewTemplateBodyFilters/default
|
||||||
|
@ -324,6 +324,100 @@ describe("WikiText parser tests", function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should parse tables", function() {
|
||||||
|
let wikitext = `
|
||||||
|
|!Cell1 |!Cell2 |
|
||||||
|
|Cell3 |Cell4 |`.trim();
|
||||||
|
|
||||||
|
let expectedParseTree = [{
|
||||||
|
type: 'element',
|
||||||
|
tag: 'table',
|
||||||
|
start: 0,
|
||||||
|
end: 33,
|
||||||
|
rule: 'table',
|
||||||
|
children: [{
|
||||||
|
type: 'element',
|
||||||
|
tag: 'tbody',
|
||||||
|
start: 0,
|
||||||
|
end: 33,
|
||||||
|
children: [{
|
||||||
|
type: 'element',
|
||||||
|
tag: 'tr',
|
||||||
|
attributes: {
|
||||||
|
'class': { name: 'class', type: 'string', value: 'evenRow' },
|
||||||
|
},
|
||||||
|
orderedAttributes: [
|
||||||
|
{ name: 'class', type: 'string', value: 'evenRow' },
|
||||||
|
],
|
||||||
|
start: 0,
|
||||||
|
end: 18,
|
||||||
|
children: [{
|
||||||
|
type: 'element',
|
||||||
|
tag: 'th',
|
||||||
|
attributes: {
|
||||||
|
'align': { name: 'align', type: 'string', value: 'left' },
|
||||||
|
},
|
||||||
|
orderedAttributes: [
|
||||||
|
{ name: 'align', type: 'string', value: 'left' },
|
||||||
|
],
|
||||||
|
start: 1,
|
||||||
|
end: 8,
|
||||||
|
children: [{type: 'text', text: 'Cell1', start: 2, end: 7}],
|
||||||
|
}, {
|
||||||
|
type: 'element',
|
||||||
|
tag: 'th',
|
||||||
|
attributes: {
|
||||||
|
'align': { name: 'align', type: 'string', value: 'left' },
|
||||||
|
},
|
||||||
|
orderedAttributes: [
|
||||||
|
{ name: 'align', type: 'string', value: 'left' },
|
||||||
|
],
|
||||||
|
start: 9,
|
||||||
|
end: 16,
|
||||||
|
children: [{type: 'text', text: 'Cell2', start: 10, end: 15}],
|
||||||
|
}],
|
||||||
|
}, {
|
||||||
|
type: 'element',
|
||||||
|
tag: 'tr',
|
||||||
|
attributes: {
|
||||||
|
'class': { name: 'class', type: 'string', value: 'oddRow' },
|
||||||
|
},
|
||||||
|
orderedAttributes: [
|
||||||
|
{ name: 'class', type: 'string', value: 'oddRow' },
|
||||||
|
],
|
||||||
|
start: 18,
|
||||||
|
end: 33,
|
||||||
|
children: [{
|
||||||
|
type: 'element',
|
||||||
|
tag: 'td',
|
||||||
|
attributes: {
|
||||||
|
'align': { name: 'align', type: 'string', value: 'left' },
|
||||||
|
},
|
||||||
|
orderedAttributes: [
|
||||||
|
{ name: 'align', type: 'string', value: 'left' },
|
||||||
|
],
|
||||||
|
start: 19,
|
||||||
|
end: 25,
|
||||||
|
children: [{type: 'text', text: 'Cell3', start: 19, end: 24}],
|
||||||
|
}, {
|
||||||
|
type: 'element',
|
||||||
|
tag: 'td',
|
||||||
|
attributes: {
|
||||||
|
'align': { name: 'align', type: 'string', value: 'left' },
|
||||||
|
},
|
||||||
|
orderedAttributes: [
|
||||||
|
{ name: 'align', type: 'string', value: 'left' },
|
||||||
|
],
|
||||||
|
start: 26,
|
||||||
|
end: 32,
|
||||||
|
children: [{type: 'text', text: 'Cell4', start: 26, end: 31}],
|
||||||
|
}],
|
||||||
|
}],
|
||||||
|
}],
|
||||||
|
}];
|
||||||
|
|
||||||
|
expect(parse(wikitext)).toEqual(expectedParseTree);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
"--setfield","[tag[external-image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
|
"--setfield","[tag[external-image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
|
||||||
"--setfield","[tag[external-image]]","text","","text/plain",
|
"--setfield","[tag[external-image]]","text","","text/plain",
|
||||||
"--render","$:/core/save/all","index.html","text/plain"],
|
"--render","$:/core/save/all","index.html","text/plain"],
|
||||||
|
"readmes": [
|
||||||
|
"--render","[[Code of Conduct]]","code-of-conduct.md","text/html"],
|
||||||
"favicon": [
|
"favicon": [
|
||||||
"--savetiddler","$:/favicon.ico","favicon.ico"],
|
"--savetiddler","$:/favicon.ico","favicon.ico"],
|
||||||
"static": [
|
"static": [
|
||||||
|
@ -4,6 +4,6 @@ tags: Definitions
|
|||||||
title: Intertwingled Innovations
|
title: Intertwingled Innovations
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
Intertwingled Innovations Limited is the company through which [[JeremyRuston]] performs commercial consultancy work helping companies and individuals release the businesss value of TiddlyWiki.
|
Intertwingled Innovations Limited is the company through which [[JeremyRuston]] performs commercial consultancy work helping companies and individuals release the business value of TiddlyWiki.
|
||||||
|
|
||||||
See https://intertwingledinnovations.com/ for more information.
|
See https://intertwingledinnovations.com/ for more information.
|
||||||
|
@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
|
|||||||
|
|
||||||
By default, a [[TiddlyWiki on Node.js]] instance using a [[wiki folder|TiddlyWikiFolders]] will create new tiddler files by using the sanitised and disambiguated title as filename. All filepath operations are relative to a `default-tiddler-location` which defaults to the wiki folder's `tiddlers/` directory. This can be overridden by mapping a path in the wiki's tiddlywiki.info file, by using a `default-tiddler-location` property in the `config` object.
|
By default, a [[TiddlyWiki on Node.js]] instance using a [[wiki folder|TiddlyWikiFolders]] will create new tiddler files by using the sanitised and disambiguated title as filename. All filepath operations are relative to a `default-tiddler-location` which defaults to the wiki folder's `tiddlers/` directory. This can be overridden by mapping a path in the wiki's tiddlywiki.info file, by using a `default-tiddler-location` property in the `config` object.
|
||||||
|
|
||||||
The default file extension of `.tid` is used for tiddlers that are missing the `type` field, or for tiddlers of type "text/vnd.tiddlywiki". Tidders of other types are saved according to their MIME types (defined at boot startup).
|
The default file extension of `.tid` is used for tiddlers that are missing the `type` field, or for tiddlers of type "text/vnd.tiddlywiki". Tiddlers of other types are saved according to their MIME types (defined at boot startup).
|
||||||
|
|
||||||
Both the logical path (directory and file name) and the file extension can be customised independently by creating optional tiddlers [[$:/config/FileSystemPaths]] and [[$:/config/FileSystemExtensions]].
|
Both the logical path (directory and file name) and the file extension can be customised independently by creating optional tiddlers [[$:/config/FileSystemPaths]] and [[$:/config/FileSystemExtensions]].
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ Logical paths do not include the file-on-disk's extension (see below), and they
|
|||||||
|
|
||||||
<<.note "All paths are relative to the wiki's `default-tiddler-location`.">>
|
<<.note "All paths are relative to the wiki's `default-tiddler-location`.">>
|
||||||
|
|
||||||
This will store newly created system tiddlers that are not drafts of other tiddlers in `./_system/` (after stripping the `$:/` prefix). Next, all drafts have the path separator characters in their titles replaced by "_" and are stored in `./drafts/`. Then tiddlers tagged [[task]] are stored in a subdirectory `./mytasks/`. Finally, all tidders not tagged with "externalnote" will match the final `[!tag[externalnote]addprefix[wiki/]]` storing these in `./wiki/`. In this example, tiddlers tagged with "externalnote" have been imported using [[tiddlywiki.files Files]] with an "isEditableFile" flag set to true, causing the server to remember their original file path in the $:/config/OriginalTiddlerPaths tiddler.
|
This will store newly created system tiddlers that are not drafts of other tiddlers in `./_system/` (after stripping the `$:/` prefix). Next, all drafts have the path separator characters in their titles replaced by "_" and are stored in `./drafts/`. Then tiddlers tagged [[task]] are stored in a subdirectory `./mytasks/`. Finally, all tiddlers not tagged with "externalnote" will match the final `[!tag[externalnote]addprefix[wiki/]]` storing these in `./wiki/`. In this example, tiddlers tagged with "externalnote" have been imported using [[tiddlywiki.files Files]] with an "isEditableFile" flag set to true, causing the server to remember their original file path in the $:/config/OriginalTiddlerPaths tiddler.
|
||||||
|
|
||||||
Whenever a tiddler generates a $:/config/FileSystemPaths filter match, any `/` or `\` in the tiddler title is mapped to a path separator. With the above filters, the non-system, non-draft tiddler titled `some/thing/entirely/new` (with no tags) will be saved to `./wiki/some/thing/entirely/new.tid` (ie, the file `new.tid` in a directory called `entirely/`). Thus, $:/config/FileSystemPaths itself will end up in `./_system/config/FileSystemPaths.tid` or `.\_system\config\FileSystemPaths.tid`, depending on the platform.
|
Whenever a tiddler generates a $:/config/FileSystemPaths filter match, any `/` or `\` in the tiddler title is mapped to a path separator. With the above filters, the non-system, non-draft tiddler titled `some/thing/entirely/new` (with no tags) will be saved to `./wiki/some/thing/entirely/new.tid` (ie, the file `new.tid` in a directory called `entirely/`). Thus, $:/config/FileSystemPaths itself will end up in `./_system/config/FileSystemPaths.tid` or `.\_system\config\FileSystemPaths.tid`, depending on the platform.
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Normally, the file system extension of a tiddler on disk is determined by the pr
|
|||||||
|
|
||||||
If the tiddler does not have such field values, then the `type` field is referenced to find a matching file-type, with `.tid` used for tiddlers without a type value. The boot engine defines a set of these tiddler-type to file-type relationships in the [[$:/boot/boot.js]] tiddler. Search for `// Add file extension information` to find the section of code that defines these relationships.
|
If the tiddler does not have such field values, then the `type` field is referenced to find a matching file-type, with `.tid` used for tiddlers without a type value. The boot engine defines a set of these tiddler-type to file-type relationships in the [[$:/boot/boot.js]] tiddler. Search for `// Add file extension information` to find the section of code that defines these relationships.
|
||||||
|
|
||||||
The file extension of individual tidders can be customised by creating a tiddler [[$:/config/FileSystemExtensions]] containing one or more [[filter expressions|Filter Syntax]], each on a line of its own. Every time a tiddler is saved to disk it is tested against these filters, and the first output of the first filter to produce any output is taken as the file extension to be used for the tiddler file. Extensions should always start with a leading dot (see example). If no filter matches, the default extension is used. If the extension has changed a new file is created and the old file is deleted.
|
The file extension of individual tiddlers can be customised by creating a tiddler [[$:/config/FileSystemExtensions]] containing one or more [[filter expressions|Filter Syntax]], each on a line of its own. Every time a tiddler is saved to disk it is tested against these filters, and the first output of the first filter to produce any output is taken as the file extension to be used for the tiddler file. Extensions should always start with a leading dot (see example). If no filter matches, the default extension is used. If the extension has changed a new file is created and the old file is deleted.
|
||||||
|
|
||||||
<<.note """A result of ".tid" will force the tiddler to be written to disk as a single-file text tiddler. A result of ".json" will force the tiddler to be written to disk as a single file tiddler in json-format (a single tiddler fields object in an array), NOT as a tiddler of type "application/json". All other recognised file-types will be saved using their defined extension along with an accompanying *.meta file of the same name which describes all fields but the "text" field.""">>
|
<<.note """A result of ".tid" will force the tiddler to be written to disk as a single-file text tiddler. A result of ".json" will force the tiddler to be written to disk as a single file tiddler in json-format (a single tiddler fields object in an array), NOT as a tiddler of type "application/json". All other recognised file-types will be saved using their defined extension along with an accompanying *.meta file of the same name which describes all fields but the "text" field.""">>
|
||||||
|
|
||||||
@ -51,6 +51,6 @@ The file extension of individual tidders can be customised by creating a tiddler
|
|||||||
[tag[.tid]then[.tid]]
|
[tag[.tid]then[.tid]]
|
||||||
```
|
```
|
||||||
|
|
||||||
This will cause all tidders that have the tag ".txt" to be saved at the filepath determined by the File System Paths filters, but with their text field saved as a *.txt file, and all other fields saved as a *.txt.meta file.
|
This will cause all tiddlers that have the tag ".txt" to be saved at the filepath determined by the File System Paths filters, but with their text field saved as a *.txt file, and all other fields saved as a *.txt.meta file.
|
||||||
|
|
||||||
Next, all tiddlers that have the ".json" tag are saved as *.json files. Finally, all tiddlers that have tag ".tid" are saved as single files. If a tiddler matches none of the filters, the default extension determined by the tiddlers `type` field would be used.
|
Next, all tiddlers that have the ".json" tag are saved as *.json files. Finally, all tiddlers that have tag ".tid" are saved as single files. If a tiddler matches none of the filters, the default extension determined by the tiddlers `type` field would be used.
|
@ -6,6 +6,8 @@ type: text/vnd.tiddlywiki
|
|||||||
|
|
||||||
New releases of TiddlyWiki and TiddlyDesktop are announced via the [[official discussion groups|Forums]] and [[Twitter|https://twitter.com/TiddlyWiki]]
|
New releases of TiddlyWiki and TiddlyDesktop are announced via the [[official discussion groups|Forums]] and [[Twitter|https://twitter.com/TiddlyWiki]]
|
||||||
|
|
||||||
|
The prerelease of the next version of TiddlyWiki can be found at https://tiddlywiki.com/prerelease for testing and review purposes.
|
||||||
|
|
||||||
See the [[TiddlyWiki Archive]] to download older versions.
|
See the [[TiddlyWiki Archive]] to download older versions.
|
||||||
|
|
||||||
<<tabs "[[TiddlyWiki Releases]] [[TiddlyDesktop Releases]]" "TiddlyWiki Releases" "$:/state/tab">>
|
<<tabs "[[TiddlyWiki Releases]] [[TiddlyDesktop Releases]]" "TiddlyWiki Releases" "$:/state/tab">>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
caption: link
|
caption: link
|
||||||
created: 20131024141900000
|
created: 20131024141900000
|
||||||
modified: 20231113093304323
|
modified: 20240730065043721
|
||||||
tags: Widgets
|
tags: Widgets
|
||||||
title: LinkWidget
|
title: LinkWidget
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -69,11 +69,13 @@ This causes the tooltip to be the ''tooltip'' field of the target tiddler. If th
|
|||||||
|
|
||||||
The link widget automatically determines and applies the following classes to links:
|
The link widget automatically determines and applies the following classes to links:
|
||||||
|
|
||||||
* `tc-tiddlylink` - applied to all links
|
* `tc-tiddlylink` - applied to ''all'' links
|
||||||
* `tc-tiddlylink-external` - applied to external, non-tiddler links
|
* `tc-tiddlylink-external` - applied to external, non-tiddler links
|
||||||
* `tc-tiddlylink-internal` - applied to tiddler links
|
* `tc-tiddlylink-internal` - applied to tiddler links
|
||||||
* `tc-tiddlylink-missing` - applied to tiddler links where the target tiddler doesn't exist
|
* `tc-tiddlylink-missing` - applied to tiddler links where the target tiddler doesn't exist
|
||||||
* `tc-tiddlylink-resolves` - applied to tiddler links when the target tiddler does exist
|
* `tc-tiddlylink-resolves` - applied to tiddler links when the target tiddler does exist
|
||||||
|
* `tc-tiddlylink-shadow` - applied to tiddler links when the target is a shadow tiddler
|
||||||
|
** `tc-tiddlylink-shadow tc-tiddlylink-resolves` - applied to ''overwritten'' shadow tiddlers
|
||||||
|
|
||||||
Use the `class` attribute to specify additional css classes, or `overrideClass` to apply only that but not the above defaults, e.g. when used in a LinkCatcherWidget:
|
Use the `class` attribute to specify additional css classes, or `overrideClass` to apply only that but not the above defaults, e.g. when used in a LinkCatcherWidget:
|
||||||
|
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
{
|
{
|
||||||
"description": "Documentation from https://tiddlywiki.com",
|
"description": "Documentation from https://tiddlywiki.com",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"tiddlywiki/nodewebkitsaver",
|
|
||||||
"tiddlywiki/browser-sniff",
|
"tiddlywiki/browser-sniff",
|
||||||
"tiddlywiki/railroad",
|
"tiddlywiki/railroad",
|
||||||
"tiddlywiki/evernote",
|
|
||||||
"tiddlywiki/internals",
|
"tiddlywiki/internals",
|
||||||
"tiddlywiki/menubar",
|
"tiddlywiki/menubar",
|
||||||
"tiddlywiki/confetti",
|
"tiddlywiki/confetti",
|
||||||
"tiddlywiki/dynannotate",
|
"tiddlywiki/dynannotate",
|
||||||
"tiddlywiki/tour",
|
"tiddlywiki/tour"
|
||||||
"tiddlywiki/qrcode"
|
|
||||||
],
|
],
|
||||||
"themes": [
|
"themes": [
|
||||||
"tiddlywiki/vanilla",
|
"tiddlywiki/vanilla",
|
||||||
|
@ -36,7 +36,7 @@ code-body: yes
|
|||||||
margin-left: 0.25em;
|
margin-left: 0.25em;
|
||||||
}
|
}
|
||||||
.markdown a.footnote-ref:target, .markdown .footnote-item:target {
|
.markdown a.footnote-ref:target, .markdown .footnote-item:target {
|
||||||
background-color: <<colour message-background>>;
|
background-color: <<colour footnote-target-background>>;
|
||||||
scroll-margin-top: {{{ [{$:/themes/tiddlywiki/vanilla/options/stickytitles}match[yes]then[120px]else[60px]] }}};
|
scroll-margin-top: {{{ [{$:/themes/tiddlywiki/vanilla/options/stickytitles}match[yes]then[120px]else[60px]] }}};
|
||||||
}
|
}
|
||||||
.markdown li > p:first-child {
|
.markdown li > p:first-child {
|
||||||
|
Loading…
Reference in New Issue
Block a user