_docker/lib/export/export_html_post_processor.rb
def relocate_index_html(export_directory)
    FileUtils.mv("#{export_directory}/index/index.html", "#{export_directory}/index.html")
    FileUtils.rm_rf("#{export_directory}/index")
    @process_runner.execute!("sed -i'' -e s:'\\.\\.\\/':'':g #{export_directory}/index.html")
    @log.info("Moved #{export_directory}/index/index.html to #{export_directory}/index.html.")
  end
#
# Moves the index/index.html file up one directory so that the home-page is served by default when browsing
# to the root of the directory
#
Moves the index/index.html file up one directory so that the home-page is served by default when browsing
to the root of the directory
Moves the index / index . html file up one directory so that the home - page is served by default when browsing to the root of the directory
def relocate_index_html(export_directory)
    FileUtils.mv("#{export_directory}/index/index.html", "#{export_directory}/index.html")
    FileUtils.rm_rf("#{export_directory}/index")
    @process_runner.execute!("sed -i'' -e s:'\\.\\.\\/':'':g #{export_directory}/index.html")
    @log.info("Moved #{export_directory}/index/index.html to #{export_directory}/index.html.")
  end
def relocate_index_html ( export_directory ) FileUtils . mv ( "#{export_directory}/index/index.html" , "#{export_directory}/index.html" ) FileUtils . rm_rf ( "#{export_directory}/index" ) @process_runner . execute! ( "sed -i'' -e s:'\\.\\.\\/':'':g #{export_directory}/index.html" ) @log . info ( "Moved #{export_directory}/index/index.html to #{export_directory}/index.html." ) end
Moves the index/index.html file up one directory so that the home-page is served by default when browsing
to the root of the directory
Moves the index / index . html file up one directory so that the home - page is served by default when browsing to the root of the directory
export_directory