iwla

iwla Commit Details

Date:2015-07-13 11:43:13 (6 years 10 days ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:47cd9264c5226fa3b931154d72245b8848c1a2b7
Parents: b72563af8d476edcab97345b1bc8f2bedda0086b
Message:Update tools to sort documentation

Changes:
Mtools/extract_doc.py (2 diffs)
Mtools/extract_docs.sh (1 diff)

File differences

tools/extract_doc.py
11
22
33
4
45
5
6
7
68
79
810
......
1517
1618
1719
18
20
1921
2022
2123
#!/usr/bin/env python
import sys
import re
excludes = ['istats_diff.py']
excludes = []
# excludes = [r'.*_diff.py']
filename = sys.argv[1]
printName = False
sys.exit(0)
for e in excludes:
if filename.endswith(e):
if re.match(e, filename):
sys.stderr.write('\tSkip %s\n' % (filename))
sys.exit(0)
tools/extract_docs.sh
88
99
1010
11
11
12
13
1214
1315
1416
1517
1618
1719
18
20
21
22
1923
2024
2125
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}"
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"
find plugins -name '*.py' -exec python tools/extract_doc.py \{\} \; >> "${MODULES_TARGET}"
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}"

Archive Download the corresponding diff file

Branches

Tags