diff --git a/book.json b/book.json index 2827682..b73f6a6 100644 --- a/book.json +++ b/book.json @@ -1,3 +1,10 @@ { - "language": "ja" + "language": "ja", + "plugins": ["collapsible-chapters", "back-to-top-button", "copy-code-button", "heading-anchors", "page-toc-button", "advanced-emoji"], + "pluginsConfig": { + "page-toc-button": { + "maxTocDepth": 2, + "minTocSize": 2 + } + } } diff --git a/package.json b/package.json index 42f4868..132436b 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "gitbook-cli": "^2.3.2" }, "scripts": { - "start": "yarn gitbook serve" + "start": "yarn gitbook serve", + "prepublish": "gitbook install" } }