26 lines
715 B
Bash
Executable File
26 lines
715 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MODULES_TARGET="docs/modules.md"
|
|
MAIN_MD="docs/main.md"
|
|
TARGET_MD="docs/index.md"
|
|
|
|
rm -f "${MODULES_TARGET}"
|
|
|
|
echo "Generate plugins index"
|
|
python tools/extract_doc.py -p iwla.py > "${MODULES_TARGET}"
|
|
for p in `find plugins -name '*.py' | sort | sed ':a;N;$!ba;s/\n/ /g'`; do
|
|
python tools/extract_doc.py -p $p >> "${MODULES_TARGET}"
|
|
done
|
|
echo "\n" >> "${MODULES_TARGET}"
|
|
|
|
echo "Generate doc from iwla.py"
|
|
python tools/extract_doc.py iwla.py >> "${MODULES_TARGET}"
|
|
|
|
echo "Generate plugins documentation"
|
|
for p in `find plugins -name '*.py' | sort` ; do
|
|
python tools/extract_doc.py $p >> "${MODULES_TARGET}"
|
|
done
|
|
|
|
echo "Generate ${TARGET_MD}"
|
|
cat "${MAIN_MD}" "${MODULES_TARGET}" > "${TARGET_MD}"
|