1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 13:54:50 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/concepts/TiddlyWikiFolders.tid

40 lines
2.0 KiB
Plaintext
Raw Normal View History

2013-11-29 12:26:48 +00:00
created: 20130825214200000
modified: 20161015134454785
2014-09-12 15:05:37 +00:00
tags: [[TiddlyWiki on Node.js]]
2013-04-17 15:38:32 +00:00
title: TiddlyWikiFolders
2013-11-29 12:26:48 +00:00
type: text/vnd.tiddlywiki
2013-04-17 15:38:32 +00:00
2013-12-12 09:48:08 +00:00
As well as traditional single file wikis, [[TiddlyWiki on Node.js]] supports wikis that are stored as a folder of individual tiddler files.
2013-04-17 15:38:32 +00:00
! Wiki Folder Structure
2013-04-17 15:38:32 +00:00
Wiki folders can contain the following files and folders:
* ''tiddlywiki.info'' - JSON file containing metadata for the wiki -- see [[tiddlywiki.info Files]]
2013-04-17 15:38:32 +00:00
* ''\tiddlers'' - folder containing tiddler files comprising the wiki
* ''\plugins'' - folder containing [[plugin folders|PluginFolders]] to be included in the wiki
* ''\languages'' - folder containing [[plugin folders|PluginFolders]] for language plugins to be included in the wiki
* ''\themes'' - folder containing [[plugin folders|PluginFolders]] for theme plugins to be included in the wiki
2013-04-17 15:38:32 +00:00
Only the ''tiddlywiki.info'' file is required; everything else is optional. Any files and folders not listed above are ignored.
2013-04-17 15:38:32 +00:00
!! Plugin processing
2013-04-17 15:38:32 +00:00
To be usable in the browser, plugins just need to be included in the wiki. For wikis that are generated on the server, TiddlyWikiFolders can contain a [[tiddlywiki.info file|tiddlywiki.info Files]] that identifies the plugins to be included in this wiki:
2013-04-17 15:38:32 +00:00
```
{
"plugins": [
"tiddlywiki/slider",
"tiddlytools/chooser"
]
2013-08-30 19:06:23 +00:00
}
```
Plugins names refer to plugin folders listed in TiddlyWiki5's root `plugins` folder. Plugins can also be included manually by copying them into the `plugins` subfolder of the wiki.
2013-08-30 19:06:23 +00:00
!! Processing of `tiddlers` folder
All the TiddlerFiles in the `tiddlers` folder are read into the wiki at startup. Sub-folders are scanned recursively for TiddlerFiles. Newly created tiddlers are stored in TiddlerFiles directly beneath the `tiddlers` folder, unless [[configured otherwise|Customising Tiddler File Naming]].
The default processing for sub-folders within the `tiddlers` folder can be overridden by providing a JSON file called `tiddlywiki.files` -- see [[tiddlywiki.files Files]].