Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMike Gerwitz <mike@mikegerwitz.com>2013-06-02 12:00:37 -0400
committerMike Gerwitz <mike@mikegerwitz.com>2013-06-02 12:27:03 -0400
commit48532359bd0ee0daf32004ac0c1aff7ddd064316 (patch)
treeac2618ba596c6bd6c1672dd4cc43c8c40daba691 /tools
parent876b763a8d26a0eace08b70cfd50d44183a2bdde (diff)
downloadthoughts-48532359bd0ee0daf32004ac0c1aff7ddd064316.tar.gz
thoughts-48532359bd0ee0daf32004ac0c1aff7ddd064316.tar.bz2
thoughts-48532359bd0ee0daf32004ac0c1aff7ddd064316.zip
Added doclist script for generating HTML fragment for papers page
Diffstat (limited to 'tools')
-rwxr-xr-xtools/doclist14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/doclist b/tools/doclist
index 8583f31..08bad5f 100755
--- a/tools/doclist
+++ b/tools/doclist
@@ -37,3 +37,17 @@ while read f; do
done
echo '</ol>'
+
+# finally, include highlighted thoughts
+echo '<h3>Thoughts</h3>'
+echo '<ol class="docs">'
+
+# TODO: use hashcache abstraction via repo2html...file format could change
+# TODO: would be useful to sort on subject
+for c in docs/papers/thoughts/*; do
+ grep "^${c##*/}" .hashcache \
+ | head -n1 \
+ | { read h u t && printf '<li><a href="/%s">%s</a></li>\n' "$u" "$t"; }
+done
+
+echo '</ol>'