#!/bin/bash # Ensure we are in the project root directory cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")" shopt -s nullglob ALL_MODS="$(echo func_timeout/*.py | tr ' ' '\n' | sed -e 's|/|.|g' -e 's|.py$||g' -e 's|.__init__$||g' | tr '\n' ' ')" pydoc -w ${ALL_MODS} mv func_timeout*.html doc/ pushd doc >/dev/null 2>&1 rm -f index.html for fname in `echo *.html`; do python < emIndex: parentNode.removeChild( parentNode.children[i] ) i -= 1 with open(filename, 'wt') as f: f.write(parser.getHTML()) EOT done ln -s func_timeout.html index.html popd >/dev/null 2>&1