docstr: Generate rST documentation for this class' config options.
  
  Excludes traits defined on parent classes.
docstr_tok: ["Generate","rST","documentation","for","this","class","'","config","options",".","Excludes","traits","defined","on","parent","classes","."]
code: def class_config_rst_doc(cls):
      """Generate rST documentation for this class' config options.
  
      Excludes traits defined on parent classes.
      """
      lines = []
      classname = cls.__name__
      for k, trait in sorted(cls.class_own_traits(config=True).items()):
          ttype = trait.__class__.__name__
  
          termline = classname + "." + trait.name
  
          # Choices or type
          if "Enum" in ttype:
              # include Enum choices
              termline += " : " + "|".join(
                  repr(x) for x in trait.values
              )
          else:
              termline += " : " + ttype
          lines.append(termline)
  
          # Default value
          try:
              dvr = trait.default_value_repr()
          except Exception:
              dvr = None  # ignore defaults we can't construct
          if dvr is not None:
              if len(dvr) > 64:
                  dvr = dvr[:61] + "..."
              # Double up backslashes, so they get to the rendered docs
              dvr = dvr.replace("\\n", "\\\\n")
              lines.append("    Default: ``%s``" % dvr)
              lines.append("")
  
          help = trait.help or "No description"
          lines.append(indent(dedent(help), 4))
  
          # Blank line
          lines.append("")
  
      return "\n".join(lines)
  
imports: from __future__ import print_function, absolute_import
  from copy import deepcopy
  import warnings
  from .loader import Config, LazyConfigValue, _is_section_key
  from traitlets.traitlets import HasTraits, Instance, observe, observe_compat, default
  from ipython_genutils.text import indent, dedent, wrap_paragraphs
label_desc: Use image node_id 11 for calling the Configurable obj's underlying member method code with example usage: obj.class_config_rst_doc(cls) and returns: str