Rev | Line | |
---|
[6320] | 1 | """ |
---|
| 2 | Create rst documentation from entry types |
---|
| 3 | """ |
---|
| 4 | |
---|
| 5 | if __name__ == '__main__': |
---|
| 6 | import wlan_exp.version as version |
---|
| 7 | from wlan_exp.log.entry_types import log_entry_types as log_entry_types |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | fi = open('../docs/source/log_entry_types.rst_header', 'r') |
---|
| 11 | fo = open('../docs/source/log_entry_types.rst', 'w') # overwrite, don't append |
---|
| 12 | |
---|
| 13 | hdr = fi.read() |
---|
| 14 | fi.close() |
---|
| 15 | |
---|
| 16 | fo.write(hdr + "\n") |
---|
| 17 | |
---|
| 18 | for tid in log_entry_types.keys(): |
---|
| 19 | if(type(tid) is int and tid != 0): |
---|
| 20 | fo.write(log_entry_types[tid].generate_entry_doc(fmt='rst')) |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | fo.flush() |
---|
| 24 | fo.close() |
---|
Note: See
TracBrowser
for help on using the repository browser.