File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/docusaurus-theme-classic/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
getAnnouncementBarInlineScript ,
15
15
DataAttributeQueryStringInlineJavaScript ,
16
16
} from './inlineScripts' ;
17
- import { SvgSpriteSymbols } from './inlineSvgSprites' ;
17
+ import { SvgSpriteDefs } from './inlineSvgSprites' ;
18
18
import type { LoadContext , Plugin } from '@docusaurus/types' ;
19
19
import type { ThemeConfig } from '@docusaurus/theme-common' ;
20
20
import type { Plugin as PostCssPlugin } from 'postcss' ;
@@ -128,7 +128,7 @@ export default function themeClassic(
128
128
xmlns : 'http://www.w3.org/2000/svg' ,
129
129
style : 'display: none;' ,
130
130
} ,
131
- innerHTML : SvgSpriteSymbols ,
131
+ innerHTML : SvgSpriteDefs ,
132
132
} ,
133
133
{
134
134
tagName : 'script' ,
Original file line number Diff line number Diff line change 7
7
8
8
// For icons that are heavily repeated in the static html output
9
9
// See also https://github.com/facebook/docusaurus/issues/5865
10
- export const SvgSpriteSymbols = `
10
+ export const SvgSpriteDefs = `<defs>
11
11
<symbol id="theme-svg-external-link" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" /></symbol>
12
- ` ;
12
+ </defs> `;
You can’t perform that action at this time.
0 commit comments