Skip to content

Commit

Permalink
fix: scarf image formatting (#4178)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeeeenster authored Jun 18, 2024
1 parent 175f5d3 commit 710ed87
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,6 @@ const config = {
swaggerURL: '/api-static/edge-api.yaml',
},

headTags: [
{
tagName: 'img',
attributes: {
src: 'https://static.scarf.sh/a.png?x-pxid=3bd13eaa-d37d-454b-b503-322643e72574',
referrerpolicy: 'no-referrer-when-downgrade',
},
},
],

presets: [
[
'classic',
Expand Down
17 changes: 17 additions & 0 deletions docs/src/theme/Footer/Copyright/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
export default function FooterCopyright({ copyright }) {
return (
<div>
<div
className="footer__copyright"
// Developer provided the HTML, so assume it's safe.
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: copyright }}
/>
<img
referrerpolicy="no-referrer-when-downgrade"
src="https://static.scarf.sh/a.png?x-pxid=3bd13eaa-d37d-454b-b503-322643e72574"
/>
</div>
);
}

0 comments on commit 710ed87

Please sign in to comment.