Skip to content

Commit dc539e0

Browse files
authored
Merge pull request #3793 from ClickHouse/lc-fix-invalid-html
Fixes invalid HTML and JSX issues (tracking pixel & SVG attributes)
2 parents 81dd505 + 7c956cd commit dc539e0

File tree

10 files changed

+22
-35
lines changed

10 files changed

+22
-35
lines changed

docusaurus.config.en.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,6 @@ const config = {
233233
rel: "preconnect",
234234
},
235235
},
236-
{
237-
tagName: 'img',
238-
attributes: {
239-
referrerPolicy: 'no-referrer-when-downgrade',
240-
src: 'https://static.scarf.sh/a.png?x-pxid=e6377503-591b-4886-9398-e69c7fee0b91',
241-
},
242-
},
243236
],
244237
themeConfig:
245238
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */

docusaurus.config.jp.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,6 @@ const config = {
198198
rel: "preconnect",
199199
},
200200
},
201-
{
202-
tagName: 'img',
203-
attributes: {
204-
referrerPolicy: 'no-referrer-when-downgrade',
205-
src: 'https://static.scarf.sh/a.png?x-pxid=e6377503-591b-4886-9398-e69c7fee0b91',
206-
},
207-
},
208201
],
209202
themeConfig:
210203
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */

docusaurus.config.ru.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,6 @@ const config = {
199199
rel: "preconnect",
200200
},
201201
},
202-
{
203-
tagName: 'img',
204-
attributes: {
205-
referrerPolicy: 'no-referrer-when-downgrade',
206-
src: 'https://static.scarf.sh/a.png?x-pxid=e6377503-591b-4886-9398-e69c7fee0b91',
207-
},
208-
},
209202
],
210203
themeConfig:
211204
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */

docusaurus.config.zh.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,6 @@ const config = {
198198
rel: "preconnect",
199199
},
200200
},
201-
{
202-
tagName: 'img',
203-
attributes: {
204-
referrerPolicy: 'no-referrer-when-downgrade',
205-
src: 'https://static.scarf.sh/a.png?x-pxid=e6377503-591b-4886-9398-e69c7fee0b91',
206-
},
207-
},
208201
],
209202
themeConfig:
210203
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */

src/icons/IconCluster.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export default ({ iconWidth }) => {
1818
<path d="M4.5 13.75c-1.52 0-2.75 1.23-2.75 2.75 0 1.51 1.23 2.75 2.75 2.75 1.51 0 2.75-1.24 2.75-2.75 0-1.52-1.24-2.75-2.75-2.75Zm0 1.5c.69 0 1.25.55 1.25 1.25 0 .69-.56 1.25-1.25 1.25 -.7 0-1.25-.56-1.25-1.25 0-.7.55-1.25 1.25-1.25Z"/>
1919
<path d="M4.5 3.75c-1.52 0-2.75 1.23-2.75 2.75 0 1.51 1.23 2.75 2.75 2.75 1.51 0 2.75-1.24 2.75-2.75 0-1.52-1.24-2.75-2.75-2.75Zm0 1.5c.69 0 1.25.55 1.25 1.25 0 .69-.56 1.25-1.25 1.25 -.7 0-1.25-.56-1.25-1.25 0-.7.55-1.25 1.25-1.25Z"/>
2020
</g>
21-
<path fill="none" fill-rule="evenodd" d="M0 24l24 0 0-24L0 0Z"/></svg>
21+
<path fill="none" fillRule="evenodd" d="M0 24l24 0 0-24L0 0Z"/></svg>
2222
)
2323
}

src/icons/IconDownload.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default ({ iconWidth }) => {
88
<path d="M9-.75c.37 0 .69.28.74.64l0 .1v14c0 .41-.34.75-.75.75 -.38 0-.7-.29-.75-.65l-.01-.11v-14c0-.42.33-.75.75-.75Z"/><path d="M5.46 10.46c.26-.27.68-.3.97-.08l.08.07 2.46 2.46 2.46-2.47c.26-.27.68-.3.97-.08l.08.07c.26.26.29.68.07.97l-.08.08 -3 3c-.27.26-.69.29-.98.07l-.09-.08 -3-3c-.3-.3-.3-.77 0-1.07Z"/><path d="M5 6.25c.41 0 .75.33.75.75 0 .37-.29.69-.65.74l-.11 0h-3c-.65 0-1.18.49-1.25 1.12l-.01.12v7c0 .64.49 1.17 1.12 1.24l.12 0h14c.64 0 1.17-.5 1.24-1.13l0-.13v-7c0-.65-.5-1.18-1.13-1.25l-.13-.01h-3c-.42 0-.75-.34-.75-.75 0-.38.28-.7.64-.75l.1-.01h3c1.46 0 2.65 1.14 2.74 2.58l0 .16v7c0 1.46-1.15 2.65-2.59 2.74l-.17 0h-14c-1.47 0-2.66-1.15-2.75-2.59l-.01-.17v-7c0-1.47 1.14-2.66 2.58-2.75l.16-.01h3Z"/>
99
</g>
1010
</g>
11-
<path fill="none" fill-rule="evenodd" d="M0 0l24 0 0 24L0 24Z"/>
11+
<path fill="none" fillRule="evenodd" d="M0 0l24 0 0 24L0 24Z"/>
1212
</svg>
1313
)
1414
}

src/icons/IconSingleNode.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33
export default ({ iconWidth }) => {
44
return (
55
<svg width={iconWidth} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
6-
<path fill="none" fill-rule="evenodd" d="M0 0l24 0 0 24L0 24Z"/>
6+
<path fill="none" fillRule="evenodd" d="M0 0l24 0 0 24L0 24Z"/>
77
<g className='icon-svg'>
88
<path d="M18 13.25H6c-1.99 0-3.63 1.55-3.75 3.53l-.01.19c-.01 2.09 1.67 3.77 3.74 3.77h12c1.98 0 3.62-1.56 3.74-3.54l0-.2c0-2.1-1.68-3.78-3.75-3.78Zm-12 1.5h12c1.24 0 2.25 1 2.25 2.25l-.01.15c-.07 1.16-1.06 2.09-2.25 2.09h-12c-1.25 0-2.25-1.01-2.25-2.25l0-.16c.06-1.17 1.05-2.1 2.24-2.1Z"/><path d="M18 16.25c.41 0 .75.33.75.75 0 .37-.29.69-.65.74l-.11 0h-7c-.42 0-.75-.34-.75-.75 0-.38.28-.7.64-.75l.1-.01h7Z"/><path d="M5.43 16.43c.25-.26.64-.31.94-.14l.1.06 .08.07c.31.31.31.81 0 1.13 -.32.31-.82.31-1.14 0 -.32-.32-.32-.82 0-1.14Z"/><path d="M18.149 3.25c1.37 0 2.53 1.01 2.72 2.36l.01.17 .84 10.91c.03.41-.28.77-.69.8 -.38.02-.72-.23-.8-.59l-.02-.11 -.85-10.92c-.05-.61-.53-1.09-1.12-1.15l-.13-.01H5.81c-.61 0-1.13.43-1.23 1.02l-.02.12 -.85 10.91c-.04.41-.4.72-.81.68 -.38-.03-.67-.34-.7-.71l0-.11L3.04 5.7c.1-1.38 1.21-2.45 2.57-2.54l.17-.01H18.07Z"/>
99
</g>

src/theme/Layout/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
import Layout from '@theme-original/Layout';
3+
4+
export default function CustomLayout(props) {
5+
return (
6+
<>
7+
<Layout {...props} />
8+
<img
9+
referrerPolicy='no-referrer-when-downgrade'
10+
src="https://static.scarf.sh/a.png?x-pxid=e6377503-591b-4886-9398-e69c7fee0b91"
11+
alt=""
12+
/>
13+
</>
14+
);
15+
}

src/theme/badges/CommunityMaintained/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const Icon = () => {
55
return (
66
<div className={styles.CommunityMaintainedIcon} style={{ marginRight: '8px', marginTop: '4px' }}>
77
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
8-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.22168 4.44463V4.44463C6.22168 3.46263 7.01768 2.66663 7.99968 2.66663V2.66663C8.98168 2.66663 9.77768 3.46263 9.77768 4.44463V4.44463C9.77768 5.42663 8.98168 6.22263 7.99968 6.22263V6.22263C7.01768 6.22196 6.22168 5.42596 6.22168 4.44463Z" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
9-
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.91309 11.5553V11.5553C1.91309 10.5733 2.70909 9.77734 3.69109 9.77734V9.77734C4.67309 9.77734 5.46909 10.5733 5.46909 11.5553V11.5553C5.46842 12.5373 4.67309 13.3333 3.69109 13.3333V13.3333C2.70909 13.3333 1.91309 12.5373 1.91309 11.5553Z" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
10-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.5322 11.5553V11.5553C10.5322 10.5733 11.3282 9.77734 12.3102 9.77734V9.77734C13.2922 9.77734 14.0882 10.5733 14.0882 11.5553V11.5553C14.0882 12.5373 13.2922 13.3333 12.3102 13.3333V13.3333C11.3276 13.3333 10.5322 12.5373 10.5322 11.5553H10.5322Z" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
8+
<path fillRule="evenodd" clipRule="evenodd" d="M6.22168 4.44463V4.44463C6.22168 3.46263 7.01768 2.66663 7.99968 2.66663V2.66663C8.98168 2.66663 9.77768 3.46263 9.77768 4.44463V4.44463C9.77768 5.42663 8.98168 6.22263 7.99968 6.22263V6.22263C7.01768 6.22196 6.22168 5.42596 6.22168 4.44463Z" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
9+
<path fillRule="evenodd" clipRule="evenodd" d="M1.91309 11.5553V11.5553C1.91309 10.5733 2.70909 9.77734 3.69109 9.77734V9.77734C4.67309 9.77734 5.46909 10.5733 5.46909 11.5553V11.5553C5.46842 12.5373 4.67309 13.3333 3.69109 13.3333V13.3333C2.70909 13.3333 1.91309 12.5373 1.91309 11.5553Z" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
10+
<path fillRule="evenodd" clipRule="evenodd" d="M10.5322 11.5553V11.5553C10.5322 10.5733 11.3282 9.77734 12.3102 9.77734V9.77734C13.2922 9.77734 14.0882 10.5733 14.0882 11.5553V11.5553C14.0882 12.5373 13.2922 13.3333 12.3102 13.3333V13.3333C11.3276 13.3333 10.5322 12.5373 10.5322 11.5553H10.5322Z" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
1111
<path d="M10.5939 11.1134H5.40723" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
1212
<path d="M8.95996 5.94006L11.54 9.96006" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />
1313
<path d="M4.45996 9.96006L7.03996 5.94006" stroke="#FBEFF8" strokeLinecap="round" strokeLinejoin="round" />

src/theme/badges/PrivatePreviewBadge/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Icon = () => {
77
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
88
<path d="M5.33301 6.66667V4.66667V4.66667C5.33301 3.194 6.52701 2 7.99967 2V2C9.47234 2 10.6663 3.194 10.6663 4.66667V4.66667V6.66667" stroke="#FEFFC2" strokeLinecap="round" strokeLinejoin="round"/>
99
<path d="M8.00033 9.33337V11.3334" stroke="#FEFFC2" strokeLinecap="round" strokeLinejoin="round"/>
10-
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.333 14H4.66634C3.92967 14 3.33301 13.4033 3.33301 12.6666V7.99996C3.33301 7.26329 3.92967 6.66663 4.66634 6.66663H11.333C12.0697 6.66663 12.6663 7.26329 12.6663 7.99996V12.6666C12.6663 13.4033 12.0697 14 11.333 14Z" stroke="#FEFFC2" strokeLinecap="round" strokeLinejoin="round"/>
10+
<path fillRule="evenodd" clipRule="evenodd" d="M11.333 14H4.66634C3.92967 14 3.33301 13.4033 3.33301 12.6666V7.99996C3.33301 7.26329 3.92967 6.66663 4.66634 6.66663H11.333C12.0697 6.66663 12.6663 7.26329 12.6663 7.99996V12.6666C12.6663 13.4033 12.0697 14 11.333 14Z" stroke="#FEFFC2" strokeLinecap="round" strokeLinejoin="round"/>
1111
</svg>
1212
</div>
1313
)

0 commit comments

Comments
 (0)