e-wiki
Sets up one or more static wikis via Express.
Last updated 2 months ago by mkloubertego .
LGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install e-wiki 
SYNC missed versions from official npm registry.

npm

e-wiki

Sets up one or more static wikis via Express.

Install

Execute the following command from your project folder, where your package.json file is stored:

npm install --save e-wiki

Example

Quick start

Setup UI

import * as express from 'express';
import { setupWiki } from 'e-wiki';

const app = express();

// create a '/wiki' endpoint ...
setupWiki(
    {
        source: '/root/path/to/wiki/files',
        title: 'My wiki',
    },

    // directly register it in 'app'
    app
);

app.listen(8080, () => {
    // should be available via
    // http://localhost:8080/wiki
    // now
});

Create first page

Create a index.md inside the root of your wiki folder and fill it with Markdown content.

You should now be able to access the (start) page with / url.

You also be able to define a directory structure and store any kind of files, like images or videos, which are handled like on a static HTTP server.

Charts and diagrams

Markdown pages can also include diagrams and charts, using a language parsed and rendered by mermaid.

Those have to be put into a code block, which uses mermaid as language:

Example graph:

```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```

Documentation

API documentation can be found here.

Resources

Copyright

That software makes use of free version of MD Bootstrap.

Current Tags

  • 4.0.1                                ...           latest (2 months ago)

19 Versions

  • 4.0.1                                ...           2 months ago
  • 4.0.0                                ...           2 months ago
  • 3.0.0                                ...           3 months ago
  • 2.3.0                                ...           9 months ago
  • 2.2.0                                ...           10 months ago
  • 2.1.1                                ...           10 months ago
  • 2.1.0                                ...           10 months ago
  • 2.0.2                                ...           10 months ago
  • 2.0.1                                ...           10 months ago
  • 2.0.0                                ...           10 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.4                                ...           10 months ago
  • 1.1.3                                ...           10 months ago
  • 1.1.2                                ...           10 months ago
  • 1.1.1                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 20
Dependencies (14)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |