Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docusaurus-pdf

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docusaurus-pdf

Generate pdf from docusaurus document

  • 0.1.2
  • npm
  • Socket score

Version published
Weekly downloads
45
decreased by-8.16%
Maintainers
1
Weekly downloads
 
Created
Source

Introduction

This is a PDF generator from docusaurus document.

*Note

  • This plugin is not intended to be used during build process.

Demo

This is generated PDF of official docusaurus website: https://drive.google.com/file/d/19P3qSwLLUHYigrxH3QXIMXmRpTFi4pKB/view

Usage

1. Start your docusaurus project

yarn start

2. Open new terminal windows

npx docusaurus-pdf <initialDocsUrl> [filename] [baseUrl]

For example

npx docusaurus-pdf http://localhost:3000/myurl/docs/doc1 hoge.pdf myurl

*NOTE!

  • initialDocsUrl is required.
  • filename is optional (default is docusaurus.pdf).
  • baseUrl is the baseUrl setting from docusaurus.config.js. It is optional (default is empty string). You must specify a filename to use a custom baseUrl.
  1. Move generated pdf file to static/img folder.
  2. <a> tag with target="_blank"
<a href={useBaseUrl('img/docusaurus.pdf')} target="_blank">
  Download PDF
</a>

NOTE!

  1. If this plugin cannot find next page link, PDF generation will stop.

note

  1. Dark theme PDF cannot be generated correctly now.

Keywords

FAQs

Package last updated on 03 Apr 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc