Skip to content

Chore: cleanup components imports#2132

Merged
ElliotFriend merged 9 commits into
mainfrom
chore/cleanup-components-imports
Dec 19, 2025
Merged

Chore: cleanup components imports#2132
ElliotFriend merged 9 commits into
mainfrom
chore/cleanup-components-imports

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

There are some places where custom components are imported where they don't need to be.

  • <Alert> is imported in some places, but never used.
  • Some components are globally available, via the /src/theme/MDXComponents.ts file, but are still imported anyway (the last three are mostly API pages):
    • <CodeExample>
    • <AttributeTable>
    • <EndpointsTable>
    • <ExampleResponse>

This PR removes the unused/unnecessary components wherever they are imported

we've added it to the list of globally available components so it's
not necessary to import it into every page it's used on anymore
same reason as the `CodeExample` component, these are globally
available, and don't need to be re-imported every time.
@stellar-jenkins

Copy link
Copy Markdown

@stellar-jenkins

Copy link
Copy Markdown

@stellar-jenkins

Copy link
Copy Markdown

it's a wrapper for only one type of admonition, and doesn't really
seem all that useful. people tend to understand and use `:::info`
without much trouble, so the lower-overhead seems like a benefit
@stellar-jenkins

Copy link
Copy Markdown

@ElliotFriend ElliotFriend merged commit c731e70 into main Dec 19, 2025
9 checks passed
@ElliotFriend ElliotFriend deleted the chore/cleanup-components-imports branch December 19, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants