Sha256: fff1008aac4f8038c42786fbf32121bb65aa47651fd8be0bb364ef0f90d029e0

Contents?: true

Size: 568 Bytes

Versions: 16

Compression:

Stored size: 568 Bytes

Contents

module Asciidoctor
  module M3AAWG
    class Converter < Standoc::Converter
      def content_validate(doc)
        super
        bibdata_validate(doc.root)
      end

      def bibdata_validate(doc)
        stage_validate(doc)
      end

      def stage_validate(xmldoc)
        stage = xmldoc&.at("//bibdata/status/stage")&.text
        %w(proposal working-draft committee-draft draft-standard final-draft
        published withdrawn).include? stage or
        @log.add("Document Attributes", nil, "#{stage} is not a recognised status")
      end
    end
  end
end

Version data entries

16 entries across 13 versions & 2 rubygems

Version Path
metanorma-m3aawg-1.5.6 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.5.5 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.5.4 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.5.3 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.5.2 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.5.1 lib/asciidoctor/m3aawg/validate.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-m3aawg-1.5.0/lib/asciidoctor/m3aawg/validate.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-m3aawg-1.4.3/lib/asciidoctor/m3aawg/validate.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-m3aawg-1.4.2/lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.5.0 lib/asciidoctor/m3aawg/validate.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-m3aawg-1.4.2/lib/asciidoctor/m3aawg/validate.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-m3aawg-1.4.3/lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.4.3 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.4.2 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.4.1 lib/asciidoctor/m3aawg/validate.rb
metanorma-m3aawg-1.4.0 lib/asciidoctor/m3aawg/validate.rb