docs writings and license

This commit is contained in:
jean-emmanuel 2016-03-31 18:06:49 +02:00
parent 16a1b04be3
commit d1934ddbd7
3 changed files with 23 additions and 9 deletions

View file

@ -1,13 +1,13 @@
# Session file
A valid session file is a javascript file that returns, when eval'd, an array of tab objects. It can be written as a javascript object :
A valid session file is a javascript file that returns an array of [tab objects](#tab-object). It can be written as a javascript `array` :
```js
[
{
[// array
{// tab object
label:"A tab containing widgets",
widgets: [
{
widgets: [// array
{// widget object
// widget properties
},
{
@ -18,7 +18,7 @@ A valid session file is a javascript file that returns, when eval'd, an array of
{
label:"A tab containing tabs",
tabs: [
{
{// tab object
// tab properties
},
{
@ -32,7 +32,7 @@ A valid session file is a javascript file that returns, when eval'd, an array of
]
```
It can also be a self invoking function that returns an array of tab objects :
It can also be a javascript self invoking function that returns an array of [tab objects](#tab-object) :
```js
(function(){
@ -58,6 +58,13 @@ It can also be a self invoking function that returns an array of tab objects :
## Tab object
A tab object is a javascript object which properties are described below.
```js
{
// tab properties
}
```
#### `label`
- type: `string`

View file

@ -1,6 +1,6 @@
## Widgets generics
Widget objects share a set of generic properties described below. Each widget type comes with an additional set of specific properties which are documented in these pages:
A widget object is a javascript object. All widgets share a set of generic properties described below. Each widget type comes with an additional set of specific properties which are documented in these pages:
- [Sliders](widgets-specifics/sliders.md)
- [Buttons](widgets-specifics/buttons.md)
@ -9,6 +9,12 @@ Widget objects share a set of generic properties described below. Each widget ty
- [Plots](widgets-specifics/plots.md)
- [Containers](widgets-specifics/containers.md)
```js
{
// widget properties
}
```
----
### Basics
@ -85,7 +91,7 @@ Widget objects share a set of generic properties described below. Each widget ty
- values can be defined as objects if the type needs to be specified (ie different from the default implied by the `precision`)
- example:
```js
[
preArgs: [
"1", // this will always be sent as a string
0.5, // this will be sent as an integer if precision equals 0
1, // this will be sent as float if precision is different from 0

View file

@ -1,3 +1,4 @@
site_name: Open Stage Control
repo_url: https://github.com/jean-emmanuel/open-stage-control
theme: cinder
copyright: "Open Stage Control is an <a href='http://ammd.net'>AMMD</a> software licensed under the <a href='https://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE'>GNU/GPLv3</a> License"