docs: def _generate_paragraphs(package, subpackages):
      """Generate the paragraphs of the API documentation."""
  
      # API doc of each module.
      for subpackage in _iter_subpackages(package, subpackages):
          subpackage_name = subpackage.__name__
  
          yield "## {}".format(subpackage_name)
  
          # Subpackage documentation.
          yield _doc(_import_module(subpackage_name))
  
          # List of top-level functions in the subpackage.
          for func in _iter_functions(subpackage):
              yield '##### ' + _doc_function(subpackage, func)
  
          # All public classes.
          for klass in _iter_classes(subpackage):
  
              # Class documentation.
              yield "### {}".format(_full_name(subpackage, klass))
              yield _doc(klass)
  
              yield "#### Methods"
              for method in _iter_methods(klass, package):
                  yield '##### ' + _doc_method(klass, method)
  
              yield "#### Properties"
              for prop in _iter_properties(klass, package):
                  yield '##### ' + _doc_property(klass, prop)