1
0
mirror of synced 2024-12-22 12:40:00 +01:00

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 *.DS_Store
/_book/ /_book/
/node_modules/ /node_modules/
/public/
/book.pdf /book.pdf
/modern-cmake.pdf
/book.mobi /book.mobi
/book.epub /book.epub

View File

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

View File

@ -14,6 +14,7 @@ And CMake 3.11+ is supposed to be significantly faster, as well!
{% hint style='working' %} {% 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). 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 %} {% endhint %}
In short, here are the most likely questions in your mind if you are considering Modern CMake: 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) * [Dictionary Example](examples/root-dict/README.md)
* [Minuit2](chapters/packages/Minuit2.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", "title": "Modern CMake",
"description": "A guide to writing simple, powerful, and clean CMake 3.1+ builds.", "description": "A guide to writing simple, powerful, and clean CMake 3.1+ builds.",
"author": "Henry Schreiner", "author": "Henry Schreiner",
"plugins": ["replace", "hints", "term", "include-codeblock"], "plugins": ["replace", "hints", "term", "include-codeblock", "ace", "otherlink"],
"pluginsConfig": { "pluginsConfig": {
"include-codeblock": { "include-codeblock": {
"fixlang": true "fixlang": true