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.9.5 template-replace/scripts/sidebar.rb
discorb-0.9.4 template-replace/scripts/sidebar.rb
discorb-0.9.3 template-replace/scripts/sidebar.rb
discorb-0.9.1 template-replace/scripts/sidebar.rb
discorb-0.9.0 template-replace/scripts/sidebar.rb
discorb-0.8.2 template-replace/scripts/sidebar.rb
discorb-0.8.1 template-replace/scripts/sidebar.rb
discorb-0.8.0 template-replace/scripts/sidebar.rb
discorb-0.7.6 template-replace/scripts/sidebar.rb
discorb-0.7.3 template-replace/scripts/sidebar.rb
discorb-0.7.2 template-replace/scripts/sidebar.rb
discorb-0.7.1 template-replace/scripts/sidebar.rb
discorb-0.7.0 template-replace/scripts/sidebar.rb
discorb-0.6.1 template-replace/scripts/sidebar.rb
discorb-0.6.0 template-replace/scripts/sidebar.rb
discorb-0.5.6 template-replace/scripts/sidebar.rb
discorb-0.5.5 template-replace/scripts/sidebar.rb
discorb-0.5.4 template-replace/scripts/sidebar.rb
discorb-0.5.3 template-replace/scripts/sidebar.rb
discorb-0.5.2 template-replace/scripts/sidebar.rb