Skip to content

Improve templates mode (from hardcoded to API) #87

@ddri

Description

@ddri

Currently using a hardcoded approach. Worked well in #37 but would be useful to abstract this a little, and put in place two or three template ideas.

  • official docs (with some automatic refreshing?)
  • product release campaign
  • tech blog cross-posting
import { Template } from '@/types/templates';

export function useTemplates() {
  // In the future, this could fetch available templates from an API
  const templates = [
    {
      id: 'bebop-docs-v1',
      type: 'official-docs',
      name: 'Official Bebop Documentation',
      description: 'Getting started guides and feature documentation',
      details: [
        'A collection of getting started guides',
        'Documentation for all Bebop features',
        'Examples of best practices'
      ]
    }
  ];

  return { templates };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions