chore: include katex resources from npm

pull/9712/head
Allan Chain 2023-06-21 18:07:15 +08:00 committed by Gabriel Horner
parent 43df7dfd9a
commit 6d0033e645
6 changed files with 20 additions and 4 deletions

View File

@ -54,9 +54,14 @@ const common = {
'!**/*/i18n-*.js'
])
.pipe(gulp.dest(path.join(outputPath, 'js', 'excalidraw-assets'))),
() => gulp.src('node_modules/katex/dist/katex.min.js')
.pipe(gulp.dest(path.join(outputPath, 'js'))),
() => gulp.src('node_modules/@tabler/icons/iconfont/tabler-icons.min.css')
.pipe(gulp.dest(path.join(outputPath, 'css'))),
() => gulp.src('node_modules/@tabler/icons/iconfont/fonts/**')
() => gulp.src([
'node_modules/@tabler/icons/iconfont/fonts/**',
'node_modules/katex/dist/fonts/*.woff2'
])
.pipe(gulp.dest(path.join(outputPath, 'css', 'fonts'))),
)(...params)
},

View File

@ -117,6 +117,7 @@
"highlight.js": "10.4.1",
"ignore": "5.1.8",
"jszip": "3.8.0",
"katex": "^0.16.7",
"mldoc": "^1.5.5",
"path": "0.12.7",
"path-complete-extname": "1.0.0",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
@import "resources/css/excalidraw.min.css";
@import "resources/css/amplify.css";
@import "tldraw/apps/tldraw-logseq/src/styles.css";
@import "resources/css/katex.min.css";
@import "katex/dist/katex.min.css";
@import "resources/css/codemirror.min.css";
@import "resources/css/codemirror.solarized.css";
@import "resources/css/show-hint.css";

View File

@ -1936,6 +1936,11 @@ commander@^7.2.0:
resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7"
integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
commander@^8.3.0:
version "8.3.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
commander@^9.3.0:
version "9.4.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.0.tgz#bc4a40918fefe52e22450c111ecd6b7acce6f11c"
@ -4177,6 +4182,13 @@ just-debounce@^1.0.0:
resolved "https://registry.yarnpkg.com/just-debounce/-/just-debounce-1.1.0.tgz#2f81a3ad4121a76bc7cb45dbf704c0d76a8e5ddf"
integrity sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ==
katex@^0.16.7:
version "0.16.7"
resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.7.tgz#36be1d4ed96e8afdc5863407e70f8fb250aeafd5"
integrity sha512-Xk9C6oGKRwJTfqfIbtr0Kes9OSv6IFsuhFGc7tW4urlpMJtuh+7YhzU6YEG9n8gmWKcMAFzkp7nr+r69kV0zrA==
dependencies:
commander "^8.3.0"
keyv@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9"