AI Assistant

Links

Add a row of static links at the top of your documentation. Links open in a new tab and are useful for pointing users to related resources, repositories, or external docs.

links.json

Place a links.json at your project root (the same folder where you execute npx doccupine). When present, Doccupine displays the links in a bar above the main content. You can add as many links as you need.

Example links.json

[
  {
    "title": "Back to Home",
    "url": "https://doccupine.com",
    "icon": "arrow-left"
  },
  {
    "title": "GitHub",
    "url": "https://github.com/doccupine",
    "icon": "github"
  },
  {
    "title": "Discord",
    "url": "https://discord.gg/E9BufYGPhG",
    "icon": "message-circle"
  }
]

Fields

  • title: The label shown for the link in the bar.
  • url: The destination URL. Links open in a new tab with target="_blank" and rel="noopener noreferrer".
  • icon: The icon to display next to the label. Icons are from Lucide.

Behavior

  • Empty or missing file: If links.json is empty or not present, the links bar is hidden.
  • Order: Links appear in the same order as in the array.
  • No limit: Add as many links as you want; the bar scrolls horizontally on smaller screens if needed.