Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 3.41 KB

README.md

File metadata and controls

43 lines (27 loc) · 3.41 KB

About the Uttori Wiki Demo

To get started, clone, install dependencies (Node v14) and run npm start:

cp example.env .env
# Edit the config to start hacking
code .
npm install
npm start

This is a hackable demo of the Uttori Wiki library and several plugins. The edit_key and delete_key are both set in the .env file. These are required to make, edit or delete documents and should be appended to the URL, for example to edit this page click here. You can also make a new document but will need the key in the URL, so the button in the top right should 404. Try creating new documents with the site section tags examples, reference, or tutorial and watch as the site section counts increase.

Rendering

This content is written in Markdown and rendered with the Uttori MarkdownIt Renderer Plugin that included some other nice to have features like Table of Contents generation and WikiLinks support like [[cool-example|Cool Example]].

This line says that this was written on the Windows operating system, but the Replacer Renderer Plugin plugin has replaced Windowz with macOS. Useful for preventing hateful content from showing up, custom emoji replacement, or other fun uses.

Storage & Search

The files are stored as JSON file on disk using the Uttori Storage Provider JSON File Plugin.

Search is powered by the Uttori Search Provider Lunr Plugin, try searching for cool.

File Uploads are powered by the Uttori Multer Upload Plugin and can be tested on the Edit pages.

View Model Plugins

There are several optional View Model plugins that are used to add more data to be sent to the front end:

The Popular document depends on a valid Uttori Analytics Provider, and the one being used is the Uttori Analytics Provider JSON File Plugin.

Meta Plugins

Just for completeness sake in testing features the Uttori Sitemap Generator Plugin is setup for generating a valid sitemap.xml for Google or other interested crawlers.