mirror of
1
0
Fork 0

Adding PDF generation

This commit is contained in:
Henry Fredrick Schreiner 2019-02-20 11:52:52 +01:00
parent 9b2716ea78
commit 57a85750ba
5 changed files with 11 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,6 +1,8 @@
*.DS_Store
/_book/
/node_modules/
/public/
/book.pdf
/modern-cmake.pdf
/book.mobi
/book.epub

View File

@ -23,11 +23,14 @@ pages:
paths:
- node_modules/
before_script:
- apt update && apt install -y calibre calibre-bin
- npm install gitbook-cli -g #
- gitbook fetch 3.2.3
- gitbook install
script:
- gitbook build . public
- gitbook pdf . modern-cmake.pdf
- cp modern-cmake.pdf public/modern-cmake.pdf
artifacts:
paths:
- public

View File

@ -14,6 +14,7 @@ And CMake 3.11+ is supposed to be significantly faster, as well!
{% hint style='working' %}
This book is meant to be a living document. You can raise an issue or put in a merge request on [GitLab](https://gitlab.com/CLIUtils/modern-cmake).
You can also [download a copy as a PDF](https://CLIUtils.gitlab.io/modern-cmake/modern-cmake.pdf).
{% endhint %}
In short, here are the most likely questions in your mind if you are considering Modern CMake:

View File

@ -41,3 +41,7 @@
* [Dictionary Example](examples/root-dict/README.md)
* [Minuit2](chapters/packages/Minuit2.md)
<!--
* [Download PDF](ref://modern-cmake.pdf)
* [Browse the source](https://gitlab.com/CLIUtils/modern-cmake) -->

View File

@ -2,7 +2,7 @@
"title": "Modern CMake",
"description": "A guide to writing simple, powerful, and clean CMake 3.1+ builds.",
"author": "Henry Schreiner",
"plugins": ["replace", "hints", "term", "include-codeblock"],
"plugins": ["replace", "hints", "term", "include-codeblock", "ace", "otherlink"],
"pluginsConfig": {
"include-codeblock": {
"fixlang": true