Quarto
Agentic AI
Best practices

Building this blog: from numbered topics to a living Quarto publication

Restructuring an engineering curriculum into a living technical blog and portfolio with multi-model AI workflows

How we transformed a 14-part topic site into a Quarto engineering blog and portfolio using URL aliases, living-document conventions, and multi-model agentic collaboration.
Published

2026-09-26

Modified

2026-11-13

The problem

Technical documentation often begins as a structured, numbered curriculum. As engineering work evolves, that format hits predictable constraints:

  1. Rigidity of numbered sequences. In a linear numbered list (topics/01-..., topics/02-...), inserting new articles breaks sequential numbering, while adding topical posts outside the core sequence feels unnatural.
  2. Broken incoming links. Moving from numbered directory paths (/topics/01-identity-isolation/) to semantic slugs (/posts/identity-isolation/) breaks bookmarks, search indexing, and existing cross-references unless backwards compatibility is explicitly maintained.
  3. The staleness trap. Most engineering blogs treat articles as immutable point-in-time snapshots. When a tool releases a breaking change or a security guardrail evolves, authoring a completely new post scatters information, leaving readers stranded on outdated guidance.
  4. Draft clutter and companion metadata. Authors often want companion artifacts alongside articles—such as executive summaries, newsletter drafts, or test scripts—without having static site generators compile them into public web pages.

To address these challenges, we transformed this site from a 14-topic repository into a full Quarto blog and portfolio, preserving existing URLs while adopting living-document standards and automated verification.

Site architecture and explicit rendering (_quarto.yml)

The site configuration in _quarto.yml establishes a clear project structure:

project:
  type: website
  render:              # explicit: companions next to posts are never rendered
    - index.qmd        # landing page = About (Quarto `about:` template)
    - blog.qmd
    - series/*.qmd
    - glossary.qmd
    - posts/*/index.qmd
  resources:
    - "templates/**"

website:
  title: "Your Name"
  site-url: https://example.web.app   # needed for the RSS feed
  search: true
  navbar:
    left:
      - href: index.qmd
        text: About
      - href: blog.qmd
        text: R Engineering Playbook
      - text: Series          # a dropdown: one page per series
        menu:
          - href: series/foundations.qmd
            text: Foundations series
          - href: series/testing.qmd
            text: Testing series
          - href: series/pharma.qmd
            text: Pharma series

Explicit render lists keep companion files out of the site

By default, Quarto crawls the repository and renders every .qmd and .md file it finds into HTML.

In our repository structure, every article folder inside posts/<slug>/ contains companion files: summary.md (a 1-page executive summary) and message.md (a short social share post). By specifying an explicit render list (posts/*/index.qmd), Quarto compiles only the canonical index.qmd for each post. The companion files remain available in the repository for review and team sharing without creating orphaned HTML pages.

Base URL for RSS syndication

Declaring site-url provides the absolute domain required for generating standard RSS feeds (feed: true in blog.qmd), ensuring subscribers can follow updates via standard feed readers.

Dual listings: Blog grid and series pages

Readers approach documentation with different goals. Some want a chronological feed of recent technical notes, while others require a structured curriculum. We accommodate both with two dedicated listing views.

1. The Blog listing (blog.qmd)

The primary blog index uses a responsive grid layout with category filtering and sorting:

---
title: "R Engineering Playbook"
listing:
  contents: posts
  type: grid
  grid-columns: 3
  fields: [date, title, description, categories, reading-time]
  categories: true
  sort:
    - "date desc"
    - "title"
  feed: true
  page-size: 12
  filter-ui: true
  sort-ui: true
---

Setting categories: true creates a sidebar that allows readers to filter posts by topic (e.g. “R packages”, “Agentic AI”, “GxP”).

2. Series pages (series/foundations.qmd)

To keep a reading order, each series gets its own page under series/, reachable from a Series dropdown in the navbar. A post joins a series with two front-matter fields, series: and order::

series: foundations
order: 1

The series page lists the posts whose series matches, sorted by order:

---
title: "Foundations series"
subtitle: "From R development to R engineering"
listing:
  contents: "../posts/*/index.qmd"
  include:
    series: foundations
  sort: "order"
  type: table
  fields: [order, title, description]
  field-display-names:
    order: "#"
---

A listing’s include: can filter on any front-matter field, not only categories (we checked this with Quarto 1.8.27 before relying on it). The table shows each series in reading order, regardless of publication dates.

We first used a category (“Foundations series”) for this. It worked, but every new series would have added another entry to the category filter, next to the topics readers actually filter by. A separate series: field keeps categories for topics and series for reading order.

Controlled category taxonomy

Uncontrolled tagging creates fragmented listing sidebars where github, gh-actions, and github-actions compete as near-duplicates.

We established a controlled taxonomy defined directly in blog.qmd’s front-matter header comments: - Every post receives between 2 and 4 taxonomy categories. - Non-taxonomy values are systematically removed. - Series membership is not a category: it lives in the series: field (see above). - Categories are a short, high-level list readers actually filter by (“R”, “Shiny”, “R packages”, “Agentic AI”, “GxP”, “Pharma”, “Git”, “CI/CD”, “Security”, “Quarto”, “Best practices”).

Articles as living documents

In software engineering, best practices change when runtimes update, APIs evolve, or new security vulnerabilities emerge.

Rather than writing fragmented follow-up posts (“Why my 2024 article was wrong”), our editorial rules establish that articles are living documents:

  1. date-modified tracking: When an article is updated, date-modified: YYYY-MM-DD is added to its front matter alongside its original date.

  2. Explicit Updates callouts: The bottom of each updated article contains a standard callout recording the revision history:

    ::: {.callout-note collapse="false"}
    ## Updates
    - **2026-09-26:** <what changed, 1-3 sentences, with links>
    :::
  3. In-body weaving: New facts, commands, or code samples are woven directly into the relevant body sections rather than existing solely within the changelog box.

  4. Post template: Each post follows base sections: The problem → The web-repo way → The R way. Other sections are included only when needed, with no default checklist.

Shared branding with _brand.yml

Modern technical publishing requires visual coherence between documentation websites, slide decks, and data applications.

Quarto supports the unified _brand.yml standard, which defines typography, color palettes, and logos in a single configuration file readable by both Quarto and Shiny’s bslib package. For our initial migration, the site maintains a neutral default brand configuration, providing a clean baseline that can be customized across both web assets and Shiny applications without rewriting template markup.

Delegated multi-model authoring

Migrating an entire documentation site while updating multiple living articles was coordinated using a two-model workflow (see two-model AI delegation):

flowchart TD
    Claude["Owner Model (Claude)"] -->|"gemini-brief.md (Scope & Constraints)"| Gemini["Delegate Sessions (Gemini)"]
    Gemini -->|"Research / Migration / Drafts / Categories"| Workspaces["posts/** & drafts/**"]
    Claude -->|"Review diffs, quarto render, lychee link check"| Verification{"Verification Gate"}
    Verification -->|"Pass"| Git["PR Commit & Merge"]
  • An Owner model (Claude) defined the plan, maintained the project instructions (CLAUDE.md), reviewed every phase, and did all commits, pushes and merges. The delegates were instructed not to use git; that rule was enforced by the brief and by reviewing diffs, not by sandboxing.
  • Focused Delegate sessions (Gemini) operated under a shared brief (gemini-brief.md) with strict file ownership boundaries:
    • A research session explored Quarto listings and themes;
    • A migration session moved legacy topic paths and updated navigation;
    • An articles session drafted new technical content in drafts/;
    • An editor/categories session applied review notes, unified category metadata, and authored amendments;
    • A theme/bslib session harmonized styling.
  • Every change concluded with a structured digest, allowing the owner to verify file diffs and execute link checks before committing.

The R way: patterns for R teams and package documentation

The patterns powering this blog translate directly to internal tooling within R-focused organisations:

  • R package blogs & vignettes: An R package team can publish deep-dive tutorials alongside reference documentation by adding a posts/ folder and a Quarto blog listing.
  • Team knowledge bases: Engineering teams running Posit Connect or internal servers can use the same aliases mechanism to refactor legacy wiki paths without breaking corporate bookmarks.
  • Living standard operating procedures (SOPs): In regulated GxP environments, the “living documents” convention (date-modified plus an explicit Updates log) provides transparent revision history for internal guidance and analytical playbooks.

Pitfalls we hit

  • Listings on pages in subfolders. series/foundations.qmd first used contents: ../posts and contents: /posts; both rendered an empty table with the warning “doesn’t match any files or folders”. A relative glob worked: contents: "../posts/*/index.qmd".
  • Dark mode and Bootstrap variables. Quarto compiles separate light and dark stylesheets but doesn’t set Bootstrap’s data-bs-theme="dark", so variables like --bs-tertiary-bg kept their light values in dark mode, and our callouts and inline code turned into white boxes. The fix is to derive surfaces from the theme’s own SCSS variables (--hv-surface: #{mix($body-color, $body-bg, 6%)}), which are compiled per theme. We also set respect-user-color-scheme: true so the site follows the visitor’s OS setting.
  • Outdated snippets. A post that shows your own configuration goes stale as the site evolves. Update it in place (see the living-documents rule above).
NoteUpdates
  • 2026-09-26: Removed the end-of-post checklist and updated post template documentation to base sections problem → web-repo way → R way with no default checklist.
  • 2026-09-26: Series moved from a category to a series: front-matter field, and the Testing and Pharma series pages were added. The category filter now lists topics only.
  • 2026-11-13: The site’s SCSS theme moved from one styles.scss file into a brand/ folder, so the dark-mode pitfall no longer names that file.