(output_dir, function_path)
| 39 | |
| 40 | |
| 41 | def document_function(output_dir, function_path): |
| 42 | with open(os.path.join(output_dir, "%s.rst" % function_path), "w") as doc: |
| 43 | function_name = function_path.split(".")[-1] |
| 44 | doc.write("%s\n" % function_name) |
| 45 | doc.write("=" * len(function_name)) |
| 46 | doc.write("\n\n") |
| 47 | doc.write(".. autofunction:: %s\n" % function_path) |
| 48 | |
| 49 | |
| 50 | def module_is_public(module): |