Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / group-contents.awk
diff options
context:
space:
mode:
1 files changed, 0 insertions, 24 deletions
-rw-r--r--generate-hooks/group-contents.awk24
diff --git a/generate-hooks/group-contents.awk b/generate-hooks/group-contents.awk
deleted file mode 100644
index f71e93d..0000000
--- a/generate-hooks/group-contents.awk
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# == About ==
-#
-# This script surrounds the "Contents" heading, as well as the list itself, in a div wrapper element
-# For it to work properly, the contents heading must be h2 and have it's id as "contents",
-# and there must be a paragraph element after the item list
-
-BEGIN {
- started = 0
-}
-
-/h2 id="contents"/ {
- print "<div id=\"contents-container\">"
- started = 1
-}
-
-started == 1 && /<p>/ {
- print "</div>"
- started = 0
-}
-
-{
- print
-}