Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

Visibility

Show different content to humans reading your docs site versus AI agents processing markdown output (.md URLs and docs.zip).
Content marked for="humans" renders on the web page but is stripped from agent markdown. Content marked for="agents" is hidden on the page but included in agent markdown.

Example

<Visibility for="humans"> Click the **Get started** button in the top-right corner to create your account. </Visibility> <Visibility for="agents"> To create an account, call `POST /v1/accounts` with a valid email address. </Visibility>
On your published site, the first block renders and the second is hidden. When an AI agent fetches the .md version of the page, the opposite applies.

Props

for"humans" | "agents"
Which audience sees the content. Defaults to "humans" if omitted.

How it works

Holocron already serves every page as raw markdown at <page-url>.md and redirects known AI agents automatically. The Visibility component hooks into this:
  • Web rendering: for="agents" returns nothing, for="humans" (or no prop) renders children normally.
  • Markdown output: for="humans" blocks are stripped, for="agents" blocks are unwrapped so only their inner content remains.
Use this to give AI agents API-oriented instructions (endpoints, code snippets) while showing humans UI-oriented instructions (screenshots, button locations).