def create_module_docs():
data = core_module_docstrings(format="<STR_LIT>")<EOL>screenshots_data = {}<EOL>samples = get_samples()<EOL>for sample in samples.keys():<EOL><INDENT>module = sample.split("<STR_LIT:->")[<NUM_LIT:0>]<EOL>if module not in screenshots_data:<EOL><INDENT>screenshots_data[module] = []<EOL><DEDENT>screenshots_data[module].append(sample)<EOL><DEDENT>out = []<EOL>for module in sorted(data.keys()):<EOL><INDENT>out.append("<STR_LIT>" % module)  <EOL>out.append(<EOL>"<STR_LIT>".format(<EOL>name=module,<EOL>screenshots=screenshots(screenshots_data, module),<EOL>underline="<STR_LIT:->" * len(module),<EOL>details="<STR_LIT>".join(markdown_2_rst(data[module])).strip(),<EOL>)<EOL>)<EOL><DEDENT>with open("<STR_LIT>", "<STR_LIT:w>") as f:<EOL><INDENT>f.write("<STR_LIT>".join(out))<EOL><DEDENT>
Create documentation for modules.