lib/giblish/buildindex.rb in giblish-0.2.6 vs lib/giblish/buildindex.rb in giblish-0.2.7

- old
+ new

@@ -49,10 +49,11 @@ # creates a DocInfo instance, fills it with basic info and # returns the filled in instance so that derived implementations can # add more data def add_doc(adoc, adoc_stderr) Giblog.logger.debug { "Adding adoc: #{adoc} Asciidoctor stderr: #{adoc_stderr}" } + Giblog.logger.debug {"Doc attributes: #{adoc.attributes}"} info = DocInfo.new info.converted = true info.stderr = adoc_stderr @@ -61,11 +62,12 @@ # Get the purpose info if it exists info.purpose_str = get_purpose_info adoc # Get the relative path beneath the root dir to the doc + d_attr = adoc.attributes info.relPath = Pathname.new( - adoc.attributes["outfile"] + "#{d_attr['outdir']}/#{d_attr['docname']}#{d_attr['docfilesuffix']}" ).relative_path_from( @paths.dst_root_abs ) # Get the source file path and title