17 lines
426 B
Bash
Executable File
17 lines
426 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 doc from iwla.py"
|
|
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}"
|