From 0908042369681d6accc69b75e8386bb746d40491 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Wed, 31 Jul 2024 07:50:06 -0400 Subject: Allow for bypassing of tidy process Sometimes a tidy HTML file isn't right for a file: for example a poem where we don't want to use
 tags. So we rely on "white-space:
pre" to allow it to be retained; but tidy would remove that.

So during build we can extract the "notidy" tag and if its unset we
will run the same tidy as usual else we bypass it outright
---
 tidy.sh | 13 -------------
 1 file changed, 13 deletions(-)
 delete mode 100755 tidy.sh

(limited to 'tidy.sh')

diff --git a/tidy.sh b/tidy.sh
deleted file mode 100755
index 6efdb2d..0000000
--- a/tidy.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-
-if [ $# == 0 ]; then
-  find www/ -name '*.html' -type f -print -exec tidy -mq -config tidy.conf '{}' \;
-  if [ $? -lt 2 ]; then
-    exit 0
-  fi
-else
-  tidy -mq -config tidy.conf $@
-  if [ $? -lt 2 ]; then
-    exit 0
-  fi
-fi
-- 
cgit v1.2.3-54-g00ecf