docs: def create_ui_structure(cls, username, napp_name, ui_templates_path,
                              context):
          """Create the ui directory structure."""
          for section in ['k-info-panel', 'k-toolbar', 'k-action-menu']:
              os.makedirs(os.path.join(username, napp_name, 'ui', section))
  
          templates = os.listdir(ui_templates_path)
  
          for tmp in templates:
              fname = os.path.join(username, napp_name, 'ui',
                                   tmp.rsplit('.template')[0])
  
              with open(fname, 'w') as file:
                  content = cls.render_template(ui_templates_path, tmp,
                                                context)
                  file.write(content)