Sha256: aa55f15a6c623abf063c72c308ef31a063fb96d18d0d8b1c627b7b648e5c17f4

Contents?: true

Size: 408 Bytes

Versions: 10

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true
def replace_sidebar(file)
  html = File.read(file)
  files_html = <<-HTML
            <span><a target="_self" href="file_list.html">
              Files
            </a></span>
  HTML
  index = html.index(files_html)
  html.insert(index + files_html.length, '<!--od--><span><a target="_self" href="version_list.html">Versions</a></span><!--eod-->')
  File.write(file, html)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
discorb-0.20.0 template-replace/scripts/sidebar.rb
discorb-0.19.0 template-replace/scripts/sidebar.rb
discorb-0.18.1 template-replace/scripts/sidebar.rb
discorb-0.18.0 template-replace/scripts/sidebar.rb
discorb-0.17.1 template-replace/scripts/sidebar.rb
discorb-0.17.0 template-replace/scripts/sidebar.rb
discorb-0.16.0 template-replace/scripts/sidebar.rb
discorb-0.15.1 template-replace/scripts/sidebar.rb
discorb-0.15.0 template-replace/scripts/sidebar.rb
discorb-0.14.0 template-replace/scripts/sidebar.rb