mo/make-api-doc

21 lines
442 B
Plaintext
Raw Normal View History

2015-10-02 15:04:39 +00:00
#!/bin/bash
#
# This requires tomdoc.sh to be in your PATH.
# https://github.com/tests-always-included/tomdoc.sh
2015-10-02 15:04:39 +00:00
cd "${0%/*}" || exit 1
2015-10-02 15:04:39 +00:00
cat <<'EOF'
API / Function Documentation
============================
This documentation is generated automatically from the source of [mo] thanks to [tomdoc.sh].
EOF
sed 's/# shellcheck.*//' mo | tomdoc.sh -m
2015-10-02 15:04:39 +00:00
cat <<'EOF'
[mo]: ./mo
[tomdoc.sh]: https://github.com/tests-always-included/tomdoc.sh
2015-10-02 15:04:39 +00:00
EOF