From d6807cb4714f1b7a90c3b7ffa49a4076988aaf98 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 12 Mar 2024 17:32:54 +0000 Subject: [PATCH] Update MWS plugin readme --- .../multiwikiserver/docs/readme.tid | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/plugins/tiddlywiki/multiwikiserver/docs/readme.tid b/plugins/tiddlywiki/multiwikiserver/docs/readme.tid index 21d5799ce..b15a8f2b7 100644 --- a/plugins/tiddlywiki/multiwikiserver/docs/readme.tid +++ b/plugins/tiddlywiki/multiwikiserver/docs/readme.tid @@ -1,25 +1,32 @@ title: $:/plugins/tiddlywiki/multiwikiserver/readme -This plugin extends the TiddlyWiki 5 server running on Node.js to be able to host multiple wikis, which can share content or be independent. +This plugin extends the TiddlyWiki 5 server running on Node.js to be able to host multiple wikis that can share content or be independent. -Before using the plugin, it is necessary to install dependencies by running the following command in the root of the ~TiddlyWiki5 repository: +Installation ``` +git clone https://github.com/Jermolene/TiddlyWiki5.git --branch multi-wiki-support + +cd TiddlyWiki5 + npm install ``` To start the server: ``` -tiddlywiki editions/multiwikiserver --listen +npm start ``` -Then visit the sample wikis in a browser: +The `npm start` command is a shortcut for the following command: -* http://127.0.0.1:8080/wiki/recipe-rho - bag-alpha, bag-beta -* http://127.0.0.1:8080/wiki/recipe-sigma - bag-alpha, bag-gamma -* http://127.0.0.1:8080/wiki/recipe-tau - bag-alpha -* http://127.0.0.1:8080/wiki/recipe-upsilon - bag-alpha, bag-gamma, bag-beta +``` +node ./tiddlywiki.js ./editions/multiwikiserver --listen +``` + +Then visit the administration interface in a browser: + +* http://127.0.0.1:8080/ Note that changes are written to the topmost bag in a recipe.