File: tutorial.txt

package info (click to toggle)
node-stdlib 0.0.96%2Bds1%2B~cs0.0.429-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 421,476 kB
  • sloc: javascript: 1,562,831; ansic: 109,702; lisp: 49,823; cpp: 27,224; python: 7,871; sh: 6,807; makefile: 6,089; fortran: 3,102; awk: 387
file content (59 lines) | stat: -rw-r--r-- 1,943 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

tutorial( [name, [options]] )
    Starts a tutorial.

    When not provided a tutorial name, the function prints a list of available
    tutorials.

    If a specified workspace already exists, the workspace is silently cleared
    and a new tutorial presentation bound. In order to preserve an existing
    workspace, specify an alternative tutorial workspace name.

    Parameters
    ----------
    name: string (optional)
        Tutorial name.

    options: Object (optional)
        Tutorial options.

    options.borderTop: string (optional)
        Top border character sequence. Default: '*'.

    options.borderBottom: string (optional)
        Bottom border character sequence. Default: '*'.

    options.borderLeft: string (optional)
        Left border character sequence. Default: '* '.

    options.borderRight: string (optional)
        Right border character sequence. Default: ' *'.

    options.counter: string|boolean (optional)
        Slide counter. If `true`, each tutorial slide displays a slide counter.
        If set to 'progress', each tutorial slide displays a progress counter.
        If `false`, no counter is displayed. Default: 'progress'.

    options.workspace: string (optional)
        REPL workspace name. A tutorial presentation adds commands to the
        specified workspace, thus allowing tutorial navigation and interaction.
        Default: `'tutorial-<name>-<n>'`, where `name` is the tutorial name and
        `n` is an assigned tutorial presentation identifier.

    options.autoClear: boolean (optional)
        Boolean indicating whether to automatically clear the screen before
        writing a rendered tutorial slide to the REPL. Default: true.

    Returns
    -------
    out: integer|void
        Tutorial presentation identifier.

    Examples
    --------
    > var id = tutorial( 'repl' );

    See Also
    --------
    presentationStart, presentationStop, workspace, workspaces