Blog

Docs pages: the layout your agent will get wrong

Words plagio team

Share X, LinkedIn

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

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. 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, checked 5 November 2026

Names and products belong to their owners. Prices and features change: if something here is out of date, write to support@plagio.dev and we'll fix it.

Give your agent a real reference.

Start the free week

Keep reading