class IsoDoc::M3AAWG::HtmlConvert

Public Class Methods

new(options) click to toggle source
Calls superclass method
# File lib/isodoc/m3aawg/html_convert.rb, line 13
def initialize(options)
  #require "byebug"; byebug
  super
end

Public Instance Methods

colophon(body, docxml) click to toggle source
# File lib/isodoc/m3aawg/html_convert.rb, line 18
      def colophon(body, docxml)
        body.div **{ class: "colophon" } do |div|
          div << <<~"COLOPHON"
          <p>As with all M<sup>3</sup>AAWG documents that we publish,
          please check the M<sup>3</sup>AAWG website
          (<a href="http://www.m3aawg.org">www.m3aawg.org</a>) for updates to
          this paper.</p>
          <p>&copy; #{@meta.get[:docyear]} copyright by the Messaging, Malware
          and Mobile Anti-Abuse Working Group (M<sup>3</sup>AAWG)</p>
          COLOPHON
        end
      end
configuration() click to toggle source
# File lib/isodoc/m3aawg/html_convert.rb, line 9
def configuration
  Metanorma::M3AAWG.configuration
end
make_body(xml, docxml) click to toggle source
# File lib/isodoc/m3aawg/html_convert.rb, line 31
def make_body(xml, docxml)
  body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72",
                "xml:lang": "EN-US", class: "container" }
  xml.body **body_attr do |body|
    make_body1(body, docxml)
    make_body2(body, docxml)
    make_body3(body, docxml)
    colophon(body, docxml)
  end
end