简体   繁体   English

Bookdown:单个html输出文件

[英]Bookdown: Single html output file

If I add a line below the first in _output.yml : 如果我在_output.yml中的第一行下方添加一行:

bookdown::gitbook:
  split_by: none
  css: ...

in the bookdown-demo the output becomes a single .html file which looks kind of plain ugly. bookdown-demo中 ,输出变为单个.html文件,看起来有点难看。 Is it somehow possible to retain the nice style which is produced by the default settings but in a single file? 是否可以以某种方式保留默认设置但在单个文件中生成的精美样式? If I want to send the book to someone else sending a stack of files is not great, especially if the person who receives it is not familiar with HTML as a document format. 如果我想将书发送给其他人,发送一堆文件并不好,特别是如果接收书的人不熟悉HTML作为文档格式。

This turns out to be a bug of bookdown , and I just fixed it on Github. 事实证明这是bookdown的错误,我只是在Github上修复了它 You can install and test the development version (>= 0.3.3): 您可以安装并测试开发版本(> = 0.3.3):

devtools::install_github('rstudio/bookdown')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM