Sha256: 5a547042cd070cb5d31df500329b8fff83b4db6b0a75aba657e5a1e912fa966e

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

= isodoc


image:https://img.shields.io/gem/v/isodoc.svg["Gem Version", link="https://rubygems.org/gems/isodoc"]
image:https://img.shields.io/travis/riboseinc/asciidoctor-iso/master.svg["Build Status", link="https://travis-ci.org/riboseinc/isodoc"]
image:https://codeclimate.com/github/riboseinc/isodoc/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/isodoc"]

This Gem converts documents in the https://github.com/riboseinc/isodoc-models[ISODoc document model] into HTML and Microsoft Word.

The Gem is a class called with a hash of file locations:

htmlstylesheet:: Generic stylesheet for HTML
wordstylesheet:: Generic stylesheet for Word
standardsheet:: Stylesheet specific to Standard
header:: Header file for Word
htmlcoverpage:: Cover page for HTML
wordcoverpage:: Cover page for Word
htmlintropage:: Introductory page for HTML
wordintropage:: Introductory page for Word

e.g.

[source,ruby]
--
        IsoDoc::Convert.new(
          htmlstylesheet: html_doc_path("htmlstyle.css"),
          wordstylesheet: nil,
          standardstylesheet: html_doc_path("isodoc.css"),
          header: html_doc_path("header.html"),
          htmlcoverpage: html_doc_path("iso_titlepage.html"),
          wordcoverpage: html_doc_path("iso_titlepage.html"),
          htmlintropage: html_doc_path("iso_intro.html"),
          wordintropage: html_doc_path("iso_intro.html"),
        )
--

NOTE: Cover page and Intro page must be XHTML fragments, not HTML fragments. In particular, unlike Word HTML, all HTML attributes need to be quoted: `<p class="MsoToc2">`, not `<p class=MsoToc2>`.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
isodoc-0.6.0 README.adoc
isodoc-0.5.9 README.adoc
isodoc-0.5.8 README.adoc
isodoc-0.5.7 README.adoc