Skip to content

Components

Visibility

Show content only to readers of the page, or only to AI tools reading your docs.

Your docs have two audiences: people reading the site, and AI tools reading it for them. <Visibility> lets one page speak to each. Wrap content in <Visibility for="humans"> to keep it on the rendered page only, or in <Visibility for="agents"> to keep it out of the page and give it only to AI.

Visibility usage

html
<Visibility for="humans">
  Click **Deploy** in the top-right corner of the dashboard.
</Visibility>

<Visibility for="agents">
  To deploy, call `POST /v1/deployments` with the project ID. The dashboard button does the same.
</Visibility>

This sentence is on the rendered page only. Open this page's Markdown version and it is gone.

Leave a blank line around the content when it holds Markdown such as lists or headings, as with any component.

Where each audience reads

for="humans"for="agents"
The rendered page and its table of contentsShownHidden
Site searchSearchedNot searched
RSS items of Update blocksIncludedLeft out
llms-full.txt and each page's .md versionLeft outIncluded
The MCP serverLeft outIncluded
The AI assistantLeft outIncluded
The Copy content buttonLeft outIncluded

Code blocks are left exactly as written, so a page can show the syntax, as this one does.

Visibility decides what each audience is shown, not who can read it: the Markdown source of your docs is not secret. Never put credentials or private information in either block.

Properties

forstringrequired

Who sees the content: humans or agents. Any other value shows it to both.

childrennoderequired

The content to show to that audience.