def get_themes():
 themes = {}
 builtins = pkg_resources.get_entry_map(dist=u'mkdocs', group=u'mkdocs.themes')
 for theme in pkg_resources.iter_entry_points(group=u'mkdocs.themes'):
  if ((theme.name in builtins) and (theme.dist.key != u'mkdocs')):
   raise exceptions.ConfigurationError(u'The theme {0} is a builtin theme but {1} provides a theme with the same name'.format(theme.name, theme.dist.key))
  elif (theme.name in themes):
   multiple_packages = [themes[theme.name].dist.key, theme.dist.key]
   log.warning(u"The theme %s is provided by the Python packages '%s'. The one in %s will be used.", theme.name, u','.join(multiple_packages), theme.dist.key)
  themes[theme.name] = theme
 return themes

def get_themes ( ) : themes = { } builtins = pkg_resources . get_entry_map ( dist = u'mkdocs' , group = u'mkdocs.themes' ) for theme in pkg_resources . iter_entry_points ( group = u'mkdocs.themes' ) : if ( ( theme . name in builtins ) and ( theme . dist . key != u'mkdocs' ) ) : raise exceptions . ConfigurationError ( u'The theme {0} is a builtin theme but {1} provides a theme with the same name' . format ( theme . name , theme . dist . key ) ) elif ( theme . name in themes ) : multiple_packages = [ themes [ theme . name ] . dist . key , theme . dist . key ] log . warning ( u"The theme %s is provided by the Python packages '%s'. The one in %s will be used." , theme . name , u',' . join ( multiple_packages ) , theme . dist . key ) themes [ theme . name ] = theme return themes
returns available themes list .