Skip to content

ADR: One folder per sidebar section

ADR: One folder per sidebar section

Status
accepted
Date
2026-10-06
Shipped as
1.0.3.86

The documents moved into these folders in 1.0.3.84; this record writes down the rule they follow from now on.

In plain words

Every document in this repository lives in the folder named for the sidebar section that shows it, so the docs/ folder on GitHub reads the same way as the sidebar on the site. The decision records live in docs/decisions/. Only the changelog and the pictures stay in the root of docs/, because the deploy and the drawing scripts read them there.

What that is worth: a developer finds a document on GitHub where the site says it is, and knows where a new one goes without asking, and the organization keeps a library that stays in order as it grows, because the build fails when a document lands in the wrong folder.

Context

Until 1.0.3.84 every document sat flat in docs/: ninety records and twenty-eight pages in one list of a hundred and eighteen files. The site already grouped them into sections in its sidebar (src/library/sections.ts), so a reader on the site saw a library and a reader on GitHub saw a long scroll with no shape. Steve asked for a folder structure on 6 October, approved the tree below the same day, and asked for the rule to be written down as a record so it is followed from here on.

An earlier record kept the records flat on purpose (ADR: Style, enforced): at twenty-seven files a move bought nothing a reader could see. At a hundred and eighteen it did, and that record carries an addendum saying when it stopped being true.

Decision

One folder per sidebar section that holds documents, named for the section in lower case with hyphens, and the decision records in docs/decisions/. The tree, as it stands at this version:

docs/
  CHANGELOG.md          stays in the root: both deploys read the version from it
  images/               stays in the root: the drawing scripts and every picture name it
  about/                About
  author/               Author
  app-architecture/     App Architecture
  sql-vs-cosmos/        SQL vs Cosmos DB
  performance/          Performance
  style/                Style
  site-traffic/         Site traffic
  hosting/              Hosting
  built-with-ai/        Built with AI
  ci-cd/                CI/CD
  best-practices/       Best Practices
  decisions/            Decision Records, ADR-001 onward

API Reference and Diagrams have no folder, because they hold links and drawings and no markdown. The README stays at the root of the repository, where GitHub shows it.

The slug is the address, and the folder is not. A document is served by its slug (?doc=sealed, /api/docs/sealed), and DocumentationCatalog.cs maps each slug to its path. Moving a file changes its path in the catalogue and never its slug, so a link posted anywhere keeps working. Links to the site are written as ?doc= slugs for that reason; links to GitHub name the file's path and move with it.

How to follow it

Adding a document:

  1. Put the file in the folder of the section that will show it. A new section gets a new folder, named for the section, and a row in the map at the top of DocsFolderTests.
  2. Give it a slug in DocumentationCatalog.cs and an entry in src/library/pages.ts, or, for a record, in the last run under src/library/decisionRecords/.
  3. Add its row to the section in src/library/sections.ts.

Moving a document to another section moves its file to that section's folder in the same commit, with git mv so its history follows it. A record is never moved out of docs/decisions/, and its number never changes.

Nothing else goes in the root of docs/. If a new file has to sit there because a tool reads it there, the tool's reason is written in this record and the file is added to the root list in DocsFolderTests in the same commit.

What holds it

DocsFolderTests fails the build when any of this slips:

  • every document the sidebar offers sits in the folder of its section, read from sections.ts, the two document lists and the catalogue;
  • every markdown file under docs/ is one the catalogue serves, so a file nobody can open from the site cannot hide in a folder;
  • the root of docs/ holds only the section folders, CHANGELOG.md and images/, and every section folder holds at least one document.
/// <summary>
/// The sidebar section (its name in src/lib/siteMap.ts) to the folder its
/// documents live in. API Reference and Diagrams hold links and drawings,
/// no markdown, so they have no folder; the changelog stays in the root
/// because both deploys read the version from it there.
/// </summary>
private static readonly Dictionary<string, string> Folders = new(StringComparer.Ordinal)
{
    ["about"] = "about",
    ["author"] = "author",
    ["architecture"] = "app-architecture",
    ["stores"] = "sql-vs-cosmos",
    ["performance"] = "performance",
    ["look"] = "style",
    ["traffic"] = "site-traffic",
    ["hosting"] = "hosting",
    ["builtWithAi"] = "built-with-ai",
    ["quality"] = "quality",
    ["cicd"] = "ci-cd",
    ["practices"] = "best-practices",
    ["records"] = "decisions",
    ["incidents"] = "incidents",
};

/// <summary>What the root of docs/ may hold besides the folders above.</summary>
private static readonly string[] RootFiles = ["CHANGELOG.md"];

private static readonly string[] RootFolders = ["images"];

Live from api/TheYard.Tests/DocsFolderTests.cs, region folders, read from this build at 99df7a8.

The rule is a row in the table of rules a change has to pass (ADR: The rules a change has to pass), and the tests that count and number the records read docs/decisions/ (ADR: The Decision Records index).

Consequences

  • A reader on GitHub opens docs/ and sees thirteen folders and the changelog instead of a hundred and eighteen files.
  • Every tool that reads a document by path follows the folders. When the move shipped, one did not: the preview card's drawing script still counted records in the old folder and drew zero, and the test that holds the card's count failed the gate before anything was pushed. Anything new that reads docs/ reads it through the catalogue or names the folder.
  • A document whose section changes costs a git mv and a catalogue line, and its address stays the same.

Where it sits

Outside the rings: this is how the repository's documents are kept, not code the application runs. The catalogue in the host maps slugs to these paths, and DocsFolderTests in TheYard.Tests holds the layout.

Files

Enforced by

One rule in the rulebook cites this record, each held by a test on every release.

The rule What holds it In the last gate
Every document sits in the folder of the sidebar section that offers it, the records in docs/decisions/, and the root of docs/ holds only those folders, the changelog and the pictures DocsFolderTests 6 of 6 passed
Store

The Yard, home

Steven StoutStaff .NET engineerRemote

Production .NET that stays up. Built with AI, measured on every version.

Steven Stout

Hi, I'm Steve. I build the systems that make delivery boring in the best way, then coach people inside them.

  • 200+

    production releases, none took the platform down

    Conway Investment Research, 2019 to 2024. Sole engineer for the first three years on a live financial advisory platform.

    See how
  • 50%

    shorter release cycle

    Storee Construction, 2024 to 2026. Four ASP.NET applications onto one .NET 10 platform on Azure, with a four-person team I hired and mentored.

    See how

01Verified

Steven Stout

A real person, and the work is mine.

  • Identity

    Checked by LinkedIn, not by me.

    LinkedIn verified my government ID.

  • Running system

    You are looking at it.

    Version 1.0.5.273 is live. Nothing ships unless it passes the automated gates first.

That's who I am. Here's how I work.

02Strengths

Ten strengths, each with the proof beside it. The numbers match my resume and LinkedIn, and the live ones are read from this site as you look.

  • 01

    Keeps production alive

    200+ releases on a live financial platform, and none took it down. Sole engineer for the first three years.

    See the Conway work

  • 02

    Simplifies messy systems

    Four ASP.NET applications onto one .NET 10 platform on Azure, and a release cycle 50% shorter.

    See the Storee work

  • 03

    Marries dev and infrastructure

    Blue-green releases at Storee that flipped in about 5 seconds with nobody signed out, and Azure Front Door at two employers.

    See this site's cloud

  • 04

    Designs data that holds up

    White-label clients on one shared database, the isolation built into the data, and no cross-client issues.

    See the Conway work

  • 05

    Keeps AI-written code honest

    15 quality numbers that may only improve: 273 releases in a row with none worse.

    See the quality numbers

  • 06

    Resourceful

    $30,000+ cut from Azure and vendor spend at Conway. This site's Azure bill is public, resource by resource.

    See the bill

  • 07

    Builds people up

    Hired and mentored a four-person team. 13 colleagues recommend me by name.

    Read the recommendations

  • 08

    Takes ideas to production

    This site: designed, built and run solo, with 352 versions measured through one gate.

    How it was built

  • 09

    Writes clearly

    Posts on real engineering problems, in plain words.

    Read the blog

  • 10

    Owns decisions

    153 decision records, each with its tradeoff and the call I made.

    See the decision records

Built with AI. Gated so quality never slides.

Steven Stout’s showcase: a used-vehicle auction on .NET and React, built and run by one engineer, live on Azure, with its decisions written down.

No quality number has gotten worse at any release since 1.0.5.1 on 10 November: 273 releases in a row.

One engineer, an AI agent and a gate that checks 15 quality numbers on every release. 352 versions measured, with every result public, the worst days included.

82 releases in the last 7 days, each through the same gate.

Async methods with no CancellationToken, may only fall

11091.0.3.1391.0.5.2731.0.4.115, the ratchet
Every number, on the Quality page

TheYard, right nowLive

Answering in

unread

02505007501,000

server time at p95, the usual five minutes of the last day.

Azure this month

unread

the bill, by resource, read from Azure. The Admin tab shows every line.

Since the last roll

unread

 

rolled in place by the pipeline, behind one gate.

People who have visited

unread

30 days agotoday

Scanners, my own tools' and my own reads left out.

03Start here

04Where teams are heading

How I see engineering with AI, and the setup on this site that backs it.

AI-augmented teams · Architecture and ownership

AI writes more of the code. Someone still has to own what ships.

Teams are going to be heavily AI-augmented. That moves the senior job toward architecture and technical ownership: deciding what to build in pieces small enough to verify, and owning what ships.

  • Task tracking will get automated too. Judgment stays human: seeing a design fail at scale before it does.
  • On this site the AI's first design held the whole catalogue in memory. I caught it when the App Service plan hit 82 per cent and moved the work to the store.

What the AI wrote, what I decided

07Tech stack

  •    
  •    
  •    

Read from the build, never typed by hand

What TheYard runs on

What we use, where it runs, its AWS twin, the version as built, and the file that proves it.

Cloud patterns, not one vendor: every Azure piece in this stack has a named AWS twin. Mapped, not yet run on AWS.

  • .NET 1114 projects
  • React 19.3TypeScript 7.0
  • Azure9 Bicep files
  • 11GitHub Actions workflows
The whole stack, with the file that proves each line

The last release the gate stopped was 1.0.5.258 on 2 December, at its browser 1 of 2 job.

08How it is built

09How it is run

10Who and why

Next step

11What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn