aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/assert-todos.sh10
-rwxr-xr-xbuild-aux/workflow/TODOs.sh19
-rw-r--r--build-aux/workflow/preamble.md15
-rw-r--r--build-aux/workflow/preamble.rst20
-rw-r--r--build-aux/workflow/style.css50
5 files changed, 80 insertions, 34 deletions
diff --git a/build-aux/assert-todos.sh b/build-aux/assert-todos.sh
index ebed4e8..ce6c95b 100755
--- a/build-aux/assert-todos.sh
+++ b/build-aux/assert-todos.sh
@@ -1,22 +1,22 @@
#!/bin/sh -eu
-if git grep FIXME | grep -v '^TODOs.rst' | grep -v '^build-aux/assert-todos.sh' | grep -v '^build-aux/docbook-xsl/'; then
+if git grep FIXME | grep -v '^TODOs.md' | grep -v '^build-aux/assert-todos.sh' | grep -v '^build-aux/docbook-xsl/'; then
echo "Found dangling FIXME markers on the project."
- echo "You should write them down properly on TODOs.rst."
+ echo "You should write them down properly on TODOs.md."
exit 1
fi
KNOWN_IDS=''
has_error=0
# shellcheck disable=2013
-for todo in $(sed -e '/^\* Tasks$/,/^\* Improvements$/!d' TODOs.rst | grep -nE '^\*\* .*$' | cut -d: -f1); do
- if sed "${todo}q;d" TODOs.rst | grep -qE '^\*\* (CANCELLED|DONE)'; then
+for todo in $(sed -e '/^\* Tasks$/,/^\* Improvements$/!d' TODOs.md | grep -nE '^\*\* .*$' | cut -d: -f1); do
+ if sed "${todo}q;d" TODOs.md | grep -qE '^\*\* (CANCELLED|DONE)'; then
ID_OFFSET=3
else
ID_OFFSET=2
fi
line_n="$((todo+ID_OFFSET))"
- ID_LINE="$(sed "${line_n}q;d" TODOs.rst)"
+ ID_LINE="$(sed "${line_n}q;d" TODOs.md)"
if echo "$ID_LINE" | grep -q '^:CUSTOM_ID: .*$'; then
ID="$(echo "$ID_LINE" | awk '{print $2}')"
if echo "$KNOWN_IDS" | grep -q "$ID"; then
diff --git a/build-aux/workflow/TODOs.sh b/build-aux/workflow/TODOs.sh
index f080001..b8a3f29 100755
--- a/build-aux/workflow/TODOs.sh
+++ b/build-aux/workflow/TODOs.sh
@@ -6,12 +6,13 @@ export PROJECT_UC="$1"
export PROJECT="$2"
export MAILING_LIST="$3"
-envsubst < build-aux/workflow/preamble.rst | \
- cat - TODOs.rst | \
- pandoc --toc \
- --highlight-style pygments \
- --toc-depth=2 \
- -s \
- --metadata title="$1 - TODOs" \
- --metadata lang=en \
- -r rst -w html > public/TODOs.html
+envsubst < build-aux/workflow/preamble.md | \
+ cat - TODOs.md | \
+ pandoc --toc \
+ --highlight-style pygments \
+ --toc-depth=2 \
+ -s \
+ --metadata title="$1 - TODOs" \
+ --metadata lang=en \
+ -H build-aux/workflow/style.css \
+ -r markdown -w html > public/TODOs.html
diff --git a/build-aux/workflow/preamble.md b/build-aux/workflow/preamble.md
new file mode 100644
index 0000000..ac75d9d
--- /dev/null
+++ b/build-aux/workflow/preamble.md
@@ -0,0 +1,15 @@
+# About
+
+TODOs for $PROJECT_UC.
+
+See also [$PROJECT.euandreh.xyz](https://$PROJECT.euandreh.xyz/).
+
+Register a new one:
+[~euandreh/$MAILING_LIST@lists.sr.ht](mailto:~euandreh/$MAILING_LIST@lists.sr.ht?subject=BUG%20or%20TASK%3A%20%3Cdescription%3E).
+
+*Você também pode escrever em português*.
+
+*Vous pouvez aussi écrire en français*.
+
+*Vi povas ankaŭ skribi esperante*.
+
diff --git a/build-aux/workflow/preamble.rst b/build-aux/workflow/preamble.rst
deleted file mode 100644
index caa50e6..0000000
--- a/build-aux/workflow/preamble.rst
+++ /dev/null
@@ -1,20 +0,0 @@
-About
-=====
-
-TODOs for $PROJECT_UC.
-
-See also `$PROJECT.euandreh.xyz`_.
-
-Register a new one: `~euandreh/$MAILING_LIST@lists.sr.ht`_.
-
-*Você também pode escrever em português.*
-
-*Vous pouvez aussi écrire en français.*
-
-*Vi povas ankaŭ skribi esperante.*
-
-.. _`$PROJECT.euandreh.xyz`: https://$PROJECT.euandreh.xyz/
-.. _`~euandreh/$MAILING_LIST@lists.sr.ht`: mailto:~euandreh/$MAILING_LIST@lists.sr.ht?subject=BUG%20or%20TASK%3A%20%3Cdescription%3E
-
-.. role:: commit
-
diff --git a/build-aux/workflow/style.css b/build-aux/workflow/style.css
new file mode 100644
index 0000000..b68ff70
--- /dev/null
+++ b/build-aux/workflow/style.css
@@ -0,0 +1,50 @@
+<style>
+ hr {
+ background-color: #ccc;
+ }
+
+ /*
+ Replicate colors from:
+ https://git.euandreh.xyz/dotfiles/tree/spacemacs.el?id=fcd9f9c4ef399d45d54927382dc1cdde251ebb0a#n866
+ */
+
+ .TODO::after {
+ content: "TODO";
+ color: brown;
+ }
+
+ .DOING::after {
+ content: "DOING";
+ color: yellowgreen;
+ }
+
+ .WAITING::after {
+ content: "WAITING";
+ color: gray;
+ }
+
+ .MEETING::after {
+ content: "MEETING";
+ color: gray;
+ }
+
+ .INACTIVE::after {
+ content: "INACTIVE";
+ color: orange;
+ }
+
+ .NEXT::after {
+ content: "NEXT";
+ color: red;
+ }
+
+ .CANCELLED::after {
+ content: "CANCELLED";
+ color: green;
+ }
+
+ .DONE::after {
+ content: "DONE";
+ color: green;
+ }
+</style>