Skip to content

ggrossetie/asciidoctor-manpage.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Man(ual) page converter for Asciidoctor.js

Build status npm version

Install

$ npm i @asciidoctor/core @asciidoctor/manpage-converter

Usage

var asciidoctor = require('@asciidoctor/core')()
require('@asciidoctor/manpage-converter')()

const options = {
  attributes: { backend: 'manpage', doctype: 'book' },
  standalone: true
}

const content = `= Manual page
:doctitle: Awesome Asciidoctor
:docdate: 2019-01-01

== First section

Once upon a time...`

const manpage = asciidoctor.convert(content, options)
//console.log(manpage)