From 1d288cae171b2dd6fa225ff59797c2668e03870e Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 12 Sep 2021 21:40:25 +0200 Subject: Add songbook to index --- lib/latex.rb | 2 +- scripts/build.rb | 1 + src/index.html.erb | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/latex.rb b/lib/latex.rb index fa1094c..2adcb82 100644 --- a/lib/latex.rb +++ b/lib/latex.rb @@ -27,7 +27,7 @@ def render_songbook songs system "lualatex --shell-escape -output-directory=#{TmpDir}/ #{tmp 'songbook.tex'}" # compile twice for table of contents to generate properly system "lualatex --shell-escape -output-directory=#{TmpDir}/ #{tmp 'songbook.tex'}" - system "mv #{tmp 'songbook.pdf'} #{build 'songbook.pdf'}" + system "mv #{tmp 'songbook.pdf'} #{build 'śpiewnik-tradycyjny.pdf'}" end def make_pdfs songs diff --git a/scripts/build.rb b/scripts/build.rb index bbefac4..04e39d7 100644 --- a/scripts/build.rb +++ b/scripts/build.rb @@ -20,6 +20,7 @@ P = Pather.new P.add 'index', 'index.html' P.add 'style', 'style.css' +P.add 'songbook', 'śpiewnik-tradycyjny.pdf' songs.each_key do |song_id| P.add(song_html(song_id), song_html(song_id)) diff --git a/src/index.html.erb b/src/index.html.erb index 3748018..8d62de7 100644 --- a/src/index.html.erb +++ b/src/index.html.erb @@ -1,4 +1,10 @@ -Śpiewnik polskiej muzyki tradycyjnej. +

+ Śpiewnik polskiej muzyki tradycyjnej. +

+ +

+ Pobierz cały śpiewnik: '>[PDF]. +