gitbook 插件 pdf

1. pdf 插件

1.1 安装

$ npm install gitbook-pdf -g

1.2 导出 pdf

$ gitbook pdf ./my_repository

pdf-multi-link 插件在每个页面上添加一个链接以下载 PDF。

2.1 安装

npm i gitbook-plugin-pdf-multi-link

2.2 配置

{
  "plugins": ["pdf-multi-link"],
  "pluginsConfig": {
    "download-pdf-link": {
      "base": "https://www.gitbook.com/book/poppy-project/poppy-docs/",
      "label"
      }: {
          "en": "Download PDF",
          "fr": "Télécharger le PDF"
      }
    }
  }
}
{
  "plugins": ["pdf-multi-link"],
  "pluginsConfig": {
    "download-pdf-link": {
      "base": { 
        "en":"https://www.gitbook.com/book/poppy-project/poppy-docs/en.pdf",
        "fr":"https://www.gitbook.com/book/poppy-project/poppy-docs/fr.pdf",
      },
      "label"
      }: {
          "en": "Download PDF",
          "fr": "Télécharger le PDF"
      }
    }
  }
}

2.3 效果

(略)

download-pdf-link 插件在每个页面上添加一个链接以下载 PDF。

3.1 安装

npm i gitbook-plugin-download-pdf-link

or

gitbook install

3.2 配置

{
  "plugins": ["download-pdf-link"],
  "pluginsConfig": {
    "download-pdf-link": {
      "base": "https://www.gitbook.com/book/poppy-project/poppy-docs/",
      "label": {
          "en": "Download PDF",
          "fr": "Télécharger le PDF"
      }
    }
  }
}

3.3 效果

(略)

Copyright © ghostwritten 浙ICP备2020032454号 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-06-19 07:31:54

results matching ""

    No results matching ""