code: def ignore_sphinx():
      
      (directives, roles) = _get_directives_and_roles_from_sphinx()
  
      directives += [
          'centered',
          'include',
          'deprecated',
          'index',
          'no-code-block',
          'literalinclude',
          'hlist',
          'seealso',
          'toctree',
          'todo',
          'versionadded',
          'versionchanged']
  
      ext_autosummary = [
          'autosummary',
          'currentmodule',
      ]
  
      ignore_directives_and_roles(directives + ext_autosummary,
                                  roles + ['ctype'])
docs: Register Sphinx directives and roles to ignore.