list

scripts

Repo containing scripts to be used with dovel, and git hooks that powers our web interface.

curl https://dovel.email/scripts.tar tar

450793a

Author: brian (git@myr.sh)

Date: Wed Sep 20 01:34:52 2023 -0300

Parent: d7985d1

Improved tree

Diff

diff --git a/update-repo-tree b/update-repo-tree
index c92624e..6d49e88 100755
--- a/update-repo-tree
+++ b/update-repo-tree
@@ -26,6 +26,9 @@ cat << EOF > "$OUT/tree.html"
padding: 20px;
font-family: sans-serif;
}
+	table {
+		width: 100%
+	}
pre {
white-space: pre-line;
font-family: monospace;
@@ -58,13 +61,14 @@ cat << EOF > "$OUT/tree.html"
<tr><th>Size</th><th>Name</th><th>Raw</th></tr>
EOF

+# TODO: create each html page for a file
cd "$OUT/tree" && find * -type f -printf '%s %p\n' | while read -r s f
do
cat <<- EOF >> "$OUT/tree.html"
<tr>
<td>$s</td>
-	<td><a href=$f.html>$f</a></td>
-	<td><a href=$f>raw</a></td>
+	<td><a href=tree/$f.html>$f</a></td>
+	<td><a href=tree/$f>raw</a></td>
</tr>
EOF
done