Skip to content

Commit

Permalink
updated deprecated text
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten committed Dec 17, 2023
1 parent 69a6195 commit 9601c46
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/update-policies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,11 @@ async function getExampleHtml(
let deprecatedInnerHtml = "<strong>This policy is deprecated.</strong>";
if (schema.deprecatedMessage) {
const { html } = await render(schema.deprecatedMessage);
deprecatedInnerHtml += " " + html;
deprecatedInnerHtml =
"<p>" + deprecatedInnerHtml + " " + html.toString().substring(3);
}
deprecatedHtml = (
<div
className="policy-deprecated"
dangerouslySetInnerHTML={{ __html: deprecatedInnerHtml }}
/>
<div dangerouslySetInnerHTML={{ __html: deprecatedInnerHtml }} />
);
}

Expand Down

1 comment on commit 9601c46

@vercel
Copy link

@vercel vercel bot commented on 9601c46 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs-git-main.zuplopreview.net
docs.zuplo.site
docs.zuplopreview.net

Please sign in to comment.