@techwriter/pview
v0.0.8
Published
A previewer for AsciiDoc using Pantheon II styling
Downloads
2
Readme
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.