Sha256: aff7933768c0c45405125e43737c0c6cbc522d939bd86a8e8d69027323caa905

Contents?: true

Size: 378 Bytes

Versions: 48

Compression:

Stored size: 378 Bytes

Contents

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

48 entries across 48 versions & 1 rubygems

Version Path
discorb-0.13.4 template-replace/scripts/sidebar.rb
discorb-0.13.3 template-replace/scripts/sidebar.rb
discorb-0.13.2 template-replace/scripts/sidebar.rb
discorb-0.13.1 template-replace/scripts/sidebar.rb
discorb-0.13.0 template-replace/scripts/sidebar.rb
discorb-0.12.4 template-replace/scripts/sidebar.rb
discorb-0.12.3 template-replace/scripts/sidebar.rb
discorb-0.12.2 template-replace/scripts/sidebar.rb
discorb-0.12.1 template-replace/scripts/sidebar.rb
discorb-0.12.0 template-replace/scripts/sidebar.rb
discorb-0.11.4 template-replace/scripts/sidebar.rb
discorb-0.11.3 template-replace/scripts/sidebar.rb
discorb-0.11.2 template-replace/scripts/sidebar.rb
discorb-0.11.1 template-replace/scripts/sidebar.rb
discorb-0.11.0 template-replace/scripts/sidebar.rb
discorb-0.10.3 template-replace/scripts/sidebar.rb
discorb-0.10.2 template-replace/scripts/sidebar.rb
discorb-0.10.1 template-replace/scripts/sidebar.rb
discorb-0.10.0 template-replace/scripts/sidebar.rb
discorb-0.9.6 template-replace/scripts/sidebar.rb