From 57a85750ba7fba167551a82aaec7411b605ec3e1 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Wed, 20 Feb 2019 11:52:52 +0100 Subject: [PATCH] Adding PDF generation --- .gitignore | 2 ++ .gitlab-ci.yml | 3 +++ README.md | 1 + SUMMARY.md | 4 ++++ book.json | 2 +- 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3fa5478..bc39c77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ *.DS_Store /_book/ /node_modules/ +/public/ /book.pdf +/modern-cmake.pdf /book.mobi /book.epub diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d72ef2..f5dbb6f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/README.md b/README.md index 6aecb2a..c57724e 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/SUMMARY.md b/SUMMARY.md index 95b0cd7..8f23086 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -41,3 +41,7 @@ * [Dictionary Example](examples/root-dict/README.md) * [Minuit2](chapters/packages/Minuit2.md) + + diff --git a/book.json b/book.json index a7a5614..b3f8fdc 100644 --- a/book.json +++ b/book.json @@ -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