Sha256: 83ac0e03e996d1d7d00ab8f89621e4cf4a83666b247df28c24814799cf5c38a0
Contents?: true
Size: 1.3 KB
Versions: 11
Compression:
Stored size: 1.3 KB
Contents
require_relative "base_convert" require "isodoc" module IsoDoc module Acme # A {Converter} implementation that generates HTML output, and a document # schema encapsulation of the document for validation # class HtmlConvert < IsoDoc::HtmlConvert def initialize(options) @libdir = File.dirname(__FILE__) super end def default_fonts(options) { bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Overpass",sans-serif'), headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Overpass",sans-serif'), monospacefont: '"Space Mono",monospace' } end def default_file_locations(_options) { htmlstylesheet: html_doc_path("htmlstyle.scss"), htmlcoverpage: html_doc_path("html_acme_titlepage.html"), htmlintropage: html_doc_path("html_acme_intro.html"), scripts: html_doc_path("scripts.html"), } end def googlefonts <<~HEAD.freeze <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet"> HEAD end include BaseConvert end end end
Version data entries
11 entries across 11 versions & 1 rubygems