_docker/lib/export/export_html_post_processor.rb
def locate_index_link_href(html_document, html_page)
      home_link = html_document.css('#home-link')
      raise StandardError.new("Unable to locate link to index.html on page '#{html_page}'") if home_link.empty?
      raise StandardError.new("Found more than one link with id 'home-link' on page '#{html_page}'") if home_link.length > 1
      home_link.first.attributes['href'].value
  end
#
# Locates the link back to the index of the site. This is required so that we can re-write the search
# form target to be relative to the current page.
#
Locates the link back to the index of the site. This is required so that we can re-write the search
form target to be relative to the current page.
Locates the link back to the index of the site . This is required so that we can re - write the search form target to be relative to the current page .
def locate_index_link_href(html_document, html_page)
      home_link = html_document.css('#home-link')
      raise StandardError.new("Unable to locate link to index.html on page '#{html_page}'") if home_link.empty?
      raise StandardError.new("Found more than one link with id 'home-link' on page '#{html_page}'") if home_link.length > 1
      home_link.first.attributes['href'].value
  end
def locate_index_link_href ( html_document , html_page ) home_link = html_document . css ( '#home-link' ) raise StandardError . new ( "Unable to locate link to index.html on page '#{html_page}'" ) if home_link . empty? raise StandardError . new ( "Found more than one link with id 'home-link' on page '#{html_page}'" ) if home_link . length > 1 home_link . first . attributes [ 'href' ] . value end
Locates the link back to the index of the site.
Locates the link back to the index of the site .
html_document
html_page