iwla

iwla Git Source Tree

Root/tools/extract_docs.sh

Source at commit 4e02325733e5e8e4f5de2f0046e721f8da7abfff created 6 years 10 months ago.
By Gregory Soutade, Initial commit
1#!/bin/sh
2
3MODULES_TARGET="docs/modules.md"
4MAIN_MD="docs/main.md"
5TARGET_MD="docs/index.md"
6
7rm -f "${MODULES_TARGET}"
8
9echo "Generate doc from iwla.py"
10python tools/extract_doc.py iwla.py > "${MODULES_TARGET}"
11
12echo "Generate plugins documentation"
13find plugins -name '*.py' -exec python tools/extract_doc.py \{\} \; >> "${MODULES_TARGET}"
14
15echo "Generate ${TARGET_MD}"
16cat "${MAIN_MD}" "${MODULES_TARGET}" > "${TARGET_MD}"

Archive Download this file

Branches

Tags