iwla/tools/extract_docs.sh

22 lines
646 B
Bash
Raw Normal View History

#!/bin/sh
MODULES_TARGET="docs/modules.md"
MAIN_MD="docs/main.md"
TARGET_MD="docs/index.md"
rm -f "${MODULES_TARGET}"
2014-12-31 14:52:14 +01:00
echo "Generate plugins index"
python tools/extract_doc.py -p iwla.py > "${MODULES_TARGET}"
find plugins -name '*.py' -exec python tools/extract_doc.py -p \{\} \; >> "${MODULES_TARGET}"
echo "\n" >> "${MODULES_TARGET}"
echo "Generate doc from iwla.py"
2014-12-31 14:52:14 +01:00
python tools/extract_doc.py iwla.py >> "${MODULES_TARGET}"
echo "Generate plugins documentation"
find plugins -name '*.py' -exec python tools/extract_doc.py \{\} \; >> "${MODULES_TARGET}"
echo "Generate ${TARGET_MD}"
cat "${MAIN_MD}" "${MODULES_TARGET}" > "${TARGET_MD}"