Socket
Book a DemoInstallSign in
Socket

count-docu

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

count-docu

Generated documentation

latest
npmnpm
Version
0.1.8
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

This npm module helps generate a single html page from a set of markdown files, images and plantuml documents.

How to use

Greenkeeper badge

Features are best explored by looking into the documentation.

Prerequisite

You have to install pandoc: http://pandoc.org/installing.html

Install Graphviz for UML diagrams via plantuml

For PDF generation install wkhtmltopdf.

How to integrate

to start the generation:

require('count-docu').generate({})

The options available are as follows:

propertydefaultdescription
targetPath{cwd}/distpath to folder where the generated html is put
source{cwd}/srcpath to folder containing the markdown files
template-path to main handlebars template
targetHtml{cwd}/dist/index.htmlhtml file
titleDocumentationtitle of documentation
description..description displayed below title
pdffalserender html for conversion to pdf
pdfDownloadfalseadd a download link to 'index.pdf'
description..description displayed below title
maxCommits-number of git commits to be displayed in history
headerColor#fffcolor of title
headerBgColor#563d7ccolor of header
headerDescriptionColor#cdbfe3color of description

PDF

To render a pdf version use wkhtmltopdf (>0.12.4 with patched qt) which renders proper links and table of content

wkhtmltopdf --page-size A4 --viewport-size 1024x768 --disable-smart-shrinking --zoom 5.5 --outline dist/pdf.html dist/index.pdf

Credits

Plantuml

This software includes the awesome plantuml library (MIT license) from plantuml.com

node-plantuml

Modified bits and pieces from node-plantuml) are included in this software.

Keywords

node

FAQs

Package last updated on 10 Nov 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.