From 2e0545a0cfc91e654864f15384627fbb56ee9b96 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Thu, 10 May 2018 12:15:28 +0900 Subject: [PATCH] =?UTF-8?q?-=20Added=20possibility=20to=20make=20page-brea?= =?UTF-8?q?ks,=20=20=20=20this=20greatly=20enhances=20readability=20and=20?= =?UTF-8?q?structure=20of=20a=20book=E2=80=A6=20-=20Added=20custom=20css?= =?UTF-8?q?=20place=20holder=20for=20HTML=20output=20too.=20-=20Added=202?= =?UTF-8?q?=20page=20breaks:=20quickstart=20-=20Create=20Event=20&=20Intro?= =?UTF-8?q?=20-=20License?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ book.json | 9 ++++++++- quick-start/README.md | 2 ++ styles/ebook.css | 9 +++++++++ styles/epub.css | 9 +++++++++ styles/mobi.css | 9 +++++++++ styles/pdf.css | 16 ++++++++++++++++ styles/website.css | 1 + 8 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 styles/ebook.css create mode 100644 styles/epub.css create mode 100644 styles/mobi.css create mode 100644 styles/pdf.css create mode 100644 styles/website.css diff --git a/README.md b/README.md index d6588b6..626bedc 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ and many other contributors especially the ones during the [MISP hackathons](htt We welcome contributions to the MISP book. If you want to contribute, fork the [misp-book](https://github.com/MISP/misp-book) repository and pull a request with your changes. You can also [open issues](https://github.com/MISP/misp-book/issues) if you find any errors or propose changes. +
+ ## License The MISP user guide is dual-licensed under [GNU Affero General Public License version 3](http://www.gnu.org/licenses/agpl-3.0.html) and [CC-BY-SA 4.0 international](https://creativecommons.org/licenses/by-sa/4.0/). diff --git a/book.json b/book.json index d39654f..97bb395 100644 --- a/book.json +++ b/book.json @@ -11,6 +11,13 @@ }, "twitter": { "url": "https://www.twitter.com/MISPProject/" - } + }, + "styles": { + "website": "styles/website.css", + "ebook": "styles/ebook.css", + "pdf": "styles/pdf.css", + "mobi": "styles/mobi.css", + "epub": "styles/epub.css" + } } } diff --git a/quick-start/README.md b/quick-start/README.md index 8dec7d7..eb7859c 100644 --- a/quick-start/README.md +++ b/quick-start/README.md @@ -41,6 +41,8 @@ If you need a password generator use: **All Generator tools are only possibilities without any guarantee!** +
+ ## Create an Event ![Create an Event in MISP](figures/AddEvent.jpg) diff --git a/styles/ebook.css b/styles/ebook.css new file mode 100644 index 0000000..b31f813 --- /dev/null +++ b/styles/ebook.css @@ -0,0 +1,9 @@ +.pagebreak +{ + page-break-after: always; +} + +div +{ + page-break-after: always; +} diff --git a/styles/epub.css b/styles/epub.css new file mode 100644 index 0000000..b31f813 --- /dev/null +++ b/styles/epub.css @@ -0,0 +1,9 @@ +.pagebreak +{ + page-break-after: always; +} + +div +{ + page-break-after: always; +} diff --git a/styles/mobi.css b/styles/mobi.css new file mode 100644 index 0000000..b31f813 --- /dev/null +++ b/styles/mobi.css @@ -0,0 +1,9 @@ +.pagebreak +{ + page-break-after: always; +} + +div +{ + page-break-after: always; +} diff --git a/styles/pdf.css b/styles/pdf.css new file mode 100644 index 0000000..7300b46 --- /dev/null +++ b/styles/pdf.css @@ -0,0 +1,16 @@ +// Include custom css in GitBook: https://help.gitbook.com/content/how-can-i-include-css.html +// styles/website.css: will apply only to the website +// styles/pdf.css: will apply only to the PDF +// styles/ebook.css: will apply only to ebook formats (PDF, Mobi, ePub) + +// page-break "trick": http://forums.apricitysoftware.com/t/include-pdf-pagebreak-instructions-in-markdown/152 + +.pagebreak +{ + page-break-after: always; +} + +div +{ + page-break-after: always; +} diff --git a/styles/website.css b/styles/website.css new file mode 100644 index 0000000..c0ac5c0 --- /dev/null +++ b/styles/website.css @@ -0,0 +1 @@ +// Place holder, in case custom css for the HTML is needed