aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-03 21:45:14 -0300
committerEuAndreh <eu@euandre.org>2021-01-03 21:46:00 -0300
commitbff2b07922272fd4c8f9ee0a7129d0a7c134dd38 (patch)
tree59ad59d56d90ee1f11d3d87e1303c3a201c2d0f4
parentTODOs.org: Mark 720e79b4-9e38-41c6-9958-cdadd67d2298 as done (diff)
downloadeuandre.org-bff2b07922272fd4c8f9ee0a7129d0a7c134dd38.tar.gz
euandre.org-bff2b07922272fd4c8f9ee0a7129d0a7c134dd38.tar.xz
Enable embed-source-code for all LilyPond files, and enforce on linter.rb
Diffstat (limited to '')
-rw-r--r--_plugins/linter.rb6
-rw-r--r--music/choro-da-saudade.ly1
-rw-r--r--music/dengoso.ly1
-rw-r--r--music/marcha-dos-marinheiros.ly1
4 files changed, 7 insertions, 2 deletions
diff --git a/_plugins/linter.rb b/_plugins/linter.rb
index 8078dae..4972106 100644
--- a/_plugins/linter.rb
+++ b/_plugins/linter.rb
@@ -202,10 +202,12 @@ module Jekyll
raise "Missing '#{ly}' file present in _config.yml."
end
- point_and_click_off = open(ly) { |f| f.include? "\\pointAndClickOff\n" }
- unless point_and_click_off then
+ unless open(ly) { |f| f.include? "\\pointAndClickOff\n" } then
raise "Missing '\\pointAndClickOff' in '#{ly}'"
end
+ unless open(ly) { |f| f.include? "#(ly:set-option 'embed-source-code #t)\n" } then
+ raise "Missing '#(ly:set-option 'embed-source-code #t)' in '#{ly}'"
+ end
end
end
diff --git a/music/choro-da-saudade.ly b/music/choro-da-saudade.ly
index 08b1c6e..f8fe7ff 100644
--- a/music/choro-da-saudade.ly
+++ b/music/choro-da-saudade.ly
@@ -1,5 +1,6 @@
\version "2.20.0"
\pointAndClickOff
+#(ly:set-option 'embed-source-code #t)
\include "common.ly"
\include "guitar.ly"
diff --git a/music/dengoso.ly b/music/dengoso.ly
index f0cc730..dc28c57 100644
--- a/music/dengoso.ly
+++ b/music/dengoso.ly
@@ -1,5 +1,6 @@
\version "2.20.0"
\pointAndClickOff
+#(ly:set-option 'embed-source-code #t)
\include "common.ly"
\include "guitar.ly"
diff --git a/music/marcha-dos-marinheiros.ly b/music/marcha-dos-marinheiros.ly
index f654298..66830f4 100644
--- a/music/marcha-dos-marinheiros.ly
+++ b/music/marcha-dos-marinheiros.ly
@@ -1,5 +1,6 @@
\version "2.20.0"
\pointAndClickOff
+#(ly:set-option 'embed-source-code #t)
\include "common.ly"
\include "guitar.ly"