From 2a23a35a483b033b7b72ed60b75dd5b11decdda2 Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Sun, 23 Oct 2011 14:10:43 -0700 Subject: [PATCH] don't generate scripts.html anymore, it's assembled dynamically --- TODO | 7 +++++++ scraper | 6 ------ views/script.html.erb | 45 ------------------------------------------ views/scripts.html.erb | 15 -------------- 4 files changed, 7 insertions(+), 66 deletions(-) delete mode 100644 views/script.html.erb delete mode 100644 views/scripts.html.erb diff --git a/TODO b/TODO index 434a0d7..b7e59b2 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,10 @@ +What happens if we try to tag the same tag twice? + +WTF happened to 2387? Its description is now Wisely add ? + +Also https://github.com/vim-scripts/DBGp-client--Lancien is jacked + + push repos/dbext.vim ~/vim-scraper/repos/dbext.vim.git$ git push origin master Counting objects: 17, done. diff --git a/scraper b/scraper index c2d2d02..a082cc0 100755 --- a/scraper +++ b/scraper @@ -487,12 +487,6 @@ def generate_docs doc_dir = 'vim-scripts.github.com' Dir.mkdir doc_dir unless test ?d, doc_dir - index_template = Erubis::Eruby.new(File.new(File.join('views', 'scripts.html.erb')).read) - File.open("#{doc_dir}/vim/scripts.html", 'w') do |f| - f.write index_template.result(:scripts => good_scripts) - end - - File.open("#{doc_dir}/api/scripts.json", 'w') do |f| f.write good_scripts.map { |s| s.name }.to_json end diff --git a/views/script.html.erb b/views/script.html.erb deleted file mode 100644 index cda279b..0000000 --- a/views/script.html.erb +++ /dev/null @@ -1,45 +0,0 @@ ---- -layout: default -title: <%= h script.name %> ---- - -

<%= h script.script_id.to_s + " - " + script.name %>

-

- <%= h script.script_type %> - [ GitHub ] - [ vim.org ] -
- originally <%= script.display_name %> -

- -

<%= h script.summary %>

- -Releases: - - - <% script.versions.each do |version| %> - - - - - <% end %> -
<%= h version.script_version %><%= h version.date %><%= - author_name, author_email = fix_email_address(version['author']) - h "#{author_name} <#{author_email}>" - %> -
- -
- -
-<%= h script.description %>

-
- -
- -The script should just work. If not, here are the original install details: - -
-<%= h script.install_details %>

-
- diff --git a/views/scripts.html.erb b/views/scripts.html.erb deleted file mode 100644 index 4c9d098..0000000 --- a/views/scripts.html.erb +++ /dev/null @@ -1,15 +0,0 @@ ---- -layout: default -title: All Scripts ---- - - - <% scripts.each do |script| -%> - - - - - - - <% end -%> -
<%= h script.script_id %><%= h script.script_type %><%= h script.display_name %><%= h script.summary %>