---
title: "Docs pages: the layout your agent will get wrong"
description: "Three columns, a sidebar that remembers where you are, and code blocks that are readable. Most generated docs get one of the three."
date: 2026-11-12
canonical: https://plagio.dev/blog/build-a-docs-page-with-an-agent
source: plagio.dev
---

# Docs pages: the layout your agent will get wrong

*Three columns, a sidebar that remembers where you are, and code blocks that are readable. Most generated docs get one of the three.*

> Written by the plagio team. plagio is an MCP server that opens a public page in a real browser and
> returns its markup, design tokens, hover states and motion, so an agent builds from measurements
> instead of guesses. Connect it with:
>
> ```
> claude mcp add --transport http plagio https://plagio.dev/mcp --header "x-api-key: YOUR_KEY"
> ```
>
> A key is a free week at https://plagio.dev/dashboard. The site check at https://plagio.dev is free and needs no account.

Docs are the page where a developer audience decides whether you are serious, and the page agents treat as a blog with a sidebar. The result reads fine and works badly.

85 sites in our library have docs, and they are [in Discover together](https://plagio.dev/discover/pages/docs). Read three of them before you brief anything.

## The parts that matter

- Three regions, not two: navigation, content, and an on-page table of contents. The third is what agents drop.
- A sidebar that shows where you are and keeps its scroll position between pages.
- A content column with a measure that stops around 70 to 80 characters. Full-width prose is the commonest mistake.
- Code blocks with a language label, a copy button, and a background that is not the page background.
- Anchored headings, because every link anyone shares to your docs is a link to a heading.

## What agents get wrong

They centre the content and let it run to the window's width. They style code as a grey box with the body font. They give the sidebar no current state, so every page looks like the first one. And they put search in the header as decoration, wired to nothing.

## The measurable part

The content measure in characters, the sidebar width, the vertical rhythm between a heading and its paragraph, the code block's padding and font size, and the two or three greys that separate chrome from content. All of it readable off a page that already works.

## How to brief it

Brief it the way you would brief a person: what the page is for, who lands on it, what they do next, and what must not change. Then give it one reference's measurements rather than an adjective. An agent asked for "a modern docs site" writes the average docs site, because that is the only docs site it knows.

## Where plagio fits

plagio is an MCP server, and we make it. Point it at a docs site whose reading experience you like and it returns the measurements behind it. The judgement about what your docs need is still yours; the numbers do not have to be guessed.

## Questions people ask

**What layout should a docs page use?**

Navigation, a content column with a limited measure, and an on-page table of contents. The table of contents is the part generated docs usually lack.

**How wide should docs content be?**

Narrow enough that a line stops around 70 to 80 characters. Prose that runs the full window width is hard to read and is the commonest mistake in generated docs.

**What do agents get wrong in code blocks?**

The body font, no language label, no copy button, and a background that matches the page, so code does not read as code.

## Sources

- [Understanding Contrast (Minimum), WCAG 2.2, W3C](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html)

---

Canonical HTML version: https://plagio.dev/blog/build-a-docs-page-with-an-agent
Every article: https://plagio.dev/blog
