SemanticMediaWiki/Mermaid

Name: Mermaid

Owner: Semantic MediaWiki

Description: Provides a parser function to generate diagrams and flowcharts with the help of the mermaid script language

Created: 2017-12-30 02:59:06.0

Updated: 2018-05-07 06:06:04.0

Pushed: 2018-05-07 06:06:03.0

Homepage: https://www.mediawiki.org/wiki/Extension:Mermaid

Size: 489

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Mermaid

Build Status Latest Stable Version Packagist download count

This extension provides the #mermaid parser function to support the generation of diagrams and flowcharts with the help of the mermaid script language. Supported diagram forms include:

Requirements
Installation

The recommended way to install Mermaid is by using Composer with an entry in MediaWiki's “composer.json” file or preferably “composer.local.json” file.


"require": {
    "mediawiki/mermaid": "~1.0"
}

  1. From your MediaWiki installation directory, execute composer require mediawiki/mermaid:~1.0
  2. Add wfLoadExtension( 'Mermaid' ); to the “LocalSettings.php” file
  3. Navigate to Special:Version on your wiki and verify that the package have been successfully installed.
Usage

The #mermaid parser function allows to add mermaid typed content to a wiki article. For example, copying examples is as easy as:

ermaid:sequenceDiagram
icipant Alice
icipant Bob
ice->John: Hello John, how are you?
op Healthcheck
   John->John: Fight against hypochondria
d
te right of John: Rational thoughts <br/>prevail...
John-->Alice: Great!
John->Bob: How about you?
Bob-->John: Jolly good!

image

Contribution and support

If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the contribution guideline.

Tests

This extension provides unit and integration tests that are run by a continues integration platform but can also be executed using composer phpunit from the extension base directory.

License

GNU General Public License, version 2 or later.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.