aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/make b/make
index 2221ffe..40fc398 100755
--- a/make
+++ b/make
@@ -26,6 +26,7 @@ Usage: ./make TASK
todo Show tasks noted in source code files
models Generate the MODELS file
release Zip up all .hex files to prep for publishing a release
+ docs Convert all .md files to .html
... or TASK can be the partial name of a build target.
@@ -55,6 +56,9 @@ function main() {
echo 'rm -vf **/*.hex **/*~ **/*.elf **/*.o **/*.cpp'
rm -vf **/*.hex **/*~ **/*.elf **/*.o **/*.cpp
;;
+ docs)
+ make-docs
+ ;;
flash)
echo "Not implemented yet."
#./bin/flash.sh "$@"
@@ -75,5 +79,13 @@ function main() {
esac
}
+function make-docs () {
+ for md in **/*.md ; do
+ echo "$md"
+ html=$(echo "$md" | sed 's/.md$/.html/')
+ cmark-gfm "$md" > "$html"
+ done
+}
+
main "$@"
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.