Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Squarespace Engineering 6 min read Case study mediumAdept

Making Documentation Simpler and Practical: Our Docs-as-Code Journey

Squarespace's Domains team keeps Markdown docs, RFCs and Mermaid diagrams in the same Git repos as their code, reviews them in the same GitHub pull requests, and publishes them to Backstage TechDocs through CI/CD on every merge to master. The approach removes the separate workflow, unclear ownership and bulk-update habits of Google Docs-style documentation, and makes diagrams and runbooks easier to keep current and trace. Practical tips include previewing locally with the IntelliJ Mermaid plugin and the TechDocs CLI, pushing a branch with a techdocs-preview suffix to get a staging preview, and adding the Kroki plugin so TechDocs renders Mermaid.

Assumes: Git pull request workflowMarkdownCI/CD pipelines

Related posts

  • How GitHub’s Developer Experience team improved innerloop development

    GitHub Engineering mediumAdept

    GitHub's Developer Experience team built Hubber Codespace (HCS), a Docker-Compose project that lets engineers stand up the full distributed GitHub ecosystem locally or in a codespace to integration-test changes before deploying. Docker-Compose won out over Minikube, rejected for networking complexity and long cycle times, and over the internal Codespace-Compose, which had no SLA and would add maintenance burden. A Go CLI with versioning that matches HCS releases wraps long compose invocations into commands like `hcs start`, `hcs shell` and `hcs status`. Scheduled automation pins SHAs from the monorepo and service repos into frequent releases, consumed via a devcontainer feature or the gh CLI.

  • Sapling: Source control that’s user-friendly and scalable

    Meta Engineering easyNovice

    Meta has open-sourced the client for Sapling, a Git-compatible source control system built over 10 years that scales to repositories with tens of millions of files, commits and branches. Its UX centers on smartlog (a filtered view of your relevant commits), extensive undo/recovery commands, and first-class commit stacks backed by tracked mutation history, plus ReviewStack, a demo UI for reviewing GitHub PRs commit by commit. For scale, Segmented Changelog downloads only the commit graph's shape and lazily fetches data, answering ancestry queries in O(number-of-merges) and file history in O(log n). Sparse profiles committed to the repo, Watchman integration, and a forthcoming virtual file system and Rust server handle the working copy.

  • A Tool for Discussion

    Oxide mediumAdept

    Oxide built an internal site for its RFDs (Requests for Discussion), which live as AsciiDoc files in a GitHub repo, because the repo gave a poor reading experience, limited AsciiDoc support and was hard to share externally. The site adds full-text search via self-hosted Meilisearch with automatic reindexing on edits, hover previews for inter-RFD links, and keyboard-driven navigation menus. GitHub PR review comments are shown inline next to the relevant section by mapping comment line numbers to rendered blocks with asciidoctor.js's getLineNumber, and Remix deferred responses stream the comments in so they don't block page load. Planned work includes better filtering, tagging and collections, plus in-browser authoring so non-engineers can write RFDs without Git.

  • DRUIDS, the design system that powers Datadog

    Datadog Engineering easyNovice

    DRUIDS (Datadog Reusable User Interface Design System) was started in 2018 to keep UX patterns consistent as Datadog grew into dozens of products, and its docs site is now public. Adoption across hundreds of designers and front-end developers depends on making the system easy to understand, implement and contribute to. Supporting tooling includes Cmd+K search, an in-app "Loupe" that highlights components with links to GitHub, Figma and VS Code, editable playgrounds and a sandbox treating React/TypeScript/CSS code as the source of truth, API tables auto-generated from component source, contribution guidelines, and a CLI that scaffolds new components.

  • Writing nothing but docs for a week

    PgDog mediumAdept

    Documentation, not code comments, is what makes infrastructure software trustworthy enough to adopt, argues PgDog's founder after spending a week expanding its MkDocs docs to about 3k lines. To keep examples accurate, a Python script regex-extracts TOML config blocks and validates them with PgDog's new `configcheck` command (similar to `nginx -t`), and SQL snippets are parsed with pglast (a binding over pg_query) in CI, which eliminated typos in both. LLMs help only with spelling and grammar, and need explicit, repeated prompting even for that.

The quest for software engineering knowledge.

Look:
Layout: