New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gitbook-plugin-get-pdf

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-get-pdf

在页面左上角添加下载 PDF 链接

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

gitbook-plugin-get-pdf

在顶部左侧工具栏添加下载 PDF 链接,修复了 download-pdf-link 链接地址错误的问题。

下载该插件

npm install gitbook-plugin-get-pdf

使用该插件

多语言环境

{
    "plugins": ["get-pdf"],
    "pluginsConfig": {
        "get-pdf": {
            "base": "http://pmglab.top/commandParser/",
            "prefix": "book",
            "label": {
                "en": "Download PDF",
                "zh": "下载 PDF"
            }
        }
    }
}

自动文件名格式: base/prefix_lang.pdf

例: 若在 en 语言下点击下载按钮,将打开 http://pmglab.top/commandParser/book_en.pdf 文件。

单语言环境

{
    "plugins": ["get-pdf"],
    "pluginsConfig": {
        "get-pdf": {
            "base": "http://pmglab.top/commandParser/",
            "prefix": "book",
            "label": "下载 PDF"
        }
    }
}

自动文件名格式: base/prefix.pdf

例: 点击下载按钮,将打开 http://pmglab.top/commandParser/book.pdf 文件。

Keywords

gitbook

FAQs

Package last updated on 10 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts