From 2c478db23fe0de4628543028cba5b3da10dd6cf4 Mon Sep 17 00:00:00 2001 From: Dylan Vorster Date: Sat, 17 Mar 2018 11:01:44 +0000 Subject: [PATCH 1/3] Updates test.md Auto commit by GitBook Editor --- SUMMARY.md | 5 +++++ test.md | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 SUMMARY.md create mode 100644 test.md diff --git a/SUMMARY.md b/SUMMARY.md new file mode 100644 index 0000000..ba20601 --- /dev/null +++ b/SUMMARY.md @@ -0,0 +1,5 @@ +# Summary + +* [Introduction](README.md) +* [Test](test.md) + diff --git a/test.md b/test.md new file mode 100644 index 0000000..32f3210 --- /dev/null +++ b/test.md @@ -0,0 +1,2 @@ +This is just a test + From adf268697a2d23ad9b213f4dfa8b5a5c0ad924f1 Mon Sep 17 00:00:00 2001 From: Dylan Vorster Date: Sat, 17 Mar 2018 11:08:00 +0000 Subject: [PATCH 2/3] Deletes test.md Auto commit by GitBook Editor --- SUMMARY.md | 7 ++++++- test.md | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 test.md diff --git a/SUMMARY.md b/SUMMARY.md index ba20601..6c819f1 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -1,5 +1,10 @@ # Summary * [Introduction](README.md) -* [Test](test.md) +* [Interacting with diagrams](/docs/Interactive Usage.md) +* About the project + * [Testing](/docs/Testing.md) + * [Architecture Questions](/docs/Architecture Questions.md) + + diff --git a/test.md b/test.md deleted file mode 100644 index 32f3210..0000000 --- a/test.md +++ /dev/null @@ -1,2 +0,0 @@ -This is just a test - From 94fe0fc854bf5ea0f8d4f8c3da72a4cb7f2521fe Mon Sep 17 00:00:00 2001 From: Dylan Vorster Date: Sat, 17 Mar 2018 12:16:26 +0000 Subject: [PATCH 3/3] Updates docs/Getting Started.md Auto commit by GitBook Editor --- SUMMARY.md | 3 +- about-the-project.md | 0 docs/Getting Started.md | 142 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 about-the-project.md create mode 100644 docs/Getting Started.md diff --git a/SUMMARY.md b/SUMMARY.md index 6c819f1..a6e74ef 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -2,7 +2,8 @@ * [Introduction](README.md) * [Interacting with diagrams](/docs/Interactive Usage.md) -* About the project +* [Getting Started](/docs/Getting Started.md) +* [About the project](about-the-project.md) * [Testing](/docs/Testing.md) * [Architecture Questions](/docs/Architecture Questions.md) diff --git a/about-the-project.md b/about-the-project.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/Getting Started.md b/docs/Getting Started.md new file mode 100644 index 0000000..6602b8a --- /dev/null +++ b/docs/Getting Started.md @@ -0,0 +1,142 @@ +# Getting started + +## Installation via NPM + +The first thing you need to do, is grab the distribution files on NPM. You can do this either using yarn or npm + +**Via yarn:** + +``` +yarn install storm-react-diagrams +``` + +**Via npm:** + +``` +npm install storm-react-diagrams +``` + +When you run this in your project directory, this will install the library into node\_modules/storm-react-diagrams. You will then find a dist folder that contains all the minified and production ready code. + +This will also install React and a few other dependencies that you need in order to use this library. + +## Including the library + +When including the library you will need both the javascript files as well as the raw BEM styles. Both are included in the dist folder and there are numerous ways to integrate them into your project: + +#### Getting the javascript files + +**Using Typescript / ES6: \(recommended\)** + +```js +import * as SRD from "storm-react-diagrams" +``` + +**Using RequireJS:** + +```js +var SRD = require("storm-react-diagrams) +``` + +**As a script tag \(not recommended\)** + +```html + + +