Skip to content

Commit

Permalink
update api seo description
Browse files Browse the repository at this point in the history
  • Loading branch information
chdeskur committed Feb 6, 2025
1 parent 3af9c16 commit 249a406
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/fern-docs/seo/src/with-seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,19 @@ export function withSeo(
endpoint: ({ endpointId }) => {
const endpoint = api.endpoints.get(endpointId);
if (endpoint?.description != null) {
seo.description ??= endpoint.description;
seo.description ??= markdownToString(endpoint.description);
}
},
webSocket: ({ webSocketId }) => {
const webSocket = api.webSockets.get(webSocketId);
if (webSocket?.description != null) {
seo.description ??= webSocket.description;
seo.description ??= markdownToString(webSocket.description);
}
},
webhook: ({ webhookId }) => {
const webhook = api.webhooks.get(webhookId);
if (webhook?.description != null) {
seo.description ??= webhook.description;
seo.description ??= markdownToString(webhook.description);
}
},
});
Expand Down

0 comments on commit 249a406

Please sign in to comment.