#!/usr/bin/env python "Update the command index in index.html." import os commands = [] reffiles = {} for infile in os.listdir('.'): if not infile.endswith('.html'): continue for part in open(infile).read().split('\n') for command in commands: f.write('
' + command + '
\n') f.write('
\n') f.write('