Merge pull request #112 from SteveClement/master

Added possibility to make page-breaks
pull/114/head
Alexandre Dulaunoy 2018-05-11 11:59:08 +02:00 committed by GitHub
commit 9f31dd791b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 56 additions and 1 deletions

View File

@ -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.
<div class="pagebreak"></div>
## 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/).

View File

@ -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"
}
}
}

View File

@ -41,6 +41,8 @@ If you need a password generator use:
**All Generator tools are only possibilities without any guarantee!**
<div class="pagebreak"></div>
## Create an Event
![Create an Event in MISP](figures/AddEvent.jpg)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 81 KiB

9
styles/ebook.css Normal file
View File

@ -0,0 +1,9 @@
.pagebreak
{
page-break-after: always;
}
div
{
page-break-after: always;
}

9
styles/epub.css Normal file
View File

@ -0,0 +1,9 @@
.pagebreak
{
page-break-after: always;
}
div
{
page-break-after: always;
}

9
styles/mobi.css Normal file
View File

@ -0,0 +1,9 @@
.pagebreak
{
page-break-after: always;
}
div
{
page-break-after: always;
}

16
styles/pdf.css Normal file
View File

@ -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;
}

1
styles/website.css Normal file
View File

@ -0,0 +1 @@
// Place holder, in case custom css for the HTML is needed