Merged
Conversation
Custom :::enterprise admonition with Stacklok symbol icon and teal color palette. Sidebar enterprise-only class with ENT pill badge and hover tooltip. Examples on theme-preview page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
EnterpriseBadge component for labeling individual enterprise features inline with text, headings, and lists. Enterprise constructs grouped into their own section on the theme preview page. Removed sidebar badge demo from the Enterprise page entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds reusable “Stacklok Enterprise” UI constructs to the Docusaurus docs site so enterprise-only content can be presented inline within OSS documentation (custom admonition, inline badge, and a sidebar ENT marker).
Changes:
- Register a new
:::enterpriseadmonition type with a custom Stacklok icon and teal styling. - Add an
<EnterpriseBadge />MDX component plus styling and ESLint MDX globals support. - Add CSS for an
enterprise-onlysidebar marker and document all constructs on the theme preview page.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/theme/MDXComponents.tsx | Registers EnterpriseBadge as a global MDX component. |
| src/theme/Admonition/Types.tsx | Introduces the enterprise admonition type and icon via theme swizzle. |
| src/css/custom.css | Adds enterprise admonition palette + sidebar ENT badge/tooltip styles. |
| src/components/EnterpriseBadge/styles.module.css | Styles the inline enterprise badge (light/dark). |
| src/components/EnterpriseBadge/index.tsx | Adds the EnterpriseBadge component used in MDX. |
| eslint.config.mjs | Allows EnterpriseBadge as a global in MDX linting. |
| docusaurus.config.ts | Enables the enterprise admonition keyword in the docs plugin. |
| docs/theme-preview.mdx | Demonstrates the new admonition/badge/sidebar marker in the theme preview page. |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add enterprise content constructs section to CLAUDE.md with usage guidance for all three patterns. Update docs-review skill to check for correct enterprise construct usage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ChrisJBurns
pushed a commit
that referenced
this pull request
Apr 15, 2026
* Add enterprise admonition and sidebar ENT badge Custom :::enterprise admonition with Stacklok symbol icon and teal color palette. Sidebar enterprise-only class with ENT pill badge and hover tooltip. Examples on theme-preview page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add inline EnterpriseBadge component and reorganize theme preview EnterpriseBadge component for labeling individual enterprise features inline with text, headings, and lists. Enterprise constructs grouped into their own section on the theme preview page. Removed sidebar badge demo from the Enterprise page entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Show sidebar ENT tooltip on keyboard focus Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Document enterprise constructs in CLAUDE.md and review skill Add enterprise content constructs section to CLAUDE.md with usage guidance for all three patterns. Update docs-review skill to check for correct enterprise construct usage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
yrobla
pushed a commit
that referenced
this pull request
Apr 16, 2026
* Add enterprise admonition and sidebar ENT badge Custom :::enterprise admonition with Stacklok symbol icon and teal color palette. Sidebar enterprise-only class with ENT pill badge and hover tooltip. Examples on theme-preview page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add inline EnterpriseBadge component and reorganize theme preview EnterpriseBadge component for labeling individual enterprise features inline with text, headings, and lists. Enterprise constructs grouped into their own section on the theme preview page. Removed sidebar badge demo from the Enterprise page entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Show sidebar ENT tooltip on keyboard focus Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Document enterprise constructs in CLAUDE.md and review skill Add enterprise content constructs section to CLAUDE.md with usage guidance for all three patterns. Update docs-review skill to check for correct enterprise construct usage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Three reusable constructs for presenting Stacklok Enterprise content inline with OSS documentation. All use a teal color palette that is distinct from the existing admonition types (blue/note, purple/info, green/tip, yellow/warning, red/danger) and works in both light and dark mode.
1. Enterprise admonition (
:::enterprise)Callout box for enterprise upsell content within OSS pages. Uses the Stacklok symbol as the icon. Supports custom titles via
:::enterprise[My title].2. Inline enterprise badge (
<EnterpriseBadge />)Lightweight inline label for tagging individual features or capabilities. Works next to headings, in lists, or inline with text.
3. Sidebar ENT badge (
className: 'enterprise-only')Small "ENT" pill badge on sidebar navigation items that are exclusively enterprise. Applied via sidebar config, no component needed. Includes a tooltip on hover.
Hover state:

Preview
All three constructs are demonstrated on the theme preview page in the Vercel preview deployment (
/theme-preview#enterprise-constructs).Type of change
Related issues/PRs
Related to #714 (versioned docs spike) - these constructs are part of the enterprise documentation strategy described in the versioning strategy proposal.
Submitter checklist
Content and formatting