/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/docusaurus-theme-classic/src/inlineSvgSprites.ts
12 строк
575 B
Sébastien Lorber
perf(theme): use SVG sprite for IconExternalLink (#10885)
31 янв 2025, 19:28
Не верифицирован
31 янв 2025, 19:28
7ca3aa5
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // For icons that are heavily repeated in the static html output // See also https://github.com/facebook/docusaurus/issues/5865 export const SvgSpriteDefs = `<defs> <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> </defs>`;