docs(README): split installation and usage

This commit is contained in:
Nico Rehwaldt 2018-02-05 16:29:49 +01:00
parent 5595fce934
commit d629817f08
1 changed files with 6 additions and 4 deletions

View File

@ -4,19 +4,21 @@
[![Build Status](https://travis-ci.org/bpmn-io/bpmn-js.svg?branch=master)](https://travis-ci.org/bpmn-io/bpmn-js) [![Build Status](https://travis-ci.org/bpmn-io/bpmn-js.svg?branch=master)](https://travis-ci.org/bpmn-io/bpmn-js)
View and edit BPMN 2.0 diagrams in the modern browsers. View and edit BPMN 2.0 diagrams in the browser.
[![bpmn-js screencast](./resources/screencast.gif "bpmn-js in action")](http://demo.bpmn.io/s/start) [![bpmn-js screencast](./resources/screencast.gif "bpmn-js in action")](http://demo.bpmn.io/s/start)
## Usage ## Installation
Include the library [pre-packaged](https://github.com/bpmn-io/bpmn-js-examples/tree/master/pre-packaged) Include the library [pre-packaged](https://github.com/bpmn-io/bpmn-js-examples/tree/master/pre-packaged)
or include it [via npm](https://github.com/bpmn-io/bpmn-js-examples/tree/master/bundling) or include it [via npm](https://github.com/bpmn-io/bpmn-js-examples/tree/master/bundling)
into your node-style web-application. into your node-style web-application.
Create a [bpmn-js](https://github.com/bpmn-io/bpmn-js) instance and render ## Usage
[BPMN 2.0 diagrams](www.omg.org/spec/BPMN/2.0.2/) in the browser:
To get started, create a [bpmn-js](https://github.com/bpmn-io/bpmn-js) instance
and render [BPMN 2.0 diagrams](www.omg.org/spec/BPMN/2.0.2/) in the browser:
```javascript ```javascript
var xml; // my BPMN 2.0 xml var xml; // my BPMN 2.0 xml