[SCM] patch-parser packaging branch, master, updated. 43474b21f016a6c6ceaa1bd528e34a0ab6b65fbb
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Tue Apr 14 07:56:03 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/patch-parser.git;a=commitdiff;h=325be8b
The following commit has been merged in the master branch:
commit 325be8bff30a575669dc37e3368cbfc700dc2865
Author: Harald Sitter <sitter at kde.org>
Date: Mon Apr 13 16:50:36 2015 +0200
write a master index.html pointing to branches
---
render.rb | 3 +++
views/index.html.haml | 10 ++++++++++
2 files changed, 13 insertions(+)
diff --git a/render.rb b/render.rb
index ddfcafc..9463674 100644
--- a/render.rb
+++ b/render.rb
@@ -42,3 +42,6 @@ Dir.chdir('cache') do
File.write("../#{branch}.html", html)
end
end
+
+html = Haml::Engine.new(File.read('views/index.html.haml')).render(BRANCHES)
+File.write('index.html', html)
diff --git a/views/index.html.haml b/views/index.html.haml
new file mode 100644
index 0000000..f6fd66e
--- /dev/null
+++ b/views/index.html.haml
@@ -0,0 +1,10 @@
+%html
+ %head
+ %meta{ 'http-equiv' => 'Content-Type',
+ content: 'text/html; charset=UTF-8' }
+ %meta{ charset: 'UTF-8' }
+ %body
+ %ul
+ - each do |branch|
+ %li
+ %a{ href: "#{branch}.html" }= branch
--
patch-parser packaging
More information about the pkg-kde-commits
mailing list