Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions ipa/dev/component-fixtures.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ description:
production builds."
---

import {
Guidelines,
Guideline,
Example,
Workflow,
} from "@site/src/components/ipa";

# Component fixtures

This page is not shipped — `draft: true` excludes it from production. Each
Expand Down
20 changes: 20 additions & 0 deletions src/theme/MDXComponents/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import MDXComponents from "@theme-original/MDXComponents";
import {
Guidelines,
Guideline,
Example,
Workflow,
} from "@site/src/components/ipa";

// Register the IPA authoring components in Docusaurus' global MDX scope so
// guideline documents can use <Guidelines>, <Guideline>, <Example.*>, and
// <Workflow> without an import in every file. PrincipleHeader is intentionally
// omitted — it is auto-injected from frontmatter by the DocItem/Content
// swizzle, not authored inline.
export default {
...MDXComponents,
Guidelines,
Guideline,
Example,
Workflow,
};