forked from scala-text/scala_text
-
Notifications
You must be signed in to change notification settings - Fork 2
/
book.json
28 lines (28 loc) · 1.32 KB
/
book.json
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
{
"root": "./gitbook",
"structure": {
"readme": "INTRODUCTION.md",
"summary": "SUMMARY.md"
},
"plugins": [
"include-codeblock",
"japanese-support",
"footnote-string-to-number",
"anchors",
"regexplace",
"forkmegithub"
],
"pluginsConfig": {
"regexplace": {
"substitutes": [
{"pattern": "<!-- begin answer id=\"(.*)\" style=\"(.*)\" -->", "flags": "g", "substitute": "<div><button type=\"button\" id=\"$1_show_answer_button\" style=\"display:block\" onclick=\"document.getElementById('$1').style.display='block'; document.getElementById('$1_show_answer_button').style.display='none'; document.getElementById('$1_hide_answer_button').style.display='block'; \">解答例を表示する</button><button type=\"button\" id=\"$1_hide_answer_button\" style=\"display:none\" onclick=\"document.getElementById('$1').style.display='none'; document.getElementById('$1_show_answer_button').style.display='block'; document.getElementById('$1_hide_answer_button').style.display='none'; \">解答例を隠す</button></div><div id=\"$1\" style=\"$2\">"},
{"pattern": "<!-- end answer -->", "flags": "g", "substitute": "</div>"}
]
},
"forkmegithub": {
"url": "https://github.com/dwango/scala_text",
"color": "darkblue"
}
},
"title": "Scala研修テキスト"
}