From bff2b07922272fd4c8f9ee0a7129d0a7c134dd38 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 3 Jan 2021 21:45:14 -0300 Subject: Enable embed-source-code for all LilyPond files, and enforce on linter.rb --- _plugins/linter.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '_plugins/linter.rb') 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 -- cgit v1.2.3