Sha256: e7c826cff500f76706130758c5608700304bca24ca779e4d943d081b01ae6cba
Contents?: true
Size: 886 Bytes
Versions: 3
Compression:
Stored size: 886 Bytes
Contents
require "metanorma/processor" module Metanorma module Vsd class Processor < Metanorma::Generic::Processor def configuration Metanorma::Vsd.configuration end def output_formats super.merge( html: "html", doc: "doc" ).tap { |hs| hs.delete(:pdf) } end def version "Metanorma::Vsd #{Metanorma::Vsd::VERSION}" end def input_to_isodoc(file, filename) Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend) end def output(isodoc_node, outname, format, options={}) case format when :html IsoDoc::Vsd::HtmlConvert.new(options).convert(outname, isodoc_node) when :doc IsoDoc::Vsd::WordConvert.new(options).convert(outname, isodoc_node) else super end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metanorma-vsd-1.0.10 | lib/metanorma/vsd/processor.rb |
metanorma-vsd-1.0.9 | lib/metanorma/vsd/processor.rb |
metanorma-vsd-1.0.8 | lib/metanorma/vsd/processor.rb |