Skip to content

feat(api-docs-spectral-linter): add new frontend system support#120

Open
Tusharkshahi wants to merge 1 commit into
dweber019:mainfrom
Tusharkshahi:feat/spectral-linter-new-frontend-system
Open

feat(api-docs-spectral-linter): add new frontend system support#120
Tusharkshahi wants to merge 1 commit into
dweber019:mainfrom
Tusharkshahi:feat/spectral-linter-new-frontend-system

Conversation

@Tusharkshahi

Copy link
Copy Markdown

What

Adds support for the new frontend system to the api-docs-spectral-linter plugin.

Closes #44

Changes

  • New /alpha entry point (src/alpha.tsx) with:
    • ApiBlueprint for the Spectral Linter API
    • EntityContentBlueprint for the Spectral Linter tab on API entity pages
    • Entity filter that automatically shows the tab only on openapi and asyncapi API entities
  • Updated package.json with /alpha export paths and @backstage/frontend-plugin-api dependency
  • Added test for the new entry point
  • Changeset included (minor bump)

Backward Compatibility

The existing / entry point is unchanged. Consumers using the old frontend system are unaffected.

Usage (new frontend system)

import spectralLinterPlugin from '@dweber019/backstage-plugin-api-docs-spectral-linter/alpha';

export default createApp({
  features: [spectralLinterPlugin],
});

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.

Adapt new frontend system

1 participant