Skip to content

[Docs] Proposal: add a human-authored blog to the docsite #2896

Closed

Description

@cixzhang

Summary

Add a blog area to the XDS docsite that supports low-cadence, human-authored editorial posts while keeping content organized from the start.

The preferred inspiration is Linear's calm, spacious blog grid, with Figma's readable/informative article pages as inspiration for post detail pages. The blog should feel editorial and considered, not like a dense news site.

Goals

  • Introduce /blog and /blog/[slug] to the docsite.
  • Support a low publishing cadence without making the page feel sparse or stale.
  • Keep the index calm, spacious, and easy to scan.
  • Avoid traditional blog sidebars in favor of horizontal filtering/search.
  • Give each post visual presence, while making custom cover art optional.
  • Make authoring simple: adding a post should be as close as possible to adding one new MDX/Markdown file with frontmatter.
  • Preserve human/editorial taste: metadata should organize posts, not prescribe prose structure.

Non-goals

  • Do not create a high-density news/magazine layout.
  • Do not require a traditional sidebar for categories, archives, or related posts.
  • Do not enforce rigid article templates or required section headings.
  • Do not require bespoke artwork for every post.
  • Do not put visual styling controls in post metadata, except an optional cover image.
  • Do not add featured/pinning metadata. The blog should sort by latest post.
  • Do not make agents responsible for writing final editorial prose. Agent support, if added, should be advisory only.

Inspiration notes

Prefer

  • Linear: calm grid, large cards, horizontal category filters, strong per-post graphics, no sidebar.
  • Vercel: large editorial cards with generous whitespace and clear metadata hierarchy.
  • Figma: large readable article pages, informative writing, blend of philosophy/value/practical usage, tasteful text treatments inside posts.

Avoid

  • GitHub Blog-style density: mixed card sizes and high content density feel more like a news site than a blog.
  • Overlarge image-first layouts: OpenAI-like calmness is good, but hero images should not push titles below the fold on common laptop screens.

Information architecture

Recommended route structure:

/blog
/blog/[slug]

The blog index should likely include:

  • Simple page title and short description.
  • Horizontal post-type filters.
  • Search, if straightforward to add; otherwise defer.
  • A calm card grid inspired by Linear.
  • Latest posts first.
  • No sidebar.

If the first/latest post gets a larger treatment, that should be derived from sort order, not from per-post pinning metadata.

The post detail page should likely include:

  • Title, description/dek, author(s), date, post type, tags.
  • Large readable prose layout.
  • Optional cover image or default cover treatment.
  • Optional related docs near the end of the article, not as a sidebar.
  • Good code block support for practical examples.

Post organization

Use two layers of organization:

  1. Post type — the editorial kind of post.
  2. Tags — topical metadata for related content and discovery.

Post types should be a small, stable set used for primary filtering. Proposed starting set:

update
guide
story
perspective
engineering

These map to the types of content we expect:

  • update: functionality improvements, releases, new capabilities.
  • story: user stories, community examples, adoption stories.
  • guide: practical educational posts.
  • perspective: design-system philosophy, industry observations, opinions.
  • engineering: implementation details, infrastructure, technical deep dives.

Tags should be more flexible and secondary. Proposed starting examples:

AI
Accessibility
Components
Customization
Design systems
Docs
Examples
Migration
Patterns
Release
Theming
Tokens

Rules of thumb:

  • Each post has one type.
  • Each post has 1–4 tags.
  • Only show filters/tags publicly when content exists for them.

Metadata proposal

Keep the post header focused on content data and publishing information, not visual design controls.

Required frontmatter:

title: "Designing agent-ready components"
description: "How XDS structures component APIs and docs so humans and agents can build with confidence."
date: "2026-06-17"
type: "guide"
authors:
  - "github-handle"
tags:
  - "AI"
  - "Components"
  - "Docs"

Optional frontmatter:

updatedAt: "2026-06-20"
draft: false
coverImage: "/blog/designing-agent-ready-components/cover.png"
coverAlt: "Abstract diagram of component blocks connected by guide lines"
relatedDocs:
  - title: "Component authoring"
    href: "/docs/component-authoring"
  - title: "Button"
    href: "/components/button"

Field usage

Field Required? How it gets used
title Yes Article h1, blog card title, search result title, default page/social title.
description Yes Blog card excerpt, article dek/subtitle, default meta description/social description.
date Yes Publish date, default sort order, card/article metadata, RSS/sitemap later.
type Yes Primary organization/filter. Also helps choose a default cover treatment if no cover image is supplied.
authors Yes GitHub handles or author IDs resolved through a shared author registry. Used on cards and article bylines.
tags Yes Secondary topics for chips, search/filtering, and related content.
updatedAt No Shows an updated date for evergreen posts when useful. Does not replace original publish date.
draft No Allows work-in-progress posts to live in the repo without publishing.
coverImage No Optional custom cover image for the blog card/article header.
coverAlt Required if coverImage exists Alt text for the cover image.
relatedDocs No Curated related-doc links rendered near the end of the article.

Explicitly omitted from v1 metadata

  • seo: default SEO should be derived from title, description, date, and coverImage when available. If custom SEO/canonical URLs are needed later, add them later for a concrete use case.
  • featured: the blog should sort by latest post. Pinning can become stale, especially if there can only be one featured post.
  • Cover presets/accents: visual art direction should not live in article metadata. If no coverImage is supplied, the site should render a default cover treatment automatically.

Authoring model

The preferred workflow should be:

apps/docsite/src/content/blog/posts/designing-agent-ready-components.mdx

Example:

---
title: "Designing agent-ready components"
description: "How XDS structures component APIs and docs so humans and agents can build with confidence."
date: "2026-06-17"
type: "guide"
authors:
  - "github-handle"
tags:
  - "AI"
  - "Components"
  - "Docs"
relatedDocs:
  - title: "Component authoring"
    href: "/docs/component-authoring"
---

Write the post in human-authored prose here.

The article can be structured however the author and editor think is best.
It can include philosophy, practical guidance, examples, code snippets,
images, callouts, or custom MDX components when useful.

Author details should live separately so every post does not repeat profile metadata:

apps/docsite/src/content/blog/authors.ts

Example:

export const authors = {
  'github-handle': {
    name: 'Display Name',
    github: 'github-handle',
    role: 'Design',
  },
  team: {
    name: 'XDS Team',
    avatar: '/blog/authors/xds.png',
  },
} as const;

For GitHub authors, the site can derive reasonable defaults:

avatar = author.avatar ?? `https://github.com/${author.github}.png`;
href = author.href ?? `https://github.com/${author.github}`;

Do not fetch GitHub profile data at build time; just use stable profile/avatar URLs.

Human-authored prose principle

The blog should not bake in required article structures like “What changed / Why it matters / How to use it.” Those can be helpful suggestions, but the product should not enforce them.

Preferred principle:

Metadata organizes the blog; humans write the prose.

A content agent or checklist could later help authors think through quality questions, but should remain advisory. For example, it might ask:

  • Is the value to the reader clear?
  • Is there enough practical information for someone to act on this?
  • Does the article include the right related docs/components?
  • Does the piece preserve the author's voice and taste?
  • If it is an update, does it explain why the change matters?

This should not become generated house style or a required template.

Cover images and defaults

A custom cover image should be optional:

coverImage: "/blog/my-post/cover.png"
coverAlt: "Abstract component grid"

If coverImage is omitted, the site should render a default cover treatment automatically. The default can be derived from post type and/or slug, but authors should not need to choose visual presets or accent colors in frontmatter.

This keeps the metadata focused on content while preserving the Linear-like feeling that every post has visual presence.

Implementation notes

Potential structure:

apps/docsite/src/content/blog/
  authors.ts
  posts/
    designing-agent-ready-components.mdx

apps/docsite/src/lib/blog/
  getBlogPosts.ts
  schema.ts

apps/docsite/src/app/(site)/blog/
  page.tsx
  [slug]/page.tsx

Desired behavior:

  • Build-time discovery of all blog post files.
  • Frontmatter validation with clear errors for missing required metadata.
  • Generated or cached registry so the index/detail pages do not require manual wiring.
  • Posts sorted by date descending by default.
  • Draft posts excluded from production output.
  • Related post suggestions can be tag-based later; v1 can start with curated relatedDocs only.

This should follow the docsite's existing bias toward generated registries and minimal manual lists where practical.

Acceptance criteria

  • /blog route exists with a calm grid layout and no sidebar.
  • /blog/[slug] route renders an individual post with large readable article typography.
  • Blog posts can be added by creating one MDX/Markdown file with frontmatter.
  • Required frontmatter is validated.
  • Authors are referenced by GitHub handle/ID and resolved from a shared author registry.
  • Post types and tags are available for filtering/display.
  • Draft posts can live in the repo without publishing.
  • The README or docsite docs include “How to add a blog post.”
  • At least one example post exists to validate the workflow.
  • Tests cover post discovery and frontmatter validation.
  • If a post omits coverImage, the blog still renders a default cover treatment.

Open questions

  • Should the route be /blog, /updates, or something more product-specific?
  • Should engineering be a primary post type or just a tag?
  • Which post types should launch in the UI if only one or two have content?
  • Should search be included in v1 or deferred until there is enough content?
  • Should RSS be included in v1?
  • Should Blog appear in the top nav immediately, or only after the first few posts?
  • What default cover treatment is sufficient for v1?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    designdiscussiondocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions