aboutsummaryrefslogtreecommitdiffstats
path: root/book.json
blob: 25ff697f3a9807ff3f378ac326d051b813ce4645 (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
    "title": "Signal Composer high level service",
    "subtitle": "Developer Documentation",
    "description": "Signal composer let you compose and expose signals issued low level services",
    "keywords": "AGL, Development, Iotbzh",
    "author": "IoT.Bzh Team",
    "website": "http://iot.bzh",
    "published": "December 2017",
    "version": "4.99-EERC5",

    "gitbook": "3.2.2",
    "root": "docs",
    "pdf": {
        "fontFamily": "Verdana",
        "fontSize": 12,
        "paperSize": "a4",
        "pageBreaksBefore": "//h:div[@class=\"page-break\"]"
    },
    "styles": {
        "website": "resources/ebook.css",
        "ebook": "resources/ebook.css",
        "pdf": "resources/ebook.css"
    },

    "hidepageheaders": [2, 3],
    "hidepagefooters": [2, 3],

    "plugins": [
        "regexplace"
    ],
    "pluginsConfig": {
        "regexplace": {
            "removeFirstPartsInSectionNumber": true,
            "substitutes": [{
                    "pattern": "<!-- pagebreak -->",
                    "flags": "g",
                    "substitute": "<div class=\"page-break\"></div>"
                },
                {
                    "pattern": "<!-- clear -->",
                    "flags": "g",
                    "substitute": "<div class=\"clear\"></div>"
                },
                {
                    "pattern": "<!-- nopagebreak -->",
                    "flags": "g",
                    "substitute": "<div class=\"nopb\">"
                },
                {
                    "pattern": "<!-- endnopagebreak -->",
                    "flags": "g",
                    "substitute": "</div>"
                },
                {
                    "pattern": "<!-- note -->",
                    "flags": "g",
                    "substitute": "<div class=\"note\">"
                },
                {
                    "pattern": "<!-- endnote -->",
                    "flags": "g",
                    "substitute": "</div>"
                },
                {
                    "pattern": "!\\[(.*?)\\]\\((.*?)(?:\\s+\"(.*)\")?\\){0,}{caption=1([^\\}]*)}",
                    "flags": "gmi",
                    "substitute": "<figure id=\"fig_PAGE_LEVEL_._INDEX_\"><img $3 alt=\"$1\" title=\"$1\" href=\"$2\"><figcaption></figcaption></figure>",
                    "decode": true
                },
                {
                    "pattern": "<img ([^>]*) {0,}\/{0,}> {0,}{caption=1([^\\}]*)}",
                    "flags": "g",
                    "substitute": "<figure id=\"fig_PAGE_LEVEL_._INDEX_\"><img $2 $1><figcaption></figcaption></figure>",
                    "decode": true
                },
                {
                    "pattern": "<img (.*)alt=\"([^\"]*)\"(.*) {0,1}\/{0,1}><figcaption></figcaption>",
                    "flags": "g",
                    "substitute": "<img$1alt=\"$2\"$3><figcaption><span>Picture _PAGE_LEVEL_._INDEX_</span>: $2</figcaption>",
                    "store": {
                        "substitute": "<a href=\"_PAGE_PATH_#fig_PAGE_LEVEL_._INDEX_\">Pic. _PAGE_LEVEL_._INDEX_</a> <span>$2</span>",
                        "variable_name": "pictures"
                    }
                },
                {
                    "pattern": "<img ([^>]*)> {0,}{style {1,}([^}]*)}",
                    "flags": "g",
                    "substitute": "<img $1 style=\"$2\">",
                    "decode": true
                }
            ]
        }
    }
}