lib/metanorma/standoc/processor.rb in metanorma-standoc-2.0.4 vs lib/metanorma/standoc/processor.rb in metanorma-standoc-2.0.5
- old
+ new
@@ -1,10 +1,14 @@
require "metanorma/processor"
module Metanorma
module Standoc
class Processor < Metanorma::Processor
+ class << self
+ attr_reader :asciidoctor_backend
+ end
+
def initialize # rubocop:disable Lint/MissingSuper
@short = :standoc
@input_format = :asciidoc
@asciidoctor_backend = :standoc
end
@@ -20,10 +24,11 @@
def version
"Metanorma::Standoc #{Metanorma::Standoc::VERSION}/IsoDoc #{IsoDoc::VERSION}"
end
def html_path(file)
- File.join(File.dirname(__FILE__), "..", "..", "isodoc", "html", file)
+ File.join(File.dirname(__FILE__), "..", "..", "isodoc", "html",
+ file)
end
def output(isodoc_node, inname, outname, format, options = {})
case format
when :html