Class: Giblish::AbsoluteLinkedCss

Inherits:
DocAttributesBase show all
Defined in:
lib/giblish/docattr_providers.rb

Instance Method Summary collapse

Constructor Details

#initialize(css_path) ⇒ AbsoluteLinkedCss

Returns a new instance of AbsoluteLinkedCss.



9
10
11
# File 'lib/giblish/docattr_providers.rb', line 9

def initialize(css_path)
  @css_path = Pathname.new(css_path)
end

Instance Method Details

#document_attributes(src_node, dst_node, dst_top) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/giblish/docattr_providers.rb', line 13

def document_attributes(src_node, dst_node, dst_top)
  {
    "stylesdir" => @css_path.dirname.to_s,
    "stylesheet" => @css_path.basename.to_s,
    "linkcss" => true,
    "copycss" => nil
  }
end