Urgent.News

What's breaking now, across thousands of outlets.

Tech

Allowlist Every Path a Docs Generator May Write

Generated reference docs stay trustworthy when a generator may write only restatable files under an allowlisted path. Support windows, uptime figures, and deprecation calendars belong in a second tree that continuous integration refuses to stamp. This article describes a two-directory layout, an OpenAPI table generator, and a linter that fails leaked boundaries. The method remains useful if every…

To maintain trustworthy generated reference documentation, the generator must only create restatable files within an allowlisted directory path. Windows uptime figures and deprecation calendars should reside in a separate tree that continuous integration ignores when stamping. This article outlines a two-directory layout, demonstrates an OpenAPI table generator, and includes a linter that flags unauthorized boundary crossings. The approach remains effective even if all drafting tools are removed from the workflow.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How Scale Should Change the Way You Think in Tech

Most engineers learn technology by asking: “How do I make this work?” That is the right question—at the beginning. But as systems grow, it becomes the wrong question.

  • Shift focus from "how to make it work" to "what happens when it works for everyone"
  • At scale, engineers must think about system interactions, not just features
  • At large scale, failures become the norm and require proactive preparation

@supports named-feature() lets you branch on behavior, not syntax

The test you can't write today Say you want to branch a stylesheet on how an engine resolves anchor positioning around CSS transforms. Both browsers parse position-anchor . Both accept anchor() .

  • @supports named-feature() allows branching on browser behavior, not syntax.
  • Two keywords discussed: anchor-position-follows-transforms and single-axis-scroll-container.
  • @supports named-feature() resolves property support within the cascade, improving interop.

More from Tuesday 8 September →