From 92333e4d611352cd561a44ccc8cd0a79c84a2b7d Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 28 Feb 2021 10:40:47 +0100 Subject: [PATCH] new: [build] move from GitBook to honkit (fork of GitBook) --- .travis.yml | 7 ++++--- SUMMARY.md | 14 ++++++++------ book.json | 4 ++-- publish.sh | 10 +++++----- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index c82969a..950d2b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,13 +14,14 @@ install: - sudo n stable - sudo ln -sf /usr/local/n/versions/node/8.0.0/bin/node /usr/bin/node - sudo npm update -g - - npm install gitbook-cli -g + - npm install honkit - npm install gitbook-plugin-autocover - npm install gitbook-plugin-github - npm install gitbook-plugin-toc - npm install gitbook-plugin-anchors - npm install gitbook-plugin-image-class + - npm install gitbook-plugin-codesnippet script: - - gitbook install - - gitbook build + - npx honkit install + - npx honkit build diff --git a/SUMMARY.md b/SUMMARY.md index 910de76..9e6a9da 100755 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -1,5 +1,6 @@ # Summary +* [Introduction](README.md) * [Book Convention](book-convention/README.md) * [Quick Start](quick-start/README.md) * [Requirements](requirements/README.md) @@ -9,7 +10,7 @@ * [User Management and Global Actions](user-management/README.md) * [Using the System](using-the-system/README.md) * [Delegation of Event](delegation/README.md) -* [Extending Events](extended-events/README.md) - in progress +* [Extending Events](extended-events/README.md) * [Administration](administration/README.md) * [Managing Feeds](managing-feeds/README.md) * [Updating Python dependencies](updating-python/README.md) @@ -17,16 +18,17 @@ * [PyMISP - Python Library to Access MISP](pymisp/README.md) * [Create an Event Based on a Report](create-event-report/README.md) * [Taxonomies](taxonomy/README.md) -* [Galaxies](galaxy/README.md) - in progress -* [Sightings](sightings/README.md) - in progress -* [Warning lists](warninglists/README.md) - in progress -* [Notice lists](noticelists/README.md) - in progress +* [Galaxies](galaxy/README.md) +* [Sightings](sightings/README.md) +* [Warning lists](warninglists/README.md) +* [Notice lists](noticelists/README.md) * [Categories and Types](categories-and-types/README.md) * [Synchronisation/Sharing](sharing/README.md) * [External Connectors](connectors/README.md) -* [Modules](modules/README.md) - in progress +* [Modules](modules/README.md) * [ZeroMQ - MISP publish-subscribe](misp-zmq/README.md) * [Translations - i18n & l10n](translation/README.md) * [FAQ](faq/README.md) * [Dev FAQ](dev-faq/README.md) * [Appendices](appendices/README.md) + diff --git a/book.json b/book.json index 5bf2259..87b4c13 100644 --- a/book.json +++ b/book.json @@ -3,8 +3,8 @@ "description": "User guide of MISP Malware Information Sharing Platform, a Threat Sharing Platform.", "language": "en", "author": "MISP Contributors", - "plugins": ["autocover", "github", "toc", "anchors", "alerts", "advanced-emoji", "image-class", "last-modified", "search", "sitemap", "codesnippet", "gist", "fontsettings"], - "links": { "sidebar": { "MISP @ GitHub": "https://github.com/MISP/MISP", "PDF Format": "https://www.circl.lu/doc/misp/book.pdf" }}, + "plugins": ["toc", "github", "codesnippet", "last-modified"], + "links": { "sidebar": { "MISP @ GitHub": "https://github.com/MISP/MISP", "PDF Format": "https://www.circl.lu/doc/misp/book.pdf" }}, "pluginsConfig": { "github": { "url": "https://github.com/MISP/" diff --git a/publish.sh b/publish.sh index 56824aa..61a022b 100755 --- a/publish.sh +++ b/publish.sh @@ -1,16 +1,16 @@ #!/bin/bash echo "1/4 html" -gitbook build +npx honkit build echo "2/4 pdf" -gitbook pdf +npx honkit pdf echo "3/4 epub" -gitbook epub +npx honkit epub echo "4/4 mobi" -gitbook mobi +npx honkit mobi echo "Done" mv book.pdf _book mv book.epub _book mv book.mobi _book chmod +r _book/book.pdf _book/book.epub _book/book.mobi cd _book -rsync -azv . circl@cpab.circl.lu:/var/www/nwww.circl.lu/doc/misp/ && rm -rf _book +#rsync -azv . circl@cpab.circl.lu:/var/www/nwww.circl.lu/doc/misp/ && rm -rf _book