Unreleased content

From inngest/website · View interactive version

Unreleased content is an AI agent skill from the GitHub repository inngest/website. Hide docs pages, doc sections, nav items, changelog entries, and blog posts behind a `?unreleased=<label>` URL param until a feature ships. Use when staging unreleased documentation, changelog entries, or blog posts, previewing not-yet-public content, gating nav links, or working with the `<Unreleas

How to use this skill

Skill file

Unreleased content gating

Hide content on the docs site, changelog, and blog until a previewer opts in with a URL param. Nothing is hidden behind auth — it's a lightweight, crawler-safe preview gate for staging content before a feature launches.

How it works

The engine is website/shared/Docs/Unreleased.tsx: a client hook useUnreleasedLabels() (returns the active Set<string>), the <Unreleased label fallback> component, and filterUnreleasedNav() for nav data.

The ways to gate

1. A whole docs page

Add one export to the top of the .mdx (next to metaTitle/description):

export const unreleased = "score"

Without a matching label the page shows "Page not found"; its body, "On this page" menu, and prev/next links are all hidden, and it sends noindex. The docs Layout reads this export — wrapping the body alone is not enough, because the layout chrome (TOC, prev/next) is built from build-time data.

2. Part of a docs page

import { Unreleased } from "src/shared/Docs/mdx";

<Unreleased label="score">

Only visible with ?unreleased=score. Leave blank lines around block content
so MDX parses it as markdown.

</Unreleased>

3. A docs nav item

Nav is data, not JSX, so add an unreleased field in website/shared/Docs/navigationStructure.ts:

{ title: "Scoring", href: "/docs/.../scoring", tag: "beta", unreleased: "score" }

The whole nav tree is filtered by filterUnreleasedNav in Navigation.tsx / Header.tsx.

4. A changelog entry

Add the export to the top of the entry in website/content/changelog/<date>-<slug>.mdx:

export const title = "Score function runs";
export const date = "2026-06-24";
export const unreleased = "score";

The entry is hidden from the /changelog feed and excluded from the side menu; its own /changelog/<slug> page shows "Entry not found" and sends noindex. With a matching label it appears in the feed.

5. A blog post

Blog posts use YAML frontmatter (not export const), so add the field to the frontmatter block in website/content/blog/<date>-<slug>.mdx:

---
heading: "Introducing scoring"
date: 2026-06-24
category: product-updates
unreleased: score
---

A gated post is excluded server-side from the /blog index, related-post cards, the RSS feed, blog.txt, and the .md mirror (which 404s). Its /blog/<slug> page shows "Post not found" and sends noindex. With a matching label, the post page renders. (Unlike the changelog feed, the blog index does not reveal gated cards client-side — reach a gated post by its direct URL.)

Releasing a feature

Delete the gate — that's the entire "ship it" step:

SEO & performance

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.