lib/isodoc/generic/html_convert.rb in metanorma-generic-1.7.3 vs lib/isodoc/generic/html_convert.rb in metanorma-generic-1.8.0
- old
+ new
@@ -30,11 +30,15 @@
),
headerfont: (
options[:script] == "Hans" ? '"SimHei",sans-serif' :
configuration.html_headerfont || '"Overpass",sans-serif'
),
- monospacefont: configuration.html_monospacefont || '"Space Mono",monospace'
+ monospacefont: configuration.html_monospacefont || '"Space Mono",monospace',
+ normalfontsize: configuration.html_normalfontsize,
+ smallerfontsize: configuration.html_smallerfontsize,
+ footnotefontsize: configuration.html_footnotefontsize,
+ monospacefontsize: configuration.html_monospacefontsize,
}.transform_values { |v| v&.empty? ? nil : v }
end
def default_file_locations(_options)
{
@@ -48,15 +52,9 @@
html_doc_path("scripts.html"),
i18nyaml: (configuration.i18nyaml.is_a?(String) ?
baselocation(configuration.i18nyaml) : nil)
}.transform_values { |v| v&.empty? ? nil : v }
end
-
-=begin
- def configuration
- Metanorma::Generic.configuration
- end
-=end
def googlefonts
return unless configuration.webfont
Array(configuration.webfont).map do |x|
%{<link href="#{x.gsub(/\&/, '&')}" rel="stylesheet">}