0.0.8 • Published 3 years ago

@techwriter/pview v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

pview

A script for Pantheon 2 styled AsciiDoc previews. Use in addition to asciidoctor for previewing your files.

npm i -g @techwriter/pview

pview <adoc-filename>

Note: pview does not inspect your files for validity. Files that are invalid for Pantheon 2 convert without errors. Use this script to validate table and source code layout.

Prerequisites

Before installing this, make sure asciidoctor is installed and your system is capable of running HAML templates:

gem install --user tilt
gem install --user coderay
gem install --user haml
gem install --user thread_safe

Optionally, install concurrent-ruby.

You can create pantheon html from anywhere on your system, using any valid asciidoctor options:

pview <asciidoctor-options>

For example:

pview -a data-uri -a allow-uri-read my-document.adoc

produces an HTML document with embedded images.

Note that this creates a HTML file that you probably want to delete after previewing.

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago