Skip to content

Add custom 404 page as smart router for repo URLs #11

@jonathanpopham

Description

@jonathanpopham

Context

GitHub Pages serves 404.html for any unmatched route. We can use this as a smart router so repos.supermodeltools.com/react shows docs and repos.supermodeltools.com/unknown-repo shows a "Generate" landing page.

Requirements

Create 404.html that reads the URL path, checks if docs exist, and either redirects or shows a branded landing page with a Generate button (creates a [Repo Request] issue). Sanitize URL path to prevent XSS. Update generate-index.go to include it. Follow existing visual style. Must be mobile responsive.

Acceptance criteria

  • /unknown-repo shows branded landing page with Generate button
  • No XSS via URL path manipulation
  • Generate button creates a Repo Request issue
  • Mobile responsive

@claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions