From 5905173877fb9190aea40ee8a77a9107aac25e1a Mon Sep 17 00:00:00 2001 From: jiangsonglin2 Date: Sat, 29 Jan 2022 19:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96README=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangsonglin2 --- mdbook-pdf/README.md | 12 ++++-------- mdbook-pdf/src/main.rs | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/mdbook-pdf/README.md b/mdbook-pdf/README.md index 9620dc96..104c34aa 100644 --- a/mdbook-pdf/README.md +++ b/mdbook-pdf/README.md @@ -9,21 +9,17 @@ 为了使得程序能够正常运行,请确保计算机上安装了 Google Chrome / Chromium / Microsoft Edge,(安装在默认的位置,在当前的PATH中,或配置了二进制文件位置),因为现在自动下载 Chromium 功能还[不可用](https://github.com/atroche/rust-headless-chrome/issues/286). -请确保您的`book.toml`中存在以下内容: +一个最简单的`book.toml` 示例如下: ```toml +[book] +title = "An Example" + [output.html] [output.pdf] ``` -而且,`[output.html.print]`也没有被禁用(默认情况下应该是启用的,所以如果您的`book.toml`中没有出现以下行,请不要担心)。 - -```toml -[output.html.print] -enable = true -``` - 最后,您可以使用 `mdbook build` 命令生成书籍并获取PDF文件,您的PDF文件将被存放在`book/pdf/output.put`。 ## 配置 diff --git a/mdbook-pdf/src/main.rs b/mdbook-pdf/src/main.rs index f59cdaa0..9f2daef0 100644 --- a/mdbook-pdf/src/main.rs +++ b/mdbook-pdf/src/main.rs @@ -1,6 +1,6 @@ /** * Copyright (c) 2022 openEuler Maintainers. - * kiran-cc-daemon is licensed under Mulan PSL v2. + * mdbook-pdf is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 -- Gitee