Links

Last updated: 03/04/2026Edit this page

Link to other documentation pages using their URL path:

See the [Getting Started](/getting-started/) guide.

URLs correspond to the file path under content/docs/ — for example, content/docs/guides/docs.mdx becomes /guides/docs/.

Tip

Always include a trailing slash on internal links (e.g. /guides/docs/ not /guides/docs). This ensures consistent behavior with the static export.

Linking to sections

Combine a page path with an anchor to link directly to a heading:

See [Search weights](/guides/search/#search-weights) for details.

Anchor IDs are generated automatically from the heading text. See Headings for anchor ID conventions.

Standard markdown links work for external URLs:

Built on [Next.js](https://nextjs.org/) and [Tailwind CSS](https://tailwindcss.com/).

External links open in the same tab by default. To open in a new tab, use an HTML anchor with target:

<a href="https://nextjs.org/" target="_blank" rel="noopener noreferrer">Next.js</a>

Link to a heading on the same page using the # prefix:

See the [configuration section](#configuration) below.

Wrap an image in a link to make it clickable:

[![Logo](/img/logo.png)](https://example.com)

Trellis Docs includes a post-build link checker that scans all generated HTML for broken internal links. It runs automatically at the end of npm run build, or standalone:

node scripts/check-links.js

See Deployment for details.


Was this page helpful?