X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/b6d30bd05c54078bbf60e7242aabff21ed4492da..de605446b3ed408672aecd74462a25de41c1367c:/Rules diff --git a/Rules b/Rules index 79dc5f4..d0a81fb 100644 --- a/Rules +++ b/Rules @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # -# Copyright © 2018 Nick Bowler +# Copyright © 2018-2019 Nick Bowler # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -48,8 +48,20 @@ postprocess do end end +compile '/license/gpl*.md' do + filter :kramdown, auto_ids: false, header_offset: -1 + layout '/default.xml' + layout '/gpl.xsl' + layout '/default.xsl' + filter :relativize_paths, type: :xml + filter :remove_wj + write to_xhtml +end + compile '/**/*.md' do - filter :kramdown, header_offset: 1 + filter :erb + filter :kramdown, auto_ids: false, header_offset: 1 + snapshot :rawbody layout '/default.xml' layout '/default.xsl' filter :relativize_paths, type: :xml