class Metanorma::Standoc::Converter
A {Converter} implementation that generates Standoc
output, and a document schema encapsulation of the document for validation
Attributes
_file[RW]
Public Class Methods
inherited(konv)
click to toggle source
# File lib/metanorma/standoc/converter.rb, line 97 def self.inherited(konv) # rubocop:disable Lint/MissingSuper konv._file = caller_locations(1..1).first.absolute_path end
new(backend, opts)
click to toggle source
Calls superclass method
# File lib/metanorma/standoc/converter.rb, line 86 def initialize(backend, opts) super basebackend "html" outfilesuffix ".xml" @libdir = File.dirname(self.class::_file || __FILE__) end
Public Instance Methods
content(node)
click to toggle source
# File lib/metanorma/standoc/converter.rb, line 106 def content(node) node.content end
Also aliased as: embedded
html_doc_path(file)
click to toggle source
path to isodoc assets in child gems
# File lib/metanorma/standoc/converter.rb, line 102 def html_doc_path(file) File.join(@libdir, "../../isodoc/html", file) end
skip(node, name = nil)
click to toggle source
# File lib/metanorma/standoc/converter.rb, line 110 def skip(node, name = nil) name = name || node.node_name w = "converter missing for #{name} node in Metanorma backend" @log.add("AsciiDoc Input", node, w) nil end