diff --git a/mdbook-pdf/README.md b/mdbook-pdf/README.md index 9620dc9609070db0d8e329b15f1ee6472a2d7b76..104c34aad1486c144424d54fac4ae6d34c3d73ac 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 f59cdaa096ad1c4587ff1fc859a4fc845726b6f1..9f2daef0be9af5181a202d70a884bc15248fa83f 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