Sign inSign up

hueidou/gitbook

By hueidou

•Updated over 4 years ago

Image
0

357

hueidou/gitbook repository overview

⁠gitbook

⁠基于

这个镜像基于puritys/gitbook⁠做了两处改进:

  1. 支持ebook-convert选项
  2. cjk字体替换为支持--subset-embedded-fonts选项的字体
⁠支持ebook-convert选项

参照Allow the ability to pass specific options to ebook-convert⁠,直接基于镜像修改相关代码。

Margin values are specified in points. Descriptions for the available options can be found in the ebook-convert documentation⁠.

Example configuration:

"pdf": {
  "ebookConvertOptions": {
    "--subset-embedded-fonts": true
  }
}

⁠CJK字体替换为支持--subset-embedded-fonts选项的字体

镜像中的字体文件为NotoSansCJKscotf格式,无法支持--subset-embedded-fonts⁠参数,替换为SourceHanSansCN-Normal.ttf

Tag summary

Content type

Image

Digest

Size

975 MB

Last updated

over 4 years ago

docker pull hueidou/gitbook