1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 11:29:58 +00:00
Commit Graph

37 Commits

Author SHA1 Message Date
Jermolene
3708f6c8e4 Major refactoring of filesystemadaptor
The code here had got a bit broken by some PRs that I should have
checked more carefully. I’ve done a major refactoring which will
hopefully make it easier to understand, and fixes a number of problems:

* Problem with eg .md tiddlers not being deleted correctly
* Problem with Windows path separators not being usable within
$:/config/FileSystemPaths on Windows
* Problem with filename clashes not being detected correctly when
saving to a different directory via $:/config/FileSystemPaths
* Enables slashes within tiddler titles to be mapped into folders
* Enables plain text files like .md and .css to be saved with .meta
files instead of as .tid files (see #2558)
* No longer replaces spaces with underscores

As this is such a major update, I’d be grateful if Node.js users could
give it a careful run through — in particular, you’ll need to try
creating new tiddlers of various types and ensure that the expected
files are created.
2017-02-11 12:56:42 +00:00
Jermolene
36c0af0fd4 Docs: Fix typo in example filter 2017-02-11 12:47:56 +00:00
Marxsal
a393705cef Clarifying Tiddlywiki node.js launch instructions. (#2662) 2016-12-16 17:39:20 +00:00
Jermolene
ad9769451d Add filename-uri-decoded support for tiddlywiki.files 2016-12-15 17:13:32 +00:00
Jermolene
b8cbc07c54 Add support for uri decoded components in tiddlywiki.files files 2016-11-14 15:14:25 +00:00
Jermolene
537cfcbf79 Addendum to #2610
* Ensure we don’t try to read tiddlers from `.meta` files
* Improve docs
2016-10-15 18:06:17 +01:00
Jermolene
1b41b44684 Improve support for bulk loading tiddlers under Node.js
Fixes #2610
2016-10-15 16:23:17 +01:00
Myeongjin
80256b4dab Update document in tiddlywiki.com edition
* Add string '.htm' to 'Saving with TiddlyIE'
* Change external links to match locale with wiki language
* Add instructions for use to 'Saving on Android'
* Change string in 'task'
* Change instructions for use in 'Saving on iPad/iPhone'
* Add newline to 'TiddlyDesktop Releases'
* Remove caption from 'Serving TW5 from Android'
* Change link to external in tiddlers which tagged 'Editions'
* Remove string 'index.html' from 'Some of the things you can do with TiddlyWiki'
* Change link 'TiddlyWiki Groups' to 'Forums' in tiddlers which tagged 'Community'
* Remove CamelCase link 'TiddlyWiki' from tiddlers tagged 'Community'
* Change string 'done' to 'Upgrade' in 'UpgradeMechanism'
* Change buttons to images in 'How to export tiddlers'
* Add images about buttons to tiddlers
* Add quotation mark to text 'edit' in 'Signing the Contributor License Agreement'
* Rename 'UsingSVG' to 'Using SVG'
* Change link 'TypedBlockWikiText' to 'Typed Blocks in WikiText' in 'Using SVG'
* Add tiddler 'Using Stamp'
* Add 'rel="noopener noreferrer"' to external links
* Add description about 'rel="noreferrer"' to 'HTML in WikiText'
* Add link of prerelease version about translators edition, and how to translate on Node.js, in 'Translate TiddlyWiki into your language'
* Change string 'dropdown' to 'tab' in 'Installing a plugin from the plugin library'
* Add download button to 'Empty Edition'
2016-07-06 01:10:51 +09:00
Myeongjin
2edaa5fbce Update tiddlywiki.com edition (#2454)
* Change button texts to latest version

* Move tiddler files to appropriate categorys
2016-05-20 07:46:11 -06:00
Xavier Cazin
ea8b81935a Improvements to Android and fr-FR docs (#2418)
* A third way to use TW5 on Android

small improvements to Android/Node.js doc tiddlers

* fr-FR translation for the link button

* replace _ with space in file name
2016-05-02 11:08:27 +01:00
Myeongjin
5f68f411c8 Replace '_' to space in tw5.com edition (#2417)
* Move tiddler 'thumbnail Macro (Examples)' to directory 'macros/examples'

* Replace '_' to space in tw5.com edition
2016-05-02 08:34:30 +01:00
Xavier Cazin
727b7b1ed0 A third way to use TW5 on Android (#2415) 2016-04-30 21:47:09 +01:00
Jermolene
0151363b74 House style for tw5.com is to use -ise not -ize 2016-04-26 07:42:52 +01:00
nome
1ae428e323 Make tiddler file paths configurable (#2379)
When saving new tiddlers on node.js, allow the user to override the path of the
generated .tid file. This is done by creating a tiddler
$:/config/FileSystemPaths which contains one or more filter expressions, one
per line. These filters are applied in turn to the tiddler to be saved, and
the first output produced is taken as a logical path relative to the wiki's
tiddlers directory. Any occurences of "/" in the logical path are replaced with
the platform's path separator, the extension ".tid" is appended, illegal
characters are replaced by "_" and the path is disambiguated (if necessary) in
order to arrive at the final tiddler file path. If none of the filters matches,
or the configuration tiddler does not exist, fall back to the previous file
naming scheme (i.e. replacing "/" by "_").

This implies we will now, for tiddlers matching the user-specified filters,
create directory trees below the tiddlers directory. In order to avoid
cluttering it with empty directory trees when renaming or removing tiddlers, any
directories that become empty by deleting a tiddler file are removed
(recursively).

Benefits of this configuration option include the ability to organize git
repositories of TiddlyWikis running on node.js, ability to replace characters
that cause trouble with particular operating systems or workflows (e.g. '$' on
unix) and the ability to replicate tiddler "paths" in the filesystem (by
including a filter like "[!has[draft.of]]") without forcing such a (potentially
problematic) change on all users.
2016-04-25 08:36:32 +01:00
nome
37823f64e9 Add build targets to server edition
Define for the server edition the same build targets as for the empty

edition, but using the correct template so that the "offline" version

(target "index") works correctly when accessed via HTTP. With this,

`tiddlywiki --build index` is equivalent to the save button.



While the process of setting up TiddlyWiki on Node.js is well documented

and easy enough, the options for  publishing such a wiki to an offline

version (scriptably, e.g. for push-to-deploy setups) are decidedly

non-obvious. With the added build steps, the user only needs to know

three simple commands:



tiddlywiki --init server

tiddlywiki --server

tiddlywiki --build index



and optionally



tiddlywiki --build static
2016-04-03 20:22:11 +01:00
Jermolene
ebb3a62d9a Docs updates 2015-09-27 22:53:46 +01:00
Jermolene
16546a5e2e Rename "configurations" to "platforms"
Because “configurations” was too overloaded with other meanings.
“Platforms” seems like the closest common usage for us
2015-06-20 09:24:14 +01:00
Roma Hicks
5b7a7268d8 Changed structure to use less space. 2015-04-27 21:40:20 -05:00
Roma Hicks
f9c50d9a6d Added text notifying users of issue #1434 2015-04-27 21:31:18 -05:00
Jermolene
ba0ddb939c Re-establish "Configurations" TOC heading 2015-04-12 19:57:06 +01:00
Jermolene
47dc16a179 Docs tweaks 2015-03-25 22:15:51 +00:00
Tobias Beer
0ee06bb144 moved tw on node.js to editions
removed empty toplevel "TiddlyWiki Configurations", also from French

added TiddlyDesktop to Editions
2015-02-01 20:04:10 +01:00
alexhough
225b6ac950 changed to use <<version>> 2015-01-26 22:26:00 +00:00
alexhough
910d59c166 change to current version 2015-01-23 09:16:16 +00:00
Astrid Elocson
388464190d Use railroad diagrams to explain filter syntax 2015-01-03 20:16:46 +00:00
Astrid Elocson
e6ede67282 Further improvements suggested by felixhayashi 2014-12-28 16:16:24 +00:00
Astrid Elocson
597a5fb2f2 Update and make easier to understand 2014-12-28 10:07:30 +00:00
Jermolene
dcc33e52b3 Docs updates 2014-10-15 21:56:32 +01:00
Jermolene
15e9e21d2a Readme updates for Node.js 2014-09-20 15:06:33 +01:00
Jermolene
7ed7aba8d0 Docs updates 2014-09-19 15:02:40 +01:00
Jermolene
c63488d155 Docs updates for new file locations 2014-09-17 20:01:00 +01:00
Jermolene
cbfc9fcc56 More docs updates 2014-09-16 15:19:52 +01:00
buggyj
d27e157cec missing wikilinks on doc 2014-09-16 14:24:53 +02:00
Jermolene
f187122c35 Lots more docs updates 2014-09-12 16:05:37 +01:00
Jermolene
2e72162b0c Phrasing updates 2014-09-12 14:24:06 +01:00
Jermolene
def4aca200 Update filter docs 2014-09-10 23:42:13 +01:00
Jermolene
08d588fb08 Adjust some content directories 2014-09-10 19:36:54 +01:00