Add gitbook documentation (support PDF generation).
[src/app-framework-binder.git] / book.json
1 {
2     "title": "Application Framework Binder",
3     "description": "Application Framework Binder of Automotive Grade Linux",
4     "keywords": "AGL, Development, application, framework, binder",
5     "author": "IoT.Bzh Team",
6     "website": "http://iot.bzh",
7     "published": "June 2017",
8     "version": "4.0",
9
10     "gitbook": "3.2.2",
11     "root": "docs",
12     "pdf": {
13         "fontFamily": "Verdana",
14         "fontSize": 12,
15         "paperSize": "a4",
16         "pageBreaksBefore": "//h:div[@class=\"page-break\"]"
17     },
18     "styles": {
19         "website": "resources/ebook.css",
20         "ebook": "resources/ebook.css",
21         "pdf": "resources/ebook.css"
22     },
23
24     "hidepageheaders": [2, 3],
25     "hidepagefooters": [2, 3],
26
27     "plugins": [
28         "regexplace"
29     ],
30     "pluginsConfig": {
31         "regexplace": {
32             "removeFirstPartsInSectionNumber": true,
33             "substitutes": [{
34                     "pattern": "<!-- pagebreak -->",
35                     "flags": "g",
36                     "substitute": "<div class=\"page-break\"></div>"
37                 },
38                 {
39                     "pattern": "<!-- clear -->",
40                     "flags": "g",
41                     "substitute": "<div class=\"clear\"></div>"
42                 },
43                 {
44                     "pattern": "<!-- nopagebreak -->",
45                     "flags": "g",
46                     "substitute": "<div class=\"nopb\">"
47                 },
48                 {
49                     "pattern": "<!-- endnopagebreak -->",
50                     "flags": "g",
51                     "substitute": "</div>"
52                 },
53                 {
54                     "pattern": "<!-- note -->",
55                     "flags": "g",
56                     "substitute": "<div class=\"note\">"
57                 },
58                 {
59                     "pattern": "<!-- endnote -->",
60                     "flags": "g",
61                     "substitute": "</div>"
62                 },
63                 {
64                     "pattern": "!\\[(.*?)\\]\\((.*?)(?:\\s+\"(.*)\")?\\){0,}{caption=1([^\\}]*)}",
65                     "flags": "gmi",
66                     "substitute": "<figure id=\"fig_PAGE_LEVEL_._INDEX_\"><img $3 alt=\"$1\" title=\"$1\" href=\"$2\"><figcaption></figcaption></figure>",
67                     "decode": true
68                 },
69                 {
70                     "pattern": "<img ([^>]*) {0,}\/{0,}> {0,}{caption=1([^\\}]*)}",
71                     "flags": "g",
72                     "substitute": "<figure id=\"fig_PAGE_LEVEL_._INDEX_\"><img $2 $1><figcaption></figcaption></figure>",
73                     "decode": true
74                 },
75                 {
76                     "pattern": "<img (.*)alt=\"([^\"]*)\"(.*) {0,1}\/{0,1}><figcaption></figcaption>",
77                     "flags": "g",
78                     "substitute": "<img$1alt=\"$2\"$3><figcaption><span>Picture _PAGE_LEVEL_._INDEX_</span>: $2</figcaption>",
79                     "store": {
80                         "substitute": "<a href=\"_PAGE_PATH_#fig_PAGE_LEVEL_._INDEX_\">Pic. _PAGE_LEVEL_._INDEX_</a> <span>$2</span>",
81                         "variable_name": "pictures"
82                     }
83                 },
84                 {
85                     "pattern": "<img ([^>]*)> {0,}{style {1,}([^}]*)}",
86                     "flags": "g",
87                     "substitute": "<img $1 style=\"$2\">",
88                     "decode": true
89                 }
90             ]
91         }
92     }
93 }