Closed enzonotario closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vitepress-openapi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 8, 2024 1:10am |
[!WARNING]
Rate limit exceeded
@enzonotario has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 18 minutes and 17 seconds before requesting another review.
⌛ How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.🚦 How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.📥 Commits
Files that changed from the base of the PR and between a4359981b2d92fa32aec58828ada2f0d260ffc78 and 8f9f9a252b3ba96de0a922ce2dc56e84d862190b.
The changes in this pull request introduce enhancements to the VitePress documentation and theme configuration. A new "Customizations" section is added to the sidebar, linking to operation badges documentation. The theme configuration is updated to support internationalization (i18n) with new methods for managing locale settings and operation badges. A new Vue component, OAHeaderBadges
, is introduced for displaying operation-related badges. Additionally, test cases are added for the useTheme
composable to validate the new functionalities related to operation badges and i18n.
File | Change Summary |
---|---|
docs/.vitepress/config.mts | Added "Customizations" section with "Operation Badges" link in sidebar configuration. |
docs/.vitepress/theme/index.ts | Modified import statement for locales and added i18n configuration in enhanceApp . |
docs/composables/useTheme.md | Updated documentation to include new i18n and operation badges functionalities; removed setLocale . |
docs/customizations/operation-badges.md | Introduced documentation for customizing operation badges, including code examples. |
docs/layouts/multiple-specs.md | Updated operation IDs in OAOperation component examples. |
src/components/Common/OAHeaderBadges.vue | Added new Vue component for displaying operation badges with props for operation and deprecated status. |
src/components/Common/OAOperation.vue | Replaced Badge component with OAHeaderBadges for displaying operation badges. |
src/composables/useTheme.ts | Enhanced i18n and operation badge management; added new types and functions for configuration. |
src/index.ts | Updated imports and export for locales , enhanced i18n instance creation. |
src/locales/en.json | Added new entry for operation ID badge prefix. |
src/locales/es.json | Added new entry for operation ID badge prefix. |
src/locales/index.ts | Introduced new file to export localization data from JSON files. |
test/composables/useTheme.test.ts | Added test cases for operation badges and i18n configuration management. |
sequenceDiagram
participant User
participant Theme
participant OAHeaderBadges
participant OperationBadges
User->>Theme: setOperationBadges(['operationId'])
Theme->>OperationBadges: update badges
OperationBadges-->>Theme: badges updated
Theme->>User: confirmation
User->>Theme: getI18nConfig()
Theme->>User: return i18n configuration
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
pnpm add https://pkg.pr.new/vitepress-openapi@72
pnpm add https://pkg.pr.new/vitepress-openapi@72
commit: 8f9f9a2
Description
Allows to customize Badges to shown above Operations. Also allows to configure i18n and passing custom
messages
.Related issues/external references
Types of changes