2023-04-04 07:00:31 +00:00
|
|
|
#!/usr/bin/env bash
|
2015-10-02 15:04:39 +00:00
|
|
|
#
|
|
|
|
# This requires tomdoc.sh to be in your PATH.
|
2020-08-05 20:44:04 +00:00
|
|
|
# https://github.com/tests-always-included/tomdoc.sh
|
2015-10-02 15:04:39 +00:00
|
|
|
|
2020-08-05 20:44:04 +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
|
2020-08-05 20:44:04 +00:00
|
|
|
sed 's/# shellcheck.*//' mo | tomdoc.sh -m
|
2015-10-02 15:04:39 +00:00
|
|
|
cat <<'EOF'
|
|
|
|
[mo]: ./mo
|
2020-08-05 20:44:04 +00:00
|
|
|
[tomdoc.sh]: https://github.com/tests-always-included/tomdoc.sh
|
2015-10-02 15:04:39 +00:00
|
|
|
EOF
|