Compare commits
No commits in common. "1c6f497aee123bba83db74d78457b878989d9a1d" and "7687127136e9b153d74bce1fe92e3d2648cf7a71" have entirely different histories.
1c6f497aee
...
7687127136
4
todo.css
4
todo.css
|
@ -8,10 +8,6 @@
|
||||||
margin-top: 1.5em;
|
margin-top: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.due_today {
|
|
||||||
color: #400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.completed {
|
.completed {
|
||||||
display: none;
|
display: none;
|
||||||
color: darkgrey;
|
color: darkgrey;
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This script assumes debounce.sh from
|
|
||||||
# https://github.com/MerkleBros/debounce.sh
|
|
||||||
# is in the path.
|
|
||||||
|
|
||||||
cd "$(dirname "$0")" || exit
|
|
||||||
if [ ! -d ".venv" ]
|
|
||||||
then
|
|
||||||
python -m venv .venv
|
|
||||||
. .venv/bin/activate
|
|
||||||
pip install -r requirements.txt
|
|
||||||
else
|
|
||||||
. .venv/bin/activate
|
|
||||||
fi
|
|
||||||
|
|
||||||
name="$(basename "$(basename "$1")" .txt)"
|
|
||||||
echo "Watching $1 and writing to $2/$name.html"
|
|
||||||
while true
|
|
||||||
do
|
|
||||||
inotifywait -e close_write "$1" >/dev/null
|
|
||||||
echo "TODO file updated."
|
|
||||||
done | debounce.sh read 5 "./todotxt-to-html.py - \"$name\" < \"$1\" > \"$2/$name.html\""
|
|
Loading…
Reference in New Issue
Block a user