Sha256: 40fee5786c3fcc61a35dbd6e771dd63c00d0ec8413d7ef5b34cd04da4a7c8a8e

Contents?: true

Size: 1.8 KB

Versions: 17

Compression:

Stored size: 1.8 KB

Contents

require "asciidoctor"
require "metanorma/standoc/version"
require "asciidoctor/standoc/base"
require "asciidoctor/standoc/front"
require "asciidoctor/standoc/lists"
require "asciidoctor/standoc/ref"
require "asciidoctor/standoc/inline"
require "asciidoctor/standoc/blocks"
require "asciidoctor/standoc/section"
require "asciidoctor/standoc/table"
require "asciidoctor/standoc/validate"
require "asciidoctor/standoc/utils"
require "asciidoctor/standoc/cleanup"
require_relative "./macros.rb"

module Asciidoctor
  module Standoc
    # A {Converter} implementation that generates Standoc output, and a document
    # schema encapsulation of the document for validation
    class Converter
      include ::Asciidoctor::Converter
      include ::Asciidoctor::Writer

      include ::Asciidoctor::Standoc::Base
      include ::Asciidoctor::Standoc::Front
      include ::Asciidoctor::Standoc::Lists
      include ::Asciidoctor::Standoc::Inline
      include ::Asciidoctor::Standoc::Blocks
      include ::Asciidoctor::Standoc::Section
      include ::Asciidoctor::Standoc::Table
      include ::Asciidoctor::Standoc::Utils
      include ::Asciidoctor::Standoc::Cleanup
      include ::Asciidoctor::Standoc::Validate

      register_for "standoc"

      $xreftext = {}

      def initialize(backend, opts)
        super
        basebackend "html"
        outfilesuffix ".xml"
        @libdir = File.dirname(__FILE__)
      end

      # path to isodoc assets in child gems
      def html_doc_path(file)
        File.join(@libdir, File.join("../../isodoc/html", file))
      end

      alias_method :embedded, :content
      alias_method :verse, :quote
      alias_method :audio, :skip
      alias_method :video, :skip
      alias_method :inline_button, :skip
      alias_method :inline_kbd, :skip
      alias_method :inline_menu, :skip
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
metanorma-standoc-1.3.0 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.2.4 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.2.3 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.2.2 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.2.1 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.2.0 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.9 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.8 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.7 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.6 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.5 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.4 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.3 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.2 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.1 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.1.0 lib/asciidoctor/standoc/converter.rb
metanorma-standoc-1.0.14 lib/asciidoctor/standoc/converter.rb