]> git.draconx.ca Git - homepage.git/blobdiff - Rules
Put some actual material on the site.
[homepage.git] / Rules
diff --git a/Rules b/Rules
index 79dc5f46fa21212229e021c82f8204ff7b65f530..d0a81fb8c496c7f2232393bdba6f32dbd68fdc30 100644 (file)
--- 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