Sha256: cb6db91b31943e14ae73276469bd0c75932477fd8428beaa55f4f8dd552aae3b

Contents?: true

Size: 1.36 KB

Versions: 70

Compression:

Stored size: 1.36 KB

Contents

# HTML writer
# additional documentation

# History:
#  Stan Smith 2017-04-04 refactored for mdTranslator 2.0
# 	Stan Smith 2015-08-21 original script

require_relative 'html_resourceType'
require_relative 'html_citation'

module ADIWG
   module Mdtranslator
      module Writers
         module Html

            class Html_AdditionalDocumentation

               def initialize(html)
                  @html = html
               end

               def writeHtml(hAddDoc)

                  # classes used
                  typeClass = Html_ResourceType.new(@html)
                  citationClass = Html_Citation.new(@html)

                  # additional documentation - resource type [] {resourceType}
                  hAddDoc[:resourceTypes].each do |hType|
                     typeClass.writeHtml(hType)
                  end

                  # additional documentation - citation [] {citation}
                  hAddDoc[:citation].each do |hCitation|
                     @html.details do
                        @html.summary(hCitation[:title], {'class' => 'h5'})
                        @html.section(:class => 'block') do
                           citationClass.writeHtml(hCitation)
                        end
                     end
                  end

               end # writeHtml
            end # Html_AdditionalDocumentation

         end
      end
   end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb