modulegen¶
Tool to generate Pimlico module docs. Based on Sphinx’s apidoc tool.
It is assumed that this script will be run using Python 3. Although it has
a basic Python 2 compatibility, it’s not really intended for Python 2 use.
Modules that are marked as still awaiting update to the new datatypes system
will now not be imported at all, since they are typically not Python 3
compatible (due to their use of old_datatypes
, which has not been
updated to Python 3).
-
generate_docs_for_pymod
(module, output_dir, test_refs={}, example_refs={})[source]¶ Generate RST docs for Pimlico modules on a given Python path and output to a directory.
-
generate_docs_for_pimlico_mod
(module_path, output_dir, submodules=[], test_refs={}, example_refs={})[source]¶